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

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

Issue 225403014: ServiceWorker: propagate provider_id to the browser process in .register + int32/int cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 8 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 | Annotate | Revision Log
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 24 matching lines...) Expand all
35 35
36 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerResponse) 36 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerResponse)
37 IPC_STRUCT_TRAITS_MEMBER(status_code) 37 IPC_STRUCT_TRAITS_MEMBER(status_code)
38 IPC_STRUCT_TRAITS_MEMBER(status_text) 38 IPC_STRUCT_TRAITS_MEMBER(status_text)
39 IPC_STRUCT_TRAITS_MEMBER(method) 39 IPC_STRUCT_TRAITS_MEMBER(method)
40 IPC_STRUCT_TRAITS_MEMBER(headers) 40 IPC_STRUCT_TRAITS_MEMBER(headers)
41 IPC_STRUCT_TRAITS_END() 41 IPC_STRUCT_TRAITS_END()
42 42
43 // Messages sent from the child process to the browser. 43 // Messages sent from the child process to the browser.
44 44
45 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_RegisterServiceWorker, 45 IPC_MESSAGE_CONTROL5(ServiceWorkerHostMsg_RegisterServiceWorker,
46 int32 /* thread_id */, 46 int /* thread_id */,
47 int32 /* request_id */, 47 int /* request_id */,
48 int /* provider_id */,
48 GURL /* scope */, 49 GURL /* scope */,
49 GURL /* script_url */) 50 GURL /* script_url */)
50 51
51 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_UnregisterServiceWorker, 52 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_UnregisterServiceWorker,
52 int32 /* thread_id */, 53 int /* thread_id */,
53 int32 /* request_id */, 54 int /* request_id */,
55 int /* provider_id */,
54 GURL /* scope (url pattern) */) 56 GURL /* scope (url pattern) */)
55 57
56 // Sends a 'message' event to a service worker (renderer->browser). 58 // Sends a 'message' event to a service worker (renderer->browser).
57 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_PostMessage, 59 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_PostMessage,
58 int64 /* version_id */, 60 int64 /* version_id */,
59 base::string16 /* message */, 61 base::string16 /* message */,
60 std::vector<int> /* sent_message_port_ids */) 62 std::vector<int> /* sent_message_port_ids */)
61 63
62 // Informs the browser of a new ServiceWorkerProvider in the child process, 64 // Informs the browser of a new ServiceWorkerProvider in the child process,
63 // |provider_id| is unique within its child process. 65 // |provider_id| is unique within its child process.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // Informs the browser that fetch event handling has finished. 102 // Informs the browser that fetch event handling has finished.
101 // Sent via EmbeddedWorker. 103 // Sent via EmbeddedWorker.
102 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_FetchEventFinished, 104 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_FetchEventFinished,
103 content::ServiceWorkerFetchEventResult, 105 content::ServiceWorkerFetchEventResult,
104 content::ServiceWorkerResponse) 106 content::ServiceWorkerResponse)
105 107
106 // Messages sent from the browser to the child process. 108 // Messages sent from the browser to the child process.
107 109
108 // Response to ServiceWorkerMsg_RegisterServiceWorker 110 // Response to ServiceWorkerMsg_RegisterServiceWorker
109 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerRegistered, 111 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerRegistered,
110 int32 /* thread_id */, 112 int /* thread_id */,
111 int32 /* request_id */, 113 int /* request_id */,
112 int /* handle_id */) 114 int /* handle_id */)
113 115
114 // Response to ServiceWorkerMsg_UnregisterServiceWorker 116 // Response to ServiceWorkerMsg_UnregisterServiceWorker
115 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ServiceWorkerUnregistered, 117 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ServiceWorkerUnregistered,
116 int32 /* thread_id */, 118 int /* thread_id */,
117 int32 /* request_id */) 119 int /* request_id */)
118 120
119 // Sent when any kind of registration error occurs during a 121 // Sent when any kind of registration error occurs during a
120 // RegisterServiceWorker / UnregisterServiceWorker handler above. 122 // RegisterServiceWorker / UnregisterServiceWorker handler above.
121 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, 123 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError,
122 int32 /* thread_id */, 124 int /* thread_id */,
123 int32 /* request_id */, 125 int /* request_id */,
124 blink::WebServiceWorkerError::ErrorType /* code */, 126 blink::WebServiceWorkerError::ErrorType /* code */,
125 base::string16 /* message */) 127 base::string16 /* message */)
126 128
127 // Sent via EmbeddedWorker to dispatch install event. 129 // Sent via EmbeddedWorker to dispatch install event.
128 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent, int /* active_version_id */) 130 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent, int /* active_version_id */)
129 131
130 IPC_MESSAGE_CONTROL0(ServiceWorkerMsg_ActivateEvent) 132 IPC_MESSAGE_CONTROL0(ServiceWorkerMsg_ActivateEvent)
131 133
132 // Sent via EmbeddedWorker to dispatch fetch event. 134 // Sent via EmbeddedWorker to dispatch fetch event.
133 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_FetchEvent, 135 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_FetchEvent,
134 content::ServiceWorkerFetchRequest) 136 content::ServiceWorkerFetchRequest)
135 137
136 // Sends a 'message' event to a service worker (browser->EmbeddedWorker). 138 // Sends a 'message' event to a service worker (browser->EmbeddedWorker).
137 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_Message, 139 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_Message,
138 base::string16 /* message */, 140 base::string16 /* message */,
139 std::vector<int> /* sent_message_port_ids */, 141 std::vector<int> /* sent_message_port_ids */,
140 std::vector<int> /* new_routing_ids */) 142 std::vector<int> /* new_routing_ids */)
141 143
142 // Sent via EmbeddedWorker to dispatch sync event. 144 // Sent via EmbeddedWorker to dispatch sync event.
143 IPC_MESSAGE_CONTROL0(ServiceWorkerMsg_SyncEvent) 145 IPC_MESSAGE_CONTROL0(ServiceWorkerMsg_SyncEvent)
144 146
145 // Informs the browser that sync event handling has finished. 147 // Informs the browser that sync event handling has finished.
146 IPC_MESSAGE_CONTROL0(ServiceWorkerHostMsg_SyncEventFinished) 148 IPC_MESSAGE_CONTROL0(ServiceWorkerHostMsg_SyncEventFinished)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698