| 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 <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 GURL stream_url; | 126 GURL stream_url; |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 // Controls how requests are matched in the Cache API. | 129 // Controls how requests are matched in the Cache API. |
| 130 struct CONTENT_EXPORT ServiceWorkerCacheQueryParams { | 130 struct CONTENT_EXPORT ServiceWorkerCacheQueryParams { |
| 131 ServiceWorkerCacheQueryParams(); | 131 ServiceWorkerCacheQueryParams(); |
| 132 | 132 |
| 133 bool ignore_search; | 133 bool ignore_search; |
| 134 bool ignore_method; | 134 bool ignore_method; |
| 135 bool ignore_vary; | 135 bool ignore_vary; |
| 136 bool prefix_match; | |
| 137 base::string16 cache_name; | 136 base::string16 cache_name; |
| 138 }; | 137 }; |
| 139 | 138 |
| 140 // The type of a single batch operation in the Cache API. | 139 // The type of a single batch operation in the Cache API. |
| 141 enum ServiceWorkerCacheOperationType { | 140 enum ServiceWorkerCacheOperationType { |
| 142 SERVICE_WORKER_CACHE_OPERATION_TYPE_UNDEFINED, | 141 SERVICE_WORKER_CACHE_OPERATION_TYPE_UNDEFINED, |
| 143 SERVICE_WORKER_CACHE_OPERATION_TYPE_PUT, | 142 SERVICE_WORKER_CACHE_OPERATION_TYPE_PUT, |
| 144 SERVICE_WORKER_CACHE_OPERATION_TYPE_DELETE, | 143 SERVICE_WORKER_CACHE_OPERATION_TYPE_DELETE, |
| 145 SERVICE_WORKER_CACHE_OPERATION_TYPE_LAST = | 144 SERVICE_WORKER_CACHE_OPERATION_TYPE_LAST = |
| 146 SERVICE_WORKER_CACHE_OPERATION_TYPE_DELETE | 145 SERVICE_WORKER_CACHE_OPERATION_TYPE_DELETE |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 int client_id; | 206 int client_id; |
| 208 blink::WebPageVisibilityState page_visibility_state; | 207 blink::WebPageVisibilityState page_visibility_state; |
| 209 bool is_focused; | 208 bool is_focused; |
| 210 GURL url; | 209 GURL url; |
| 211 RequestContextFrameType frame_type; | 210 RequestContextFrameType frame_type; |
| 212 }; | 211 }; |
| 213 | 212 |
| 214 } // namespace content | 213 } // namespace content |
| 215 | 214 |
| 216 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_ | 215 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_ |
| OLD | NEW |