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

Unified Diff: content/child/request_info.h

Issue 588153002: [ServiceWorker] Plumbing the request mode from the renderer to the ServiceWorker. [2/2 chromium] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile error Created 6 years, 3 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/child/request_info.h
diff --git a/content/child/request_info.h b/content/child/request_info.h
index 89812e7b88e5c0cf48718c32c048ec0c5762dee6..142997e9fedeffe31efbdf2c11edea3e569d98ee 100644
--- a/content/child/request_info.h
+++ b/content/child/request_info.h
@@ -10,6 +10,7 @@
#include <string>
#include "content/common/content_export.h"
+#include "content/common/service_worker/service_worker_types.h"
#include "content/public/common/resource_type.h"
#include "net/base/request_priority.h"
#include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
@@ -78,6 +79,9 @@ struct CONTENT_EXPORT RequestInfo {
// True if the request should not be handled by the ServiceWorker.
bool skip_service_worker;
+ // The request mode passed to the ServiceWorker.
+ FetchRequestMode fetch_request_mode;
+
// TODO(mmenke): Investigate if enable_load_timing is safe to remove.
// True if load timing data should be collected for the request.
bool enable_load_timing;
« no previous file with comments | « content/browser/service_worker/service_worker_url_request_job_unittest.cc ('k') | content/child/request_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698