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

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

Issue 2142523004: M52: Merge "Reland: service worker: Don't control a subframe of an insecure context" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: fix compile errors 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 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 SERVICE_WORKER_PROVIDER_UNKNOWN, 59 SERVICE_WORKER_PROVIDER_UNKNOWN,
60 60
61 // For ServiceWorker clients. 61 // For ServiceWorker clients.
62 SERVICE_WORKER_PROVIDER_FOR_WINDOW, 62 SERVICE_WORKER_PROVIDER_FOR_WINDOW,
63 SERVICE_WORKER_PROVIDER_FOR_WORKER, 63 SERVICE_WORKER_PROVIDER_FOR_WORKER,
64 SERVICE_WORKER_PROVIDER_FOR_SHARED_WORKER, 64 SERVICE_WORKER_PROVIDER_FOR_SHARED_WORKER,
65 65
66 // For ServiceWorkers. 66 // For ServiceWorkers.
67 SERVICE_WORKER_PROVIDER_FOR_CONTROLLER, 67 SERVICE_WORKER_PROVIDER_FOR_CONTROLLER,
68 68
69 // For sandboxed frames.
70 SERVICE_WORKER_PROVIDER_FOR_SANDBOXED_FRAME,
71
72 SERVICE_WORKER_PROVIDER_TYPE_LAST = 69 SERVICE_WORKER_PROVIDER_TYPE_LAST =
73 SERVICE_WORKER_PROVIDER_FOR_SANDBOXED_FRAME 70 SERVICE_WORKER_PROVIDER_FOR_CONTROLLER
74 }; 71 };
75 72
76 // The enum entries below are written to histograms and thus cannot be deleted 73 // The enum entries below are written to histograms and thus cannot be deleted
77 // or reordered. 74 // or reordered.
78 // New entries must be added immediately before the end. 75 // New entries must be added immediately before the end.
79 enum FetchRequestMode { 76 enum FetchRequestMode {
80 FETCH_REQUEST_MODE_SAME_ORIGIN, 77 FETCH_REQUEST_MODE_SAME_ORIGIN,
81 FETCH_REQUEST_MODE_NO_CORS, 78 FETCH_REQUEST_MODE_NO_CORS,
82 FETCH_REQUEST_MODE_CORS, 79 FETCH_REQUEST_MODE_CORS,
83 FETCH_REQUEST_MODE_CORS_WITH_FORCED_PREFLIGHT, 80 FETCH_REQUEST_MODE_CORS_WITH_FORCED_PREFLIGHT,
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 const ServiceWorkerObjectInfo& service_worker_info); 246 const ServiceWorkerObjectInfo& service_worker_info);
250 247
251 // Exactly one of these infos should be valid. 248 // Exactly one of these infos should be valid.
252 ServiceWorkerClientInfo client_info; 249 ServiceWorkerClientInfo client_info;
253 ServiceWorkerObjectInfo service_worker_info; 250 ServiceWorkerObjectInfo service_worker_info;
254 }; 251 };
255 252
256 } // namespace content 253 } // namespace content
257 254
258 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_ 255 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_
OLDNEW
« no previous file with comments | « content/common/service_worker/service_worker_messages.h ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698