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

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

Issue 25008006: Flush out initial [un]registerServiceWorker roundtrip (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove render_process_id_ for now Created 7 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "ipc/ipc_message_macros.h" 8 #include "ipc/ipc_message_macros.h"
9 #include "ipc/ipc_param_traits.h" 9 #include "ipc/ipc_param_traits.h"
10 #include "url/gurl.h" 10 #include "url/gurl.h"
11 11
12 #define IPC_MESSAGE_START ServiceWorkerMsgStart 12 #define IPC_MESSAGE_START ServiceWorkerMsgStart
13 13
14 // Messages sent from the child process to the browser. 14 // Messages sent from the child process to the browser.
15 15
16 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_RegisterServiceWorker, 16 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_RegisterServiceWorker,
17 int32 /* callback_id */, 17 int32 /* thread_id */,
18 string16 /* scope */, 18 int32 /* request_id */,
19 GURL /* scope */,
19 GURL /* script_url */) 20 GURL /* script_url */)
20 21
21 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_UnregisterServiceWorker, 22 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_UnregisterServiceWorker,
22 int32 /* callback_id */, 23 int32 /* thread_id */,
23 string16 /* scope (url pattern) */) 24 int32 /* request_id */,
25 GURL /* scope (url pattern) */)
24 26
25 // Messages sent from the browser to the child process. 27 // Messages sent from the browser to the child process.
26 28
27 // Response to ServiceWorkerMsg_RegisterServiceWorker 29 // Response to ServiceWorkerMsg_RegisterServiceWorker
28 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ServiceWorkerRegistered, 30 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerRegistered,
29 int32 /* callback_id */) 31 int32 /* thread_id */,
32 int32 /* request_id */,
33 int64 /* service_worker_id */)
30 34
31 // Response to ServiceWorkerMsg_UnregisterServiceWorker 35 // Response to ServiceWorkerMsg_UnregisterServiceWorker
32 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ServiceWorkerUnregistered, 36 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ServiceWorkerUnregistered,
33 int32 /* callback_id */) 37 int32 /* thread_id */,
38 int32 /* request_id */)
OLDNEW
« no previous file with comments | « content/child/service_worker/web_service_worker_provider_impl.cc ('k') | content/content_child.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698