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

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

Issue 1191293002: Don't create ServiceWorkerProviderHost for sandboxed frames without allow-same-origin flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated kinuko's comment Created 5 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 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 SERVICE_WORKER_PROVIDER_UNKNOWN, 57 SERVICE_WORKER_PROVIDER_UNKNOWN,
58 58
59 // For ServiceWorker clients. 59 // For ServiceWorker clients.
60 SERVICE_WORKER_PROVIDER_FOR_WINDOW, 60 SERVICE_WORKER_PROVIDER_FOR_WINDOW,
61 SERVICE_WORKER_PROVIDER_FOR_WORKER, 61 SERVICE_WORKER_PROVIDER_FOR_WORKER,
62 SERVICE_WORKER_PROVIDER_FOR_SHARED_WORKER, 62 SERVICE_WORKER_PROVIDER_FOR_SHARED_WORKER,
63 63
64 // For ServiceWorkers. 64 // For ServiceWorkers.
65 SERVICE_WORKER_PROVIDER_FOR_CONTROLLER, 65 SERVICE_WORKER_PROVIDER_FOR_CONTROLLER,
66 66
67 SERVICE_WORKER_PROVIDER_TYPE_LAST = SERVICE_WORKER_PROVIDER_FOR_CONTROLLER 67 // For sandboxed frames.
68 SERVICE_WORKER_PROVIDER_FOR_SANDBOXED_FRAME,
69
70 SERVICE_WORKER_PROVIDER_TYPE_LAST =
71 SERVICE_WORKER_PROVIDER_FOR_SANDBOXED_FRAME
68 }; 72 };
69 73
70 enum FetchRequestMode { 74 enum FetchRequestMode {
71 FETCH_REQUEST_MODE_SAME_ORIGIN, 75 FETCH_REQUEST_MODE_SAME_ORIGIN,
72 FETCH_REQUEST_MODE_NO_CORS, 76 FETCH_REQUEST_MODE_NO_CORS,
73 FETCH_REQUEST_MODE_CORS, 77 FETCH_REQUEST_MODE_CORS,
74 FETCH_REQUEST_MODE_CORS_WITH_FORCED_PREFLIGHT, 78 FETCH_REQUEST_MODE_CORS_WITH_FORCED_PREFLIGHT,
75 FETCH_REQUEST_MODE_LAST = FETCH_REQUEST_MODE_CORS_WITH_FORCED_PREFLIGHT 79 FETCH_REQUEST_MODE_LAST = FETCH_REQUEST_MODE_CORS_WITH_FORCED_PREFLIGHT
76 }; 80 };
77 81
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 198
195 struct ServiceWorkerClientQueryOptions { 199 struct ServiceWorkerClientQueryOptions {
196 ServiceWorkerClientQueryOptions(); 200 ServiceWorkerClientQueryOptions();
197 blink::WebServiceWorkerClientType client_type; 201 blink::WebServiceWorkerClientType client_type;
198 bool include_uncontrolled; 202 bool include_uncontrolled;
199 }; 203 };
200 204
201 } // namespace content 205 } // namespace content
202 206
203 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_ 207 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_
OLDNEW
« no previous file with comments | « content/child/service_worker/web_service_worker_provider_impl.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698