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

Unified Diff: content/browser/service_worker/service_worker_request_handler.cc

Issue 623663002: [ServiceWorker] pipe RequestContext and FrameType to ServiceWorker. [2/2 chromium] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: request_info.cc Created 6 years, 2 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: content/browser/service_worker/service_worker_request_handler.cc
diff --git a/content/browser/service_worker/service_worker_request_handler.cc b/content/browser/service_worker/service_worker_request_handler.cc
index 91e965ca8b50dc0a82c0dd10622fa2882f5a5fa9..db464e59506a78c73e99d2b2c5f49ed12e911e6b 100644
--- a/content/browser/service_worker/service_worker_request_handler.cc
+++ b/content/browser/service_worker/service_worker_request_handler.cc
@@ -63,6 +63,8 @@ void ServiceWorkerRequestHandler::InitializeHandler(
FetchRequestMode request_mode,
FetchCredentialsMode credentials_mode,
ResourceType resource_type,
+ RequestContextType request_context_type,
+ RequestContextFrameType frame_type,
scoped_refptr<ResourceRequestBody> body) {
if (!request->url().SchemeIsHTTPOrHTTPS() ||
!IsMethodSupportedForServiceWroker(request->method())) {
@@ -89,6 +91,8 @@ void ServiceWorkerRequestHandler::InitializeHandler(
provider_host->CreateRequestHandler(request_mode,
credentials_mode,
resource_type,
+ request_context_type,
+ frame_type,
blob_storage_context->AsWeakPtr(),
body));
if (!handler)

Powered by Google App Engine
This is Rietveld 408576698