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

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

Issue 26442004: Service worker registration error support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re-fix tests 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
« no previous file with comments | « content/common/DEPS ('k') | content/content_tests.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 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 "third_party/WebKit/public/platform/WebServiceWorkerError.h"
10 #include "url/gurl.h" 11 #include "url/gurl.h"
11 12
13 #undef IPC_MESSAGE_EXPORT
14 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
15
12 #define IPC_MESSAGE_START ServiceWorkerMsgStart 16 #define IPC_MESSAGE_START ServiceWorkerMsgStart
13 17
18 IPC_ENUM_TRAITS(WebKit::WebServiceWorkerError::ErrorType)
19
14 // Messages sent from the child process to the browser. 20 // Messages sent from the child process to the browser.
15 21
16 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_RegisterServiceWorker, 22 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_RegisterServiceWorker,
17 int32 /* thread_id */, 23 int32 /* thread_id */,
18 int32 /* request_id */, 24 int32 /* request_id */,
19 GURL /* scope */, 25 GURL /* scope */,
20 GURL /* script_url */) 26 GURL /* script_url */)
21 27
22 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_UnregisterServiceWorker, 28 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_UnregisterServiceWorker,
23 int32 /* thread_id */, 29 int32 /* thread_id */,
24 int32 /* request_id */, 30 int32 /* request_id */,
25 GURL /* scope (url pattern) */) 31 GURL /* scope (url pattern) */)
26 32
27 // Messages sent from the browser to the child process. 33 // Messages sent from the browser to the child process.
28 34
29 // Response to ServiceWorkerMsg_RegisterServiceWorker 35 // Response to ServiceWorkerMsg_RegisterServiceWorker
30 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerRegistered, 36 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerRegistered,
31 int32 /* thread_id */, 37 int32 /* thread_id */,
32 int32 /* request_id */, 38 int32 /* request_id */,
33 int64 /* service_worker_id */) 39 int64 /* service_worker_id */)
34 40
35 // Response to ServiceWorkerMsg_UnregisterServiceWorker 41 // Response to ServiceWorkerMsg_UnregisterServiceWorker
36 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ServiceWorkerUnregistered, 42 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ServiceWorkerUnregistered,
37 int32 /* thread_id */, 43 int32 /* thread_id */,
38 int32 /* request_id */) 44 int32 /* request_id */)
45
46 // Sent when any kind of registration error occurs during a
47 // RegisterServiceWorker / UnregisterServiceWorker handler above.
48 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError,
49 int32 /* thread_id */,
50 int32 /* request_id */,
51 WebKit::WebServiceWorkerError::ErrorType /* code */,
52 string16 /* message */)
OLDNEW
« no previous file with comments | « content/common/DEPS ('k') | content/content_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698