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

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

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_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 b9c5aab1c3dc173d25dc4f0454fa3b459b89926d..0cf2e04b21e364cfa738faf9b86cc2b1a0bdb860 100644
--- a/content/browser/service_worker/service_worker_controllee_request_handler.h
+++ b/content/browser/service_worker/service_worker_controllee_request_handler.h
@@ -8,6 +8,9 @@
#include "base/gtest_prod_util.h"
#include "content/browser/service_worker/service_worker_request_handler.h"
#include "content/common/service_worker/service_worker_types.h"
+#include "content/public/common/request_context_frame_type.h"
+#include "content/public/common/request_context_type.h"
+#include "content/public/common/resource_type.h"
namespace net {
class NetworkDelegate;
@@ -33,6 +36,8 @@ class CONTENT_EXPORT ServiceWorkerControlleeRequestHandler
FetchRequestMode request_mode,
FetchCredentialsMode credentials_mode,
ResourceType resource_type,
+ RequestContextType request_context_type,
+ RequestContextFrameType frame_type,
scoped_refptr<ResourceRequestBody> body);
virtual ~ServiceWorkerControlleeRequestHandler();
@@ -70,6 +75,8 @@ class CONTENT_EXPORT ServiceWorkerControlleeRequestHandler
scoped_refptr<ServiceWorkerURLRequestJob> job_;
FetchRequestMode request_mode_;
FetchCredentialsMode credentials_mode_;
+ RequestContextType request_context_type_;
+ RequestContextFrameType frame_type_;
scoped_refptr<ResourceRequestBody> body_;
base::WeakPtrFactory<ServiceWorkerControlleeRequestHandler> weak_factory_;

Powered by Google App Engine
This is Rietveld 408576698