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

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

Issue 140893002: Adding slightly clearer separation between SW and EmbeddedWorker (still incomplete) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 "ipc/ipc_message_macros.h" 9 #include "ipc/ipc_message_macros.h"
9 #include "ipc/ipc_param_traits.h" 10 #include "ipc/ipc_param_traits.h"
10 #include "third_party/WebKit/public/platform/WebServiceWorkerError.h" 11 #include "third_party/WebKit/public/platform/WebServiceWorkerError.h"
11 #include "url/gurl.h" 12 #include "url/gurl.h"
12 13
13 #undef IPC_MESSAGE_EXPORT 14 #undef IPC_MESSAGE_EXPORT
14 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 15 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
15 16
16 #define IPC_MESSAGE_START ServiceWorkerMsgStart 17 #define IPC_MESSAGE_START ServiceWorkerMsgStart
17 18
18 IPC_ENUM_TRAITS(blink::WebServiceWorkerError::ErrorType) 19 IPC_ENUM_TRAITS(blink::WebServiceWorkerError::ErrorType)
19 20
21 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerFetchRequest)
22 IPC_STRUCT_TRAITS_MEMBER(url)
23 IPC_STRUCT_TRAITS_MEMBER(method)
24 IPC_STRUCT_TRAITS_MEMBER(headers)
25 IPC_STRUCT_TRAITS_END()
26
20 // Messages sent from the child process to the browser. 27 // Messages sent from the child process to the browser.
21 28
22 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_RegisterServiceWorker, 29 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_RegisterServiceWorker,
23 int32 /* thread_id */, 30 int32 /* thread_id */,
24 int32 /* request_id */, 31 int32 /* request_id */,
25 GURL /* scope */, 32 GURL /* scope */,
26 GURL /* script_url */) 33 GURL /* script_url */)
27 34
28 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_UnregisterServiceWorker, 35 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_UnregisterServiceWorker,
29 int32 /* thread_id */, 36 int32 /* thread_id */,
(...skipping 14 matching lines...) Expand all
44 int32 /* request_id */) 51 int32 /* request_id */)
45 52
46 // Sent when any kind of registration error occurs during a 53 // Sent when any kind of registration error occurs during a
47 // RegisterServiceWorker / UnregisterServiceWorker handler above. 54 // RegisterServiceWorker / UnregisterServiceWorker handler above.
48 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, 55 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError,
49 int32 /* thread_id */, 56 int32 /* thread_id */,
50 int32 /* request_id */, 57 int32 /* request_id */,
51 blink::WebServiceWorkerError::ErrorType /* code */, 58 blink::WebServiceWorkerError::ErrorType /* code */,
52 base::string16 /* message */) 59 base::string16 /* message */)
53 60
61 // Sent via EmbeddedWorker to dispatch fetch event.
62 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_FetchEvent,
63 content::ServiceWorkerFetchRequest)
64
54 // Informs the browser of a new ServiceWorkerProvider in the child process, 65 // Informs the browser of a new ServiceWorkerProvider in the child process,
55 // |provider_id| is unique within its child process. 66 // |provider_id| is unique within its child process.
56 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderCreated, 67 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderCreated,
57 int /* provider_id */) 68 int /* provider_id */)
58 69
59 // Informs the browser of a ServiceWorkerProvider being destroyed. 70 // Informs the browser of a ServiceWorkerProvider being destroyed.
60 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed, 71 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed,
61 int /* provider_id */) 72 int /* provider_id */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698