MCPcopy
hub / github.com/darkreader/darkreader / DevToolsStorage

Interface DevToolsStorage

src/background/devtools.ts:12–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10// TODO(bershanskiy): Add support for reads/writes of multiple keys at once for performance.
11// TODO(bershanskiy): Popup UI heeds only hasCustom*Fixes() and nothing else. Consider storing that data separately.
12interface DevToolsStorage {
13 get(key: string): Promise<string | null>;
14 set(key: string, value: string): Promise<void> | void;
15 remove(key: string): Promise<void> | void;
16 has(key: string): Promise<boolean> | boolean;
17}
18
19class PersistentStorageWrapper implements DevToolsStorage {
20 // Cache information within background context for future use without waiting.

Callers 32

parseURLFunction · 0.65
isInListOptimizedFunction · 0.65
indexURLTemplateListFunction · 0.65
matchHostFunction · 0.65
matchPathFunction · 0.65
cachedFactoryFunction · 0.65
getOKResponseFunction · 0.65
loadStateInternalMethod · 0.65
parseURLFunction · 0.65
isInListOptimizedFunction · 0.65
indexURLTemplateListFunction · 0.65
cachedFactoryFunction · 0.65

Implementers 2

PersistentStorageWrappersrc/background/devtools.ts
TempStoragesrc/background/devtools.ts

Calls

no outgoing calls

Tested by

no test coverage detected