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

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

Issue 193723003: Identify service worker version at main resource load time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 int32 /* thread_id */, 52 int32 /* thread_id */,
53 int32 /* request_id */, 53 int32 /* request_id */,
54 GURL /* scope (url pattern) */) 54 GURL /* scope (url pattern) */)
55 55
56 // Sends a 'message' event to a service worker (renderer->browser). 56 // Sends a 'message' event to a service worker (renderer->browser).
57 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_PostMessage, 57 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_PostMessage,
58 int64 /* registration_id */, 58 int64 /* registration_id */,
59 base::string16 /* message */, 59 base::string16 /* message */,
60 std::vector<int> /* sent_message_port_ids */) 60 std::vector<int> /* sent_message_port_ids */)
61 61
62 // Informs the browser of a new ServiceWorkerProvider in the child process,
63 // |provider_id| is unique within its child process.
64 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderCreated,
65 int /* provider_id */)
66
67 // Informs the browser of a ServiceWorkerProvider being destroyed.
68 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed,
69 int /* provider_id */)
70
71 // Informs the browser that |provider_id| is associated
72 // with a service worker script running context and
73 // |version_id| identifies which ServcieWorkerVersion.
74 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_SetVersionId,
75 int /* provider_id */,
76 int64 /* version_id */)
77
78 // Informs the browser of a new scriptable API client in the child process.
79 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_AddScriptClient,
80 int /* thread_id */,
81 int /* provider_id */)
82
83 // Informs the browser that the scriptable API client is unregistered.
84 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_RemoveScriptClient,
85 int /* thread_id */,
86 int /* provider_id */)
87
88 // Informs the browser that install event handling has finished.
89 // Sent via EmbeddedWorker.
90 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_InstallEventFinished,
91 blink::WebServiceWorkerEventResult)
92
93 // Informs the browser that fetch event handling has finished.
94 // Sent via EmbeddedWorker.
95 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_FetchEventFinished,
96 content::ServiceWorkerFetchEventResult,
97 content::ServiceWorkerResponse)
98
62 // Messages sent from the browser to the child process. 99 // Messages sent from the browser to the child process.
63 100
64 // Response to ServiceWorkerMsg_RegisterServiceWorker 101 // Response to ServiceWorkerMsg_RegisterServiceWorker
65 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerRegistered, 102 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerRegistered,
66 int32 /* thread_id */, 103 int32 /* thread_id */,
67 int32 /* request_id */, 104 int32 /* request_id */,
68 int64 /* service_worker_id */) 105 int64 /* service_worker_id */)
69 106
70 // Response to ServiceWorkerMsg_UnregisterServiceWorker 107 // Response to ServiceWorkerMsg_UnregisterServiceWorker
71 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ServiceWorkerUnregistered, 108 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ServiceWorkerUnregistered,
(...skipping 14 matching lines...) Expand all
86 // Sent via EmbeddedWorker to dispatch fetch event. 123 // Sent via EmbeddedWorker to dispatch fetch event.
87 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_FetchEvent, 124 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_FetchEvent,
88 content::ServiceWorkerFetchRequest) 125 content::ServiceWorkerFetchRequest)
89 126
90 // Sends a 'message' event to a service worker (browser->EmbeddedWorker). 127 // Sends a 'message' event to a service worker (browser->EmbeddedWorker).
91 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_Message, 128 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_Message,
92 base::string16 /* message */, 129 base::string16 /* message */,
93 std::vector<int> /* sent_message_port_ids */, 130 std::vector<int> /* sent_message_port_ids */,
94 std::vector<int> /* new_routing_ids */) 131 std::vector<int> /* new_routing_ids */)
95 132
96 // Informs the browser of a new ServiceWorkerProvider in the child process,
97 // |provider_id| is unique within its child process.
98 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderCreated,
99 int /* provider_id */)
100
101 // Informs the browser of a ServiceWorkerProvider being destroyed.
102 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed,
103 int /* provider_id */)
104
105 // Informs the browser of a new scriptable API client in the child process.
106 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_AddScriptClient,
107 int /* thread_id */,
108 int /* provider_id */)
109
110 // Informs the browser that the scriptable API client is unregistered.
111 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_RemoveScriptClient,
112 int /* thread_id */,
113 int /* provider_id */)
114
115 // Informs the browser that install event handling has finished.
116 // Sent via EmbeddedWorker.
117 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_InstallEventFinished,
118 blink::WebServiceWorkerEventResult)
119
120 // Informs the browser that fetch event handling has finished.
121 // Sent via EmbeddedWorker.
122 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_FetchEventFinished,
123 content::ServiceWorkerFetchEventResult,
124 content::ServiceWorkerResponse)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698