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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ForeignFetchRespondWithObserver.cpp

Issue 2715663002: ServiceWorker: Factor out FetchEvent related logics from RespondWithObserver. (Closed)
Patch Set: RespondWithObserver Created 3 years, 9 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: third_party/WebKit/Source/modules/serviceworkers/ForeignFetchRespondWithObserver.cpp
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ForeignFetchRespondWithObserver.cpp b/third_party/WebKit/Source/modules/serviceworkers/ForeignFetchRespondWithObserver.cpp
index 92e64564a5baafd3161106fbf1c7e8fcb20c1124..a9f6eb48cdc85b76d394681895f912c312e665c4 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ForeignFetchRespondWithObserver.cpp
+++ b/third_party/WebKit/Source/modules/serviceworkers/ForeignFetchRespondWithObserver.cpp
@@ -87,7 +87,7 @@ void ForeignFetchRespondWithObserver::responseWasFulfilled(
response = Response::create(getExecutionContext(), responseData);
}
- RespondWithObserver::responseWasFulfilled(
+ FetchRespondWithObserver::responseWasFulfilled(
ScriptValue::from(value.getScriptState(), response));
}
@@ -101,14 +101,14 @@ ForeignFetchRespondWithObserver::ForeignFetchRespondWithObserver(
WebURLRequest::RequestContext requestContext,
PassRefPtr<SecurityOrigin> requestOrigin,
WaitUntilObserver* observer)
- : RespondWithObserver(context,
- eventID,
- requestURL,
- requestMode,
- redirectMode,
- frameType,
- requestContext,
- observer),
+ : FetchRespondWithObserver(context,
+ eventID,
+ requestURL,
+ requestMode,
+ redirectMode,
+ frameType,
+ requestContext,
+ observer),
m_requestOrigin(requestOrigin) {}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698