1 // Copyright 2020 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef CHROMECAST_CRASH_CAST_CRASH_STORAGE_DEFAULT_H_ 6 #define CHROMECAST_CRASH_CAST_CRASH_STORAGE_DEFAULT_H_ 7 8 #include "chromecast/crash/cast_crash_storage.h" 9 10 namespace chromecast { 11 12 class CastCrashStorageImpl : public CastCrashStorage { 13 public: 14 CastCrashStorageImpl(); 15 ~CastCrashStorageImpl() final; 16 CastCrashStorageImpl& operator=(const CastCrashStorageImpl&) = delete; 17 CastCrashStorageImpl(const CastCrashStorageImpl&) = delete; 18 19 // CastCrashStorage implementation: 20 void SetLastLaunchedApp(base::StringPiece app_id) final; 21 void ClearLastLaunchedApp() final; 22 void SetCurrentApp(base::StringPiece app_id) final; 23 void ClearCurrentApp() final; 24 void SetPreviousApp(base::StringPiece app_id) final; 25 void ClearPreviousApp() final; 26 void SetStadiaSessionId(base::StringPiece session_id) final; 27 void ClearStadiaSessionId() final; 28 }; 29 30 } // namespace chromecast 31 32 #endif // CHROMECAST_CRASH_CAST_CRASH_STORAGE_DEFAULT_H_ 33