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

Unified Diff: content/browser/service_worker/service_worker_controllee_request_handler.h

Issue 637243003: Service Worker: Obey content settings when deciding to control a page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@content
Patch Set: explicit, and better log 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_controllee_request_handler.h
diff --git a/content/browser/service_worker/service_worker_controllee_request_handler.h b/content/browser/service_worker/service_worker_controllee_request_handler.h
index 8df1f9cf767acec3ad565a1842e6bdb750ecc969..faa8f128bfa545553927d4f068c8a67ae82993d6 100644
--- a/content/browser/service_worker/service_worker_controllee_request_handler.h
+++ b/content/browser/service_worker/service_worker_controllee_request_handler.h
@@ -44,7 +44,8 @@ class CONTENT_EXPORT ServiceWorkerControlleeRequestHandler
// Called via custom URLRequestJobFactory.
virtual net::URLRequestJob* MaybeCreateJob(
net::URLRequest* request,
- net::NetworkDelegate* network_delegate) override;
+ net::NetworkDelegate* network_delegate,
+ ResourceContext* resource_context) override;
virtual void GetExtraResponseInfo(
bool* was_fetched_via_service_worker,
@@ -78,6 +79,7 @@ class CONTENT_EXPORT ServiceWorkerControlleeRequestHandler
RequestContextType request_context_type_;
RequestContextFrameType frame_type_;
scoped_refptr<ResourceRequestBody> body_;
+ ResourceContext* resource_context_;
base::WeakPtrFactory<ServiceWorkerControlleeRequestHandler> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(ServiceWorkerControlleeRequestHandler);

Powered by Google App Engine
This is Rietveld 408576698