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

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

Issue 375513002: [ServiceWorker] Propagates ServiceWorker fetched response's URL and wasFetchedViaServiceWorker flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: *original_url_via_service_worker = GURL(); Created 6 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 // Message definition file, included multiple times, hence no include guard. 5 // Message definition file, included multiple times, hence no include guard.
6 6
7 #include "base/strings/string16.h" 7 #include "base/strings/string16.h"
8 #include "content/common/service_worker/service_worker_status_code.h" 8 #include "content/common/service_worker/service_worker_status_code.h"
9 #include "content/common/service_worker/service_worker_types.h" 9 #include "content/common/service_worker/service_worker_types.h"
10 #include "ipc/ipc_message_macros.h" 10 #include "ipc/ipc_message_macros.h"
(...skipping 21 matching lines...) Expand all
32 IPC_STRUCT_TRAITS_MEMBER(method) 32 IPC_STRUCT_TRAITS_MEMBER(method)
33 IPC_STRUCT_TRAITS_MEMBER(headers) 33 IPC_STRUCT_TRAITS_MEMBER(headers)
34 IPC_STRUCT_TRAITS_MEMBER(referrer) 34 IPC_STRUCT_TRAITS_MEMBER(referrer)
35 IPC_STRUCT_TRAITS_MEMBER(is_reload) 35 IPC_STRUCT_TRAITS_MEMBER(is_reload)
36 IPC_STRUCT_TRAITS_END() 36 IPC_STRUCT_TRAITS_END()
37 37
38 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerFetchEventResult, 38 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerFetchEventResult,
39 content::SERVICE_WORKER_FETCH_EVENT_LAST) 39 content::SERVICE_WORKER_FETCH_EVENT_LAST)
40 40
41 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerResponse) 41 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerResponse)
42 IPC_STRUCT_TRAITS_MEMBER(url)
42 IPC_STRUCT_TRAITS_MEMBER(status_code) 43 IPC_STRUCT_TRAITS_MEMBER(status_code)
43 IPC_STRUCT_TRAITS_MEMBER(status_text) 44 IPC_STRUCT_TRAITS_MEMBER(status_text)
44 IPC_STRUCT_TRAITS_MEMBER(headers) 45 IPC_STRUCT_TRAITS_MEMBER(headers)
45 IPC_STRUCT_TRAITS_MEMBER(blob_uuid) 46 IPC_STRUCT_TRAITS_MEMBER(blob_uuid)
46 IPC_STRUCT_TRAITS_END() 47 IPC_STRUCT_TRAITS_END()
47 48
48 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerObjectInfo) 49 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerObjectInfo)
49 IPC_STRUCT_TRAITS_MEMBER(handle_id) 50 IPC_STRUCT_TRAITS_MEMBER(handle_id)
50 IPC_STRUCT_TRAITS_MEMBER(scope) 51 IPC_STRUCT_TRAITS_MEMBER(scope)
51 IPC_STRUCT_TRAITS_MEMBER(url) 52 IPC_STRUCT_TRAITS_MEMBER(url)
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 std::string /* data */) 212 std::string /* data */)
212 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_MessageToWorker, 213 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_MessageToWorker,
213 base::string16 /* message */, 214 base::string16 /* message */,
214 std::vector<int> /* sent_message_port_ids */, 215 std::vector<int> /* sent_message_port_ids */,
215 std::vector<int> /* new_routing_ids */) 216 std::vector<int> /* new_routing_ids */)
216 217
217 // Sent via EmbeddedWorker as a response of GetClientDocuments. 218 // Sent via EmbeddedWorker as a response of GetClientDocuments.
218 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments, 219 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidGetClientDocuments,
219 int /* request_id */, 220 int /* request_id */,
220 std::vector<int> /* client_ids */) 221 std::vector<int> /* client_ids */)
OLDNEW
« no previous file with comments | « content/common/resource_messages.h ('k') | content/common/service_worker/service_worker_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698