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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_CHILD_REQUEST_INFO_H_ 5 #ifndef CONTENT_CHILD_REQUEST_INFO_H_
6 #define CONTENT_CHILD_REQUEST_INFO_H_ 6 #define CONTENT_CHILD_REQUEST_INFO_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "content/common/service_worker/service_worker_types.h"
13 #include "content/public/common/resource_type.h" 14 #include "content/public/common/resource_type.h"
14 #include "net/base/request_priority.h" 15 #include "net/base/request_priority.h"
15 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" 16 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
16 #include "third_party/WebKit/public/platform/WebURLRequest.h" 17 #include "third_party/WebKit/public/platform/WebURLRequest.h"
17 #include "url/gurl.h" 18 #include "url/gurl.h"
18 19
19 namespace content { 20 namespace content {
20 21
21 // Structure used when calling BlinkPlatformImpl::CreateResourceLoader(). 22 // Structure used when calling BlinkPlatformImpl::CreateResourceLoader().
22 struct CONTENT_EXPORT RequestInfo { 23 struct CONTENT_EXPORT RequestInfo {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // If true, then the response body will be downloaded to a file and the 72 // If true, then the response body will be downloaded to a file and the
72 // path to that file will be provided in ResponseInfo::download_file_path. 73 // path to that file will be provided in ResponseInfo::download_file_path.
73 bool download_to_file; 74 bool download_to_file;
74 75
75 // True if the request was user initiated. 76 // True if the request was user initiated.
76 bool has_user_gesture; 77 bool has_user_gesture;
77 78
78 // True if the request should not be handled by the ServiceWorker. 79 // True if the request should not be handled by the ServiceWorker.
79 bool skip_service_worker; 80 bool skip_service_worker;
80 81
82 // The request mode passed to the ServiceWorker.
83 FetchRequestMode fetch_request_mode;
84
81 // TODO(mmenke): Investigate if enable_load_timing is safe to remove. 85 // TODO(mmenke): Investigate if enable_load_timing is safe to remove.
82 // True if load timing data should be collected for the request. 86 // True if load timing data should be collected for the request.
83 bool enable_load_timing; 87 bool enable_load_timing;
84 88
85 // Extra data associated with this request. We do not own this pointer. 89 // Extra data associated with this request. We do not own this pointer.
86 blink::WebURLRequest::ExtraData* extra_data; 90 blink::WebURLRequest::ExtraData* extra_data;
87 91
88 private: 92 private:
89 DISALLOW_COPY_AND_ASSIGN(RequestInfo); 93 DISALLOW_COPY_AND_ASSIGN(RequestInfo);
90 }; 94 };
91 95
92 } // namespace content 96 } // namespace content
93 97
94 #endif // CONTENT_CHILD_REQUEST_INFO_H_ 98 #endif // CONTENT_CHILD_REQUEST_INFO_H_
OLDNEW
« 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