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

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

Issue 164753006: Start of Chrome-side plumbing for ServiceWorker fetch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove empty line 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_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"
11 #include "ipc/ipc_param_traits.h" 11 #include "ipc/ipc_param_traits.h"
12 #include "third_party/WebKit/public/platform/WebServiceWorkerError.h" 12 #include "third_party/WebKit/public/platform/WebServiceWorkerError.h"
13 #include "url/gurl.h" 13 #include "url/gurl.h"
14 14
15 #undef IPC_MESSAGE_EXPORT 15 #undef IPC_MESSAGE_EXPORT
16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
17 17
18 #define IPC_MESSAGE_START ServiceWorkerMsgStart 18 #define IPC_MESSAGE_START ServiceWorkerMsgStart
19 19
20 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerError::ErrorType, 20 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerError::ErrorType,
21 blink::WebServiceWorkerError::ErrorTypeLast) 21 blink::WebServiceWorkerError::ErrorTypeLast)
22 22
23 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerFetchRequest) 23 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerFetchRequest)
24 IPC_STRUCT_TRAITS_MEMBER(url) 24 IPC_STRUCT_TRAITS_MEMBER(url)
25 IPC_STRUCT_TRAITS_MEMBER(method) 25 IPC_STRUCT_TRAITS_MEMBER(method)
26 IPC_STRUCT_TRAITS_MEMBER(headers) 26 IPC_STRUCT_TRAITS_MEMBER(headers)
27 IPC_STRUCT_TRAITS_END() 27 IPC_STRUCT_TRAITS_END()
28 28
29 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerFetchResponse)
30 IPC_STRUCT_TRAITS_MEMBER(status_code)
31 IPC_STRUCT_TRAITS_MEMBER(status_text)
32 IPC_STRUCT_TRAITS_MEMBER(method)
33 IPC_STRUCT_TRAITS_MEMBER(headers)
34 IPC_STRUCT_TRAITS_END()
35
29 // Messages sent from the child process to the browser. 36 // Messages sent from the child process to the browser.
30 37
31 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_RegisterServiceWorker, 38 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_RegisterServiceWorker,
32 int32 /* thread_id */, 39 int32 /* thread_id */,
33 int32 /* request_id */, 40 int32 /* request_id */,
34 GURL /* scope */, 41 GURL /* scope */,
35 GURL /* script_url */) 42 GURL /* script_url */)
36 43
37 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_UnregisterServiceWorker, 44 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_UnregisterServiceWorker,
38 int32 /* thread_id */, 45 int32 /* thread_id */,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 82
76 // Informs the browser of a ServiceWorkerProvider being destroyed. 83 // Informs the browser of a ServiceWorkerProvider being destroyed.
77 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed, 84 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed,
78 int /* provider_id */) 85 int /* provider_id */)
79 86
80 // Informs the browser that install event handling has finished. 87 // Informs the browser that install event handling has finished.
81 // Sent via EmbeddedWorker. If there was an exception during the 88 // Sent via EmbeddedWorker. If there was an exception during the
82 // event handling it'll be reported back separately (to be propagated 89 // event handling it'll be reported back separately (to be propagated
83 // to the documents). 90 // to the documents).
84 IPC_MESSAGE_CONTROL0(ServiceWorkerHostMsg_InstallEventFinished) 91 IPC_MESSAGE_CONTROL0(ServiceWorkerHostMsg_InstallEventFinished)
92
93 // Informs the browser that fetch event handling has finished.
94 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_FetchEventFinished,
95 content::ServiceWorkerFetchResponse)
OLDNEW
« no previous file with comments | « content/browser/service_worker/service_worker_version.cc ('k') | content/common/service_worker/service_worker_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698