blob: c21838ad3b74e4f2da3bcb4f14597cf237be3d8f [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROMECAST_CASH_CAST_CRASH_STORAGE_H_
#define CHROMECAST_CASH_CAST_CRASH_STORAGE_H_
#include "base/strings/string_piece.h"
namespace chromecast {
// Stores crash key annotations.
// This is used to provide indirection for platform dependent storage
// implementations.
class CastCrashStorage {
public:
static CastCrashStorage* GetInstance();
CastCrashStorage() = default;
virtual ~CastCrashStorage() = default;
virtual void SetLastLaunchedApp(base::StringPiece app_id) = 0;
virtual void ClearLastLaunchedApp() = 0;
virtual void SetCurrentApp(base::StringPiece app_id) = 0;
virtual void ClearCurrentApp() = 0;
virtual void SetPreviousApp(base::StringPiece app_id) = 0;
virtual void ClearPreviousApp() = 0;
virtual void SetStadiaSessionId(base::StringPiece session_id) = 0;
virtual void ClearStadiaSessionId() = 0;
};
} // namespace chromecast
#endif // CHROMECAST_CASH_CAST_CRASH_STORAGE_H_