Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1348)

Unified Diff: Source/modules/cachestorage/CacheStorage.h

Issue 1177983007: Cache Storage: restrict access to secure origins (Blink-side) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: DevTools: Skip enumeration if access denied Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/modules/cachestorage/CacheStorage.h
diff --git a/Source/modules/cachestorage/CacheStorage.h b/Source/modules/cachestorage/CacheStorage.h
index 90d80328a73c60dc026fab55eae147190b0d2f84..9d74f455c5e401ed509c2854e897f97bc8cd3e21 100644
--- a/Source/modules/cachestorage/CacheStorage.h
+++ b/Source/modules/cachestorage/CacheStorage.h
@@ -26,13 +26,15 @@ class CacheStorage final : public GarbageCollectedFinalized<CacheStorage>, publi
WTF_MAKE_NONCOPYABLE(CacheStorage);
public:
static CacheStorage* create(WeakPtr<GlobalFetch::ScopedFetcher>, WebServiceWorkerCacheStorage*);
+ static bool canAccessCacheStorage(ExecutionContext*, String* errorMessage = nullptr);
+
~CacheStorage();
void dispose();
- ScriptPromise open(ScriptState*, const String& cacheName);
- ScriptPromise has(ScriptState*, const String& cacheName);
- ScriptPromise deleteFunction(ScriptState*, const String& cacheName);
- ScriptPromise keys(ScriptState*);
+ ScriptPromise open(ScriptState*, const String& cacheName, ExceptionState&);
+ ScriptPromise has(ScriptState*, const String& cacheName, ExceptionState&);
+ ScriptPromise deleteFunction(ScriptState*, const String& cacheName, ExceptionState&);
+ ScriptPromise keys(ScriptState*, ExceptionState&);
ScriptPromise match(ScriptState*, const RequestInfo&, const CacheQueryOptions&, ExceptionState&);
DECLARE_TRACE();

Powered by Google App Engine
This is Rietveld 408576698