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

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

Issue 1597383002: Service Worker: (Re-commit) Add FetchEvent.clientId (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 11 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 struct CONTENT_EXPORT ServiceWorkerFetchRequest { 119 struct CONTENT_EXPORT ServiceWorkerFetchRequest {
120 ServiceWorkerFetchRequest(); 120 ServiceWorkerFetchRequest();
121 ServiceWorkerFetchRequest(const GURL& url, 121 ServiceWorkerFetchRequest(const GURL& url,
122 const std::string& method, 122 const std::string& method,
123 const ServiceWorkerHeaderMap& headers, 123 const ServiceWorkerHeaderMap& headers,
124 const Referrer& referrer, 124 const Referrer& referrer,
125 bool is_reload); 125 bool is_reload);
126 ~ServiceWorkerFetchRequest(); 126 ~ServiceWorkerFetchRequest();
127 127
128 FetchRequestMode mode; 128 FetchRequestMode mode;
129 bool is_main_resource_load;
129 RequestContextType request_context_type; 130 RequestContextType request_context_type;
130 RequestContextFrameType frame_type; 131 RequestContextFrameType frame_type;
131 GURL url; 132 GURL url;
132 std::string method; 133 std::string method;
133 ServiceWorkerHeaderMap headers; 134 ServiceWorkerHeaderMap headers;
134 std::string blob_uuid; 135 std::string blob_uuid;
135 uint64_t blob_size; 136 uint64_t blob_size;
136 Referrer referrer; 137 Referrer referrer;
137 FetchCredentialsMode credentials_mode; 138 FetchCredentialsMode credentials_mode;
138 FetchRedirectMode redirect_mode; 139 FetchRedirectMode redirect_mode;
140 std::string client_id;
139 bool is_reload; 141 bool is_reload;
140 }; 142 };
141 143
142 // Represents a response to a fetch. 144 // Represents a response to a fetch.
143 struct CONTENT_EXPORT ServiceWorkerResponse { 145 struct CONTENT_EXPORT ServiceWorkerResponse {
144 ServiceWorkerResponse(); 146 ServiceWorkerResponse();
145 ServiceWorkerResponse(const GURL& url, 147 ServiceWorkerResponse(const GURL& url,
146 int status_code, 148 int status_code,
147 const std::string& status_text, 149 const std::string& status_text,
148 blink::WebServiceWorkerResponseType response_type, 150 blink::WebServiceWorkerResponseType response_type,
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 214
213 struct ServiceWorkerClientQueryOptions { 215 struct ServiceWorkerClientQueryOptions {
214 ServiceWorkerClientQueryOptions(); 216 ServiceWorkerClientQueryOptions();
215 blink::WebServiceWorkerClientType client_type; 217 blink::WebServiceWorkerClientType client_type;
216 bool include_uncontrolled; 218 bool include_uncontrolled;
217 }; 219 };
218 220
219 } // namespace content 221 } // namespace content
220 222
221 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_ 223 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698