#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< StorageQuota > | GetStorageQuota (StorageType=StorageType::kSession) |
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.
|
strong |
| Enumerator | |
|---|---|
| kSession | |
| kLocal | |
Definition at line 107 of file wasm_browser_storage.h.
|
inlinestatic |
Definition at line 109 of file wasm_browser_storage.h.
|
inlinestatic |
Definition at line 114 of file wasm_browser_storage.h.
|
inlinestatic |
Definition at line 119 of file wasm_browser_storage.h.
|
inlinestatic |
Definition at line 124 of file wasm_browser_storage.h.
|
inlinestatic |
Definition at line 129 of file wasm_browser_storage.h.
|
inlinestatic |
Definition at line 134 of file wasm_browser_storage.h.
|
inlinestatic |
Definition at line 139 of file wasm_browser_storage.h.
|
inlinestatic |
Definition at line 144 of file wasm_browser_storage.h.
|
inlinestatic |
Definition at line 149 of file wasm_browser_storage.h.
|
inlinestatic |
Definition at line 158 of file wasm_browser_storage.h.
|
inlinestatic |
Definition at line 160 of file wasm_browser_storage.h.