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

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

Issue 314953005: Add an ASSERT about cross-world wrapper leakage into ScriptValue (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 7a3d22cd1b0c4bc1d1e40a49c13972662c17b375..567edb5dc27abe66d9583cd34714c4bc6b94c7e8 100644
--- a/Source/modules/serviceworkers/RespondWithObserver.h
+++ b/Source/modules/serviceworkers/RespondWithObserver.h
@@ -13,6 +13,7 @@ namespace WebCore {
class ExecutionContext;
class Response;
+class ScriptState;
class ScriptValue;
// This class observes the service worker's handling of a FetchEvent and
@@ -28,7 +29,7 @@ public:
// Observes the promise and delays calling didHandleFetchEvent() until the
// given promise is resolved or rejected.
- void respondWith(const ScriptValue&);
+ void respondWith(ScriptState*, const ScriptValue&);
void responseWasRejected();
void responseWasFulfilled(const ScriptValue&);

Powered by Google App Engine
This is Rietveld 408576698