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

Unified Diff: Source/modules/serviceworkers/Cache.h

Issue 694083002: Service Worker Cache: Simplify exception/rejection processing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add exception state to fixture Created 6 years, 1 month 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
« no previous file with comments | « no previous file | Source/modules/serviceworkers/Cache.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/Cache.h
diff --git a/Source/modules/serviceworkers/Cache.h b/Source/modules/serviceworkers/Cache.h
index 2ed9e615f8fc0e480ad7156aa4b493b1e35ce52b..444bbd132f70d133c52656a149776b53c9b73b9e 100644
--- a/Source/modules/serviceworkers/Cache.h
+++ b/Source/modules/serviceworkers/Cache.h
@@ -19,6 +19,7 @@
namespace blink {
+class ExceptionState;
class Response;
class Request;
class ScriptState;
@@ -31,19 +32,19 @@ public:
// From Cache.idl:
ScriptPromise match(ScriptState*, Request*, const CacheQueryOptions&);
- ScriptPromise match(ScriptState*, const String&, const CacheQueryOptions&);
+ ScriptPromise match(ScriptState*, const String&, const CacheQueryOptions&, ExceptionState&);
ScriptPromise matchAll(ScriptState*, Request*, const CacheQueryOptions&);
- ScriptPromise matchAll(ScriptState*, const String&, const CacheQueryOptions&);
+ ScriptPromise matchAll(ScriptState*, const String&, const CacheQueryOptions&, ExceptionState&);
ScriptPromise add(ScriptState*, Request*);
- ScriptPromise add(ScriptState*, const String&);
+ ScriptPromise add(ScriptState*, const String&, ExceptionState&);
ScriptPromise addAll(ScriptState*, const Vector<ScriptValue>&);
ScriptPromise deleteFunction(ScriptState*, Request*, const CacheQueryOptions&);
- ScriptPromise deleteFunction(ScriptState*, const String&, const CacheQueryOptions&);
+ ScriptPromise deleteFunction(ScriptState*, const String&, const CacheQueryOptions&, ExceptionState&);
ScriptPromise put(ScriptState*, Request*, Response*);
- ScriptPromise put(ScriptState*, const String&, Response*);
+ ScriptPromise put(ScriptState*, const String&, Response*, ExceptionState&);
ScriptPromise keys(ScriptState*);
ScriptPromise keys(ScriptState*, Request*, const CacheQueryOptions&);
- ScriptPromise keys(ScriptState*, const String&, const CacheQueryOptions&);
+ ScriptPromise keys(ScriptState*, const String&, const CacheQueryOptions&, ExceptionState&);
static PassRefPtrWillBeRawPtr<DOMException> domExceptionForCacheError(WebServiceWorkerCacheError);
« no previous file with comments | « no previous file | Source/modules/serviceworkers/Cache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698