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

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

Issue 1255933004: Service Worker: Correct Web IDL of FetchEvent.respondWith method. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rename IDL argument and method params. Created 5 years, 5 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/serviceworkers/RespondWithObserver.h
diff --git a/Source/modules/serviceworkers/RespondWithObserver.h b/Source/modules/serviceworkers/RespondWithObserver.h
index 74c0766ec91dbcb528ccb78f4ea1e90f8ce0241e..0e12cd3a65292f4c1696daaab6fe3309604b225b 100644
--- a/Source/modules/serviceworkers/RespondWithObserver.h
+++ b/Source/modules/serviceworkers/RespondWithObserver.h
@@ -15,6 +15,7 @@ namespace blink {
class ExceptionState;
class ExecutionContext;
+class ScriptPromise;
class ScriptState;
class ScriptValue;
@@ -31,7 +32,7 @@ public:
// Observes the promise and delays calling didHandleFetchEvent() until the
// given promise is resolved or rejected.
- void respondWith(ScriptState*, const ScriptValue&, ExceptionState&);
+ void respondWith(ScriptState*, ScriptPromise&, ExceptionState&);
void responseWasRejected(WebServiceWorkerResponseError);
void responseWasFulfilled(const ScriptValue&);

Powered by Google App Engine
This is Rietveld 408576698