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

Unified Diff: content/common/service_worker/service_worker_types.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: fix unit tests 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/common/service_worker/service_worker_types.h
diff --git a/content/common/service_worker/service_worker_types.h b/content/common/service_worker/service_worker_types.h
index 6ae8dcf3329737141dfc6adc4e08279238966170..cd496990884ae1cad5d11bad4f9449f327bd11a6 100644
--- a/content/common/service_worker/service_worker_types.h
+++ b/content/common/service_worker/service_worker_types.h
@@ -11,6 +11,8 @@
#include "base/basictypes.h"
#include "base/strings/string_util.h"
#include "content/common/content_export.h"
+#include "content/public/common/request_context.h"
+#include "content/public/common/request_context_frame_type.h"
#include "third_party/WebKit/public/platform/WebServiceWorkerState.h"
#include "url/gurl.h"
@@ -78,6 +80,8 @@ struct CONTENT_EXPORT ServiceWorkerFetchRequest {
~ServiceWorkerFetchRequest();
FetchRequestMode mode;
+ RequestContext request_context;
+ RequestContextFrameType frame_type;
GURL url;
std::string method;
ServiceWorkerHeaderMap headers;

Powered by Google App Engine
This is Rietveld 408576698