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

Side by Side Diff: content/common/service_worker/service_worker_types.h

Issue 1391583002: Introduce "navigate" mode in Requests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « content/child/web_url_request_util.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_ 5 #ifndef CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_
6 #define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_ 6 #define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // For ServiceWorkers. 69 // For ServiceWorkers.
70 SERVICE_WORKER_PROVIDER_FOR_CONTROLLER, 70 SERVICE_WORKER_PROVIDER_FOR_CONTROLLER,
71 71
72 // For sandboxed frames. 72 // For sandboxed frames.
73 SERVICE_WORKER_PROVIDER_FOR_SANDBOXED_FRAME, 73 SERVICE_WORKER_PROVIDER_FOR_SANDBOXED_FRAME,
74 74
75 SERVICE_WORKER_PROVIDER_TYPE_LAST = 75 SERVICE_WORKER_PROVIDER_TYPE_LAST =
76 SERVICE_WORKER_PROVIDER_FOR_SANDBOXED_FRAME 76 SERVICE_WORKER_PROVIDER_FOR_SANDBOXED_FRAME
77 }; 77 };
78 78
79 // The enum entries below are written to histograms and thus cannot be deleted
80 // or reordered.
81 // New entries must be added immediately before the end.
79 enum FetchRequestMode { 82 enum FetchRequestMode {
80 FETCH_REQUEST_MODE_SAME_ORIGIN, 83 FETCH_REQUEST_MODE_SAME_ORIGIN,
81 FETCH_REQUEST_MODE_NO_CORS, 84 FETCH_REQUEST_MODE_NO_CORS,
82 FETCH_REQUEST_MODE_CORS, 85 FETCH_REQUEST_MODE_CORS,
83 FETCH_REQUEST_MODE_CORS_WITH_FORCED_PREFLIGHT, 86 FETCH_REQUEST_MODE_CORS_WITH_FORCED_PREFLIGHT,
84 FETCH_REQUEST_MODE_LAST = FETCH_REQUEST_MODE_CORS_WITH_FORCED_PREFLIGHT 87 FETCH_REQUEST_MODE_NAVIGATE,
88 FETCH_REQUEST_MODE_LAST = FETCH_REQUEST_MODE_NAVIGATE
85 }; 89 };
86 90
87 enum FetchCredentialsMode { 91 enum FetchCredentialsMode {
88 FETCH_CREDENTIALS_MODE_OMIT, 92 FETCH_CREDENTIALS_MODE_OMIT,
89 FETCH_CREDENTIALS_MODE_SAME_ORIGIN, 93 FETCH_CREDENTIALS_MODE_SAME_ORIGIN,
90 FETCH_CREDENTIALS_MODE_INCLUDE, 94 FETCH_CREDENTIALS_MODE_INCLUDE,
91 FETCH_CREDENTIALS_MODE_LAST = FETCH_CREDENTIALS_MODE_INCLUDE 95 FETCH_CREDENTIALS_MODE_LAST = FETCH_CREDENTIALS_MODE_INCLUDE
92 }; 96 };
93 97
94 enum class FetchRedirectMode { 98 enum class FetchRedirectMode {
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 217
214 struct ServiceWorkerClientQueryOptions { 218 struct ServiceWorkerClientQueryOptions {
215 ServiceWorkerClientQueryOptions(); 219 ServiceWorkerClientQueryOptions();
216 blink::WebServiceWorkerClientType client_type; 220 blink::WebServiceWorkerClientType client_type;
217 bool include_uncontrolled; 221 bool include_uncontrolled;
218 }; 222 };
219 223
220 } // namespace content 224 } // namespace content
221 225
222 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_ 226 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_
OLDNEW
« no previous file with comments | « content/child/web_url_request_util.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698