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

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

Issue 2714423002: Rename SkipServiceWorker to ServiceWorkerMode (Closed)
Patch Set: typos-- Created 3 years, 9 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 bool should_reset_appcache = false; 95 bool should_reset_appcache = false;
96 96
97 // Indicates which frame (or worker context) the request is being loaded into, 97 // Indicates which frame (or worker context) the request is being loaded into,
98 // or kInvalidServiceWorkerProviderId. 98 // or kInvalidServiceWorkerProviderId.
99 int service_worker_provider_id = kInvalidServiceWorkerProviderId; 99 int service_worker_provider_id = kInvalidServiceWorkerProviderId;
100 100
101 // True if the request originated from a Service Worker, e.g. due to a 101 // True if the request originated from a Service Worker, e.g. due to a
102 // fetch() in the Service Worker script. 102 // fetch() in the Service Worker script.
103 bool originated_from_service_worker = false; 103 bool originated_from_service_worker = false;
104 104
105 // Indicates which types of ServiceWorkers should skip handling this request. 105 // The service worker mode that indicates which service workers should get
106 SkipServiceWorker skip_service_worker = SkipServiceWorker::NONE; 106 // events for this request.
107 ServiceWorkerMode service_worker_mode = ServiceWorkerMode::ALL;
107 108
108 // The request mode passed to the ServiceWorker. 109 // The request mode passed to the ServiceWorker.
109 FetchRequestMode fetch_request_mode = FETCH_REQUEST_MODE_SAME_ORIGIN; 110 FetchRequestMode fetch_request_mode = FETCH_REQUEST_MODE_SAME_ORIGIN;
110 111
111 // The credentials mode passed to the ServiceWorker. 112 // The credentials mode passed to the ServiceWorker.
112 FetchCredentialsMode fetch_credentials_mode = FETCH_CREDENTIALS_MODE_OMIT; 113 FetchCredentialsMode fetch_credentials_mode = FETCH_CREDENTIALS_MODE_OMIT;
113 114
114 // The redirect mode used in Fetch API. 115 // The redirect mode used in Fetch API.
115 FetchRedirectMode fetch_redirect_mode = FetchRedirectMode::FOLLOW_MODE; 116 FetchRedirectMode fetch_redirect_mode = FetchRedirectMode::FOLLOW_MODE;
116 117
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 bool initiated_in_secure_context = false; 194 bool initiated_in_secure_context = false;
194 195
195 // The response should be downloaded and stored in the network cache, but not 196 // The response should be downloaded and stored in the network cache, but not
196 // sent back to the renderer. 197 // sent back to the renderer.
197 bool download_to_network_cache_only = false; 198 bool download_to_network_cache_only = false;
198 }; 199 };
199 200
200 } // namespace content 201 } // namespace content
201 202
202 #endif // CONTENT_COMMON_RESOURCE_REQUEST_H_ 203 #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