| OLD | NEW |
| 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 Loading... |
| 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 const ServiceWorkerObjectInfo& service_worker_info); | 251 const ServiceWorkerObjectInfo& service_worker_info); |
| 255 | 252 |
| 256 // Exactly one of these infos should be valid. | 253 // Exactly one of these infos should be valid. |
| 257 ServiceWorkerClientInfo client_info; | 254 ServiceWorkerClientInfo client_info; |
| 258 ServiceWorkerObjectInfo service_worker_info; | 255 ServiceWorkerObjectInfo service_worker_info; |
| 259 }; | 256 }; |
| 260 | 257 |
| 261 } // namespace content | 258 } // namespace content |
| 262 | 259 |
| 263 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_ | 260 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_ |
| OLD | NEW |