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

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

Issue 140743012: Start EmbeddedWorker during registration - take 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean up existing registration case Created 6 years, 10 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_types.h" 8 #include "content/common/service_worker/service_worker_types.h"
9 #include "ipc/ipc_message_macros.h" 9 #include "ipc/ipc_message_macros.h"
10 #include "ipc/ipc_param_traits.h" 10 #include "ipc/ipc_param_traits.h"
11 #include "third_party/WebKit/public/platform/WebServiceWorkerError.h" 11 #include "third_party/WebKit/public/platform/WebServiceWorkerError.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 #undef IPC_MESSAGE_EXPORT 14 #undef IPC_MESSAGE_EXPORT
15 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 15 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
16 16
17 #define IPC_MESSAGE_START ServiceWorkerMsgStart 17 #define IPC_MESSAGE_START ServiceWorkerMsgStart
18 18
19 IPC_ENUM_TRAITS(blink::WebServiceWorkerError::ErrorType) 19 IPC_ENUM_TRAITS(blink::WebServiceWorkerError::ErrorType)
20 20
21 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerFetchRequest) 21 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerFetchRequest)
22 IPC_STRUCT_TRAITS_MEMBER(url) 22 IPC_STRUCT_TRAITS_MEMBER(url)
23 IPC_STRUCT_TRAITS_MEMBER(method) 23 IPC_STRUCT_TRAITS_MEMBER(method)
24 IPC_STRUCT_TRAITS_MEMBER(headers) 24 IPC_STRUCT_TRAITS_MEMBER(headers)
25 IPC_STRUCT_TRAITS_END() 25 IPC_STRUCT_TRAITS_END()
26 26
27 // Messages sent from the child process to the browser. 27 // Messages sent from the child process to the browser.
28 28
29 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_RegisterServiceWorker, 29 IPC_MESSAGE_CONTROL5(ServiceWorkerHostMsg_RegisterServiceWorker,
30 int32 /* thread_id */, 30 int32 /* thread_id */,
31 int32 /* request_id */, 31 int32 /* request_id */,
32 int /* provider_id */,
kinuko 2014/01/29 09:56:20 It looks we don't need to send this back to browse
alecflett 2014/01/30 01:51:13 I suppose we don't now.
32 GURL /* scope */, 33 GURL /* scope */,
33 GURL /* script_url */) 34 GURL /* script_url */)
34 35
35 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_UnregisterServiceWorker, 36 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_UnregisterServiceWorker,
36 int32 /* thread_id */, 37 int32 /* thread_id */,
37 int32 /* request_id */, 38 int32 /* request_id */,
39 int /* provider_id */,
38 GURL /* scope (url pattern) */) 40 GURL /* scope (url pattern) */)
39 41
40 // Messages sent from the browser to the child process. 42 // Messages sent from the browser to the child process.
41 43
42 // Response to ServiceWorkerMsg_RegisterServiceWorker 44 // Response to ServiceWorkerMsg_RegisterServiceWorker
43 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerRegistered, 45 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerRegistered,
44 int32 /* thread_id */, 46 int32 /* thread_id */,
45 int32 /* request_id */, 47 int32 /* request_id */,
46 int64 /* service_worker_id */) 48 int64 /* service_worker_id */)
47 49
(...skipping 15 matching lines...) Expand all
63 content::ServiceWorkerFetchRequest) 65 content::ServiceWorkerFetchRequest)
64 66
65 // Informs the browser of a new ServiceWorkerProvider in the child process, 67 // Informs the browser of a new ServiceWorkerProvider in the child process,
66 // |provider_id| is unique within its child process. 68 // |provider_id| is unique within its child process.
67 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderCreated, 69 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderCreated,
68 int /* provider_id */) 70 int /* provider_id */)
69 71
70 // Informs the browser of a ServiceWorkerProvider being destroyed. 72 // Informs the browser of a ServiceWorkerProvider being destroyed.
71 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed, 73 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed,
72 int /* provider_id */) 74 int /* provider_id */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698