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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 RequestContextType request_context_type; | 116 RequestContextType request_context_type; |
117 RequestContextFrameType frame_type; | 117 RequestContextFrameType frame_type; |
118 GURL url; | 118 GURL url; |
119 std::string method; | 119 std::string method; |
120 ServiceWorkerHeaderMap headers; | 120 ServiceWorkerHeaderMap headers; |
121 std::string blob_uuid; | 121 std::string blob_uuid; |
122 uint64_t blob_size; | 122 uint64_t blob_size; |
123 Referrer referrer; | 123 Referrer referrer; |
124 FetchCredentialsMode credentials_mode; | 124 FetchCredentialsMode credentials_mode; |
125 FetchRedirectMode redirect_mode; | 125 FetchRedirectMode redirect_mode; |
| 126 std::string integrity; |
126 std::string client_id; | 127 std::string client_id; |
127 bool is_reload; | 128 bool is_reload; |
128 ServiceWorkerFetchType fetch_type; | 129 ServiceWorkerFetchType fetch_type; |
129 }; | 130 }; |
130 | 131 |
131 // Represents a response to a fetch. | 132 // Represents a response to a fetch. |
132 struct CONTENT_EXPORT ServiceWorkerResponse { | 133 struct CONTENT_EXPORT ServiceWorkerResponse { |
133 ServiceWorkerResponse(); | 134 ServiceWorkerResponse(); |
134 ServiceWorkerResponse( | 135 ServiceWorkerResponse( |
135 std::unique_ptr<std::vector<GURL>> url_list, | 136 std::unique_ptr<std::vector<GURL>> url_list, |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 NavigationPreloadState(); | 249 NavigationPreloadState(); |
249 NavigationPreloadState(bool enabled, std::string header); | 250 NavigationPreloadState(bool enabled, std::string header); |
250 NavigationPreloadState(const NavigationPreloadState& other); | 251 NavigationPreloadState(const NavigationPreloadState& other); |
251 bool enabled; | 252 bool enabled; |
252 std::string header; | 253 std::string header; |
253 }; | 254 }; |
254 | 255 |
255 } // namespace content | 256 } // namespace content |
256 | 257 |
257 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_ | 258 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_ |
OLD | NEW |