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

Unified Diff: third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp

Issue 2715663002: ServiceWorker: Factor out FetchEvent related logics from RespondWithObserver. (Closed)
Patch Set: ServiceWorker: Factor out FetchEvent related logics from 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
« no previous file with comments | « third_party/WebKit/Source/modules/serviceworkers/RespondWithObserver.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp
diff --git a/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp b/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp
index 77df99ec57b377fd1ce1b346d619c5c82849c293..73f863cb305a2a19c97bfdb01695a4e72f3ac4e2 100644
--- a/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp
+++ b/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp
@@ -164,10 +164,11 @@ void ServiceWorkerGlobalScopeProxy::dispatchFetchEvent(
workerGlobalScope()->scriptController()->getScriptState());
WaitUntilObserver* waitUntilObserver = WaitUntilObserver::create(
workerGlobalScope(), WaitUntilObserver::Fetch, fetchEventID);
- RespondWithObserver* respondWithObserver = RespondWithObserver::create(
- workerGlobalScope(), fetchEventID, webRequest.url(), webRequest.mode(),
- webRequest.redirectMode(), webRequest.frameType(),
- webRequest.requestContext(), waitUntilObserver);
+ FetchRespondWithObserver* respondWithObserver =
+ FetchRespondWithObserver::create(
+ workerGlobalScope(), fetchEventID, webRequest.url(),
+ webRequest.mode(), webRequest.redirectMode(), webRequest.frameType(),
+ webRequest.requestContext(), waitUntilObserver);
Request* request = Request::create(
workerGlobalScope()->scriptController()->getScriptState(), webRequest);
request->getHeaders()->setGuard(Headers::ImmutableGuard);
« no previous file with comments | « third_party/WebKit/Source/modules/serviceworkers/RespondWithObserver.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698