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

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

Issue 2539183006: Remove RefPtr<ScriptState> from FetchEvent (Closed)
Patch Set: temp Created 4 years 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/FetchEvent.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 7f6f81b1b9e1f8e90603e49de0dae8c32a3632d1..a61d5a0e840abd168fe6673a8acb474d372b4399 100644
--- a/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp
+++ b/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp
@@ -199,8 +199,9 @@ void ServiceWorkerGlobalScopeProxy::onNavigationPreloadResponse(
std::unique_ptr<WebDataConsumerHandle> dataConsumeHandle) {
FetchEvent* fetchEvent = m_pendingPreloadFetchEvents.take(fetchEventID);
DCHECK(fetchEvent);
- fetchEvent->onNavigationPreloadResponse(std::move(response),
- std::move(dataConsumeHandle));
+ fetchEvent->onNavigationPreloadResponse(
+ workerGlobalScope()->scriptController()->getScriptState(),
+ std::move(response), std::move(dataConsumeHandle));
}
void ServiceWorkerGlobalScopeProxy::onNavigationPreloadError(
@@ -208,7 +209,9 @@ void ServiceWorkerGlobalScopeProxy::onNavigationPreloadError(
std::unique_ptr<WebServiceWorkerError> error) {
FetchEvent* fetchEvent = m_pendingPreloadFetchEvents.take(fetchEventID);
DCHECK(fetchEvent);
- fetchEvent->onNavigationPreloadError(std::move(error));
+ fetchEvent->onNavigationPreloadError(
+ workerGlobalScope()->scriptController()->getScriptState(),
+ std::move(error));
}
void ServiceWorkerGlobalScopeProxy::dispatchForeignFetchEvent(
« no previous file with comments | « third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698