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

Side by Side Diff: content/common/resource_request.h

Issue 2105503002: Skip foreign fetch when the skipServiceWorker flag is set on a request. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rephrase SkipServiceWorker comments. Created 4 years, 5 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_COMMON_RESOURCE_REQUEST_H_ 5 #ifndef CONTENT_COMMON_RESOURCE_REQUEST_H_
6 #define CONTENT_COMMON_RESOURCE_REQUEST_H_ 6 #define CONTENT_COMMON_RESOURCE_REQUEST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 bool should_reset_appcache = false; 86 bool should_reset_appcache = false;
87 87
88 // Indicates which frame (or worker context) the request is being loaded into, 88 // Indicates which frame (or worker context) the request is being loaded into,
89 // or kInvalidServiceWorkerProviderId. 89 // or kInvalidServiceWorkerProviderId.
90 int service_worker_provider_id = kInvalidServiceWorkerProviderId; 90 int service_worker_provider_id = kInvalidServiceWorkerProviderId;
91 91
92 // True if the request originated from a Service Worker, e.g. due to a 92 // True if the request originated from a Service Worker, e.g. due to a
93 // fetch() in the Service Worker script. 93 // fetch() in the Service Worker script.
94 bool originated_from_service_worker = false; 94 bool originated_from_service_worker = false;
95 95
96 // True if the request should not be handled by the ServiceWorker. 96 // Indicates which types of ServiceWorkers should skip handling this request.
97 bool skip_service_worker = false; 97 SkipServiceWorker skip_service_worker = SkipServiceWorker::NONE;
98 98
99 // The request mode passed to the ServiceWorker. 99 // The request mode passed to the ServiceWorker.
100 FetchRequestMode fetch_request_mode = FETCH_REQUEST_MODE_SAME_ORIGIN; 100 FetchRequestMode fetch_request_mode = FETCH_REQUEST_MODE_SAME_ORIGIN;
101 101
102 // The credentials mode passed to the ServiceWorker. 102 // The credentials mode passed to the ServiceWorker.
103 FetchCredentialsMode fetch_credentials_mode = FETCH_CREDENTIALS_MODE_OMIT; 103 FetchCredentialsMode fetch_credentials_mode = FETCH_CREDENTIALS_MODE_OMIT;
104 104
105 // The redirect mode used in Fetch API. 105 // The redirect mode used in Fetch API.
106 FetchRedirectMode fetch_redirect_mode = FetchRedirectMode::FOLLOW_MODE; 106 FetchRedirectMode fetch_redirect_mode = FetchRedirectMode::FOLLOW_MODE;
107 107
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // browser. 171 // browser.
172 GURL resource_body_stream_url; 172 GURL resource_body_stream_url;
173 173
174 // Wether or not the initiator of this request is a secure context. 174 // Wether or not the initiator of this request is a secure context.
175 bool initiated_in_secure_context = false; 175 bool initiated_in_secure_context = false;
176 }; 176 };
177 177
178 } // namespace content 178 } // namespace content
179 179
180 #endif // CONTENT_COMMON_RESOURCE_REQUEST_H_ 180 #endif // CONTENT_COMMON_RESOURCE_REQUEST_H_
OLDNEW
« no previous file with comments | « content/common/resource_messages.h ('k') | content/common/service_worker/service_worker_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698