yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::app::platform::WasmBrowserStorage Class Reference

#include <wasm_browser_storage.h>

Classes

struct  StorageQuota
 

Public Types

enum class  StorageType { kSession , kLocal }
 

Static Public Member Functions

static absl::Status StoreApiKey (const std::string &, const std::string &, StorageType=StorageType::kSession)
 
static absl::StatusOr< std::string > RetrieveApiKey (const std::string &, StorageType=StorageType::kSession)
 
static absl::Status ClearApiKey (const std::string &, StorageType=StorageType::kSession)
 
static bool HasApiKey (const std::string &, StorageType=StorageType::kSession)
 
static absl::Status StoreSecret (const std::string &, const std::string &, StorageType=StorageType::kSession)
 
static absl::StatusOr< std::string > RetrieveSecret (const std::string &, StorageType=StorageType::kSession)
 
static absl::Status ClearSecret (const std::string &, StorageType=StorageType::kSession)
 
static std::vector< std::string > ListStoredApiKeys (StorageType=StorageType::kSession)
 
static absl::Status ClearAllApiKeys (StorageType=StorageType::kSession)
 
static bool IsStorageAvailable ()
 
static absl::StatusOr< StorageQuotaGetStorageQuota (StorageType=StorageType::kSession)
 

Detailed Description

Non-WASM stub for WasmBrowserStorage. All methods return Unimplemented/NotFound as browser storage is not available.

Definition at line 105 of file wasm_browser_storage.h.

Member Enumeration Documentation

◆ StorageType

Enumerator
kSession 
kLocal 

Definition at line 107 of file wasm_browser_storage.h.

Member Function Documentation

◆ StoreApiKey()

static absl::Status yaze::app::platform::WasmBrowserStorage::StoreApiKey ( const std::string & ,
const std::string & ,
StorageType = StorageType::kSession )
inlinestatic

Definition at line 109 of file wasm_browser_storage.h.

◆ RetrieveApiKey()

static absl::StatusOr< std::string > yaze::app::platform::WasmBrowserStorage::RetrieveApiKey ( const std::string & ,
StorageType = StorageType::kSession )
inlinestatic

Definition at line 114 of file wasm_browser_storage.h.

◆ ClearApiKey()

static absl::Status yaze::app::platform::WasmBrowserStorage::ClearApiKey ( const std::string & ,
StorageType = StorageType::kSession )
inlinestatic

Definition at line 119 of file wasm_browser_storage.h.

◆ HasApiKey()

static bool yaze::app::platform::WasmBrowserStorage::HasApiKey ( const std::string & ,
StorageType = StorageType::kSession )
inlinestatic

Definition at line 124 of file wasm_browser_storage.h.

◆ StoreSecret()

static absl::Status yaze::app::platform::WasmBrowserStorage::StoreSecret ( const std::string & ,
const std::string & ,
StorageType = StorageType::kSession )
inlinestatic

Definition at line 129 of file wasm_browser_storage.h.

◆ RetrieveSecret()

static absl::StatusOr< std::string > yaze::app::platform::WasmBrowserStorage::RetrieveSecret ( const std::string & ,
StorageType = StorageType::kSession )
inlinestatic

Definition at line 134 of file wasm_browser_storage.h.

◆ ClearSecret()

static absl::Status yaze::app::platform::WasmBrowserStorage::ClearSecret ( const std::string & ,
StorageType = StorageType::kSession )
inlinestatic

Definition at line 139 of file wasm_browser_storage.h.

◆ ListStoredApiKeys()

static std::vector< std::string > yaze::app::platform::WasmBrowserStorage::ListStoredApiKeys ( StorageType = StorageType::kSession)
inlinestatic

Definition at line 144 of file wasm_browser_storage.h.

◆ ClearAllApiKeys()

static absl::Status yaze::app::platform::WasmBrowserStorage::ClearAllApiKeys ( StorageType = StorageType::kSession)
inlinestatic

Definition at line 149 of file wasm_browser_storage.h.

◆ IsStorageAvailable()

static bool yaze::app::platform::WasmBrowserStorage::IsStorageAvailable ( )
inlinestatic

Definition at line 158 of file wasm_browser_storage.h.

◆ GetStorageQuota()

static absl::StatusOr< StorageQuota > yaze::app::platform::WasmBrowserStorage::GetStorageQuota ( StorageType = StorageType::kSession)
inlinestatic

Definition at line 160 of file wasm_browser_storage.h.


The documentation for this class was generated from the following file: