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

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

Issue 224733014: Introduce ServiceWorkerHandle for tracking WebServiceWorkerImpl reference (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sigh, 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
« no previous file with comments | « content/child/service_worker/web_service_worker_impl.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 // Informs the browser of a new ServiceWorkerProvider in the child process, 62 // Informs the browser of a new ServiceWorkerProvider in the child process,
63 // |provider_id| is unique within its child process. 63 // |provider_id| is unique within its child process.
64 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderCreated, 64 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderCreated,
65 int /* provider_id */) 65 int /* provider_id */)
66 66
67 // Informs the browser of a ServiceWorkerProvider being destroyed. 67 // Informs the browser of a ServiceWorkerProvider being destroyed.
68 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed, 68 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed,
69 int /* provider_id */) 69 int /* provider_id */)
70 70
71 // Informs the browser of a ServiceWorker object being destroyed.
72 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ServiceWorkerObjectDestroyed,
73 int /* handle_id */)
74
71 // Informs the browser that |provider_id| is associated 75 // Informs the browser that |provider_id| is associated
72 // with a service worker script running context and 76 // with a service worker script running context and
73 // |version_id| identifies which ServcieWorkerVersion. 77 // |version_id| identifies which ServcieWorkerVersion.
74 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_SetVersionId, 78 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_SetVersionId,
75 int /* provider_id */, 79 int /* provider_id */,
76 int64 /* version_id */) 80 int64 /* version_id */)
77 81
78 // Informs the browser of a new scriptable API client in the child process. 82 // Informs the browser of a new scriptable API client in the child process.
79 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_AddScriptClient, 83 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_AddScriptClient,
80 int /* thread_id */, 84 int /* thread_id */,
(...skipping 17 matching lines...) Expand all
98 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_FetchEventFinished, 102 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_FetchEventFinished,
99 content::ServiceWorkerFetchEventResult, 103 content::ServiceWorkerFetchEventResult,
100 content::ServiceWorkerResponse) 104 content::ServiceWorkerResponse)
101 105
102 // Messages sent from the browser to the child process. 106 // Messages sent from the browser to the child process.
103 107
104 // Response to ServiceWorkerMsg_RegisterServiceWorker 108 // Response to ServiceWorkerMsg_RegisterServiceWorker
105 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerRegistered, 109 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerRegistered,
106 int32 /* thread_id */, 110 int32 /* thread_id */,
107 int32 /* request_id */, 111 int32 /* request_id */,
108 int64 /* version_id */) 112 int /* handle_id */)
109 113
110 // Response to ServiceWorkerMsg_UnregisterServiceWorker 114 // Response to ServiceWorkerMsg_UnregisterServiceWorker
111 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ServiceWorkerUnregistered, 115 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ServiceWorkerUnregistered,
112 int32 /* thread_id */, 116 int32 /* thread_id */,
113 int32 /* request_id */) 117 int32 /* request_id */)
114 118
115 // Sent when any kind of registration error occurs during a 119 // Sent when any kind of registration error occurs during a
116 // RegisterServiceWorker / UnregisterServiceWorker handler above. 120 // RegisterServiceWorker / UnregisterServiceWorker handler above.
117 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, 121 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError,
118 int32 /* thread_id */, 122 int32 /* thread_id */,
(...skipping 14 matching lines...) Expand all
133 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_Message, 137 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_Message,
134 base::string16 /* message */, 138 base::string16 /* message */,
135 std::vector<int> /* sent_message_port_ids */, 139 std::vector<int> /* sent_message_port_ids */,
136 std::vector<int> /* new_routing_ids */) 140 std::vector<int> /* new_routing_ids */)
137 141
138 // Sent via EmbeddedWorker to dispatch sync event. 142 // Sent via EmbeddedWorker to dispatch sync event.
139 IPC_MESSAGE_CONTROL0(ServiceWorkerMsg_SyncEvent) 143 IPC_MESSAGE_CONTROL0(ServiceWorkerMsg_SyncEvent)
140 144
141 // Informs the browser that sync event handling has finished. 145 // Informs the browser that sync event handling has finished.
142 IPC_MESSAGE_CONTROL0(ServiceWorkerHostMsg_SyncEventFinished) 146 IPC_MESSAGE_CONTROL0(ServiceWorkerHostMsg_SyncEventFinished)
OLDNEW
« no previous file with comments | « content/child/service_worker/web_service_worker_impl.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698