OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Multiply-included message file, hence no include guard. | 5 // Multiply-included message file, hence no include guard. |
6 | 6 |
7 #include "ipc/ipc_message_macros.h" | 7 #include "ipc/ipc_message_macros.h" |
8 #include "webkit/common/appcache/appcache_interfaces.h" | 8 #include "webkit/common/appcache/appcache_interfaces.h" |
| 9 #include "webkit/browser/appcache/appcache_executable_handler.h" |
9 | 10 |
10 #define IPC_MESSAGE_START AppCacheMsgStart | 11 #define IPC_MESSAGE_START AppCacheMsgStart |
11 | 12 |
12 IPC_ENUM_TRAITS(appcache::EventID) | 13 IPC_ENUM_TRAITS(appcache::EventID) |
13 IPC_ENUM_TRAITS(appcache::Status) | 14 IPC_ENUM_TRAITS(appcache::Status) |
14 | 15 |
15 IPC_STRUCT_TRAITS_BEGIN(appcache::AppCacheInfo) | 16 IPC_STRUCT_TRAITS_BEGIN(appcache::AppCacheInfo) |
16 IPC_STRUCT_TRAITS_MEMBER(manifest_url) | 17 IPC_STRUCT_TRAITS_MEMBER(manifest_url) |
17 IPC_STRUCT_TRAITS_MEMBER(creation_time) | 18 IPC_STRUCT_TRAITS_MEMBER(creation_time) |
18 IPC_STRUCT_TRAITS_MEMBER(last_update_time) | 19 IPC_STRUCT_TRAITS_MEMBER(last_update_time) |
19 IPC_STRUCT_TRAITS_MEMBER(last_access_time) | 20 IPC_STRUCT_TRAITS_MEMBER(last_access_time) |
20 IPC_STRUCT_TRAITS_MEMBER(cache_id) | 21 IPC_STRUCT_TRAITS_MEMBER(cache_id) |
21 IPC_STRUCT_TRAITS_MEMBER(group_id) | 22 IPC_STRUCT_TRAITS_MEMBER(group_id) |
22 IPC_STRUCT_TRAITS_MEMBER(status) | 23 IPC_STRUCT_TRAITS_MEMBER(status) |
23 IPC_STRUCT_TRAITS_MEMBER(size) | 24 IPC_STRUCT_TRAITS_MEMBER(size) |
24 IPC_STRUCT_TRAITS_MEMBER(is_complete) | 25 IPC_STRUCT_TRAITS_MEMBER(is_complete) |
25 IPC_STRUCT_TRAITS_END() | 26 IPC_STRUCT_TRAITS_END() |
26 | 27 |
27 IPC_STRUCT_TRAITS_BEGIN(appcache::AppCacheResourceInfo) | 28 IPC_STRUCT_TRAITS_BEGIN(appcache::AppCacheResourceInfo) |
28 IPC_STRUCT_TRAITS_MEMBER(url) | 29 IPC_STRUCT_TRAITS_MEMBER(url) |
29 IPC_STRUCT_TRAITS_MEMBER(size) | 30 IPC_STRUCT_TRAITS_MEMBER(size) |
30 IPC_STRUCT_TRAITS_MEMBER(is_master) | 31 IPC_STRUCT_TRAITS_MEMBER(is_master) |
31 IPC_STRUCT_TRAITS_MEMBER(is_manifest) | 32 IPC_STRUCT_TRAITS_MEMBER(is_manifest) |
32 IPC_STRUCT_TRAITS_MEMBER(is_fallback) | 33 IPC_STRUCT_TRAITS_MEMBER(is_fallback) |
33 IPC_STRUCT_TRAITS_MEMBER(is_foreign) | 34 IPC_STRUCT_TRAITS_MEMBER(is_foreign) |
34 IPC_STRUCT_TRAITS_MEMBER(is_explicit) | 35 IPC_STRUCT_TRAITS_MEMBER(is_explicit) |
35 IPC_STRUCT_TRAITS_END() | 36 IPC_STRUCT_TRAITS_END() |
36 | 37 |
| 38 IPC_STRUCT_TRAITS_BEGIN(appcache::AppCacheExecutableHandler::Response) |
| 39 IPC_STRUCT_TRAITS_MEMBER(status_code) |
| 40 IPC_STRUCT_TRAITS_MEMBER(status_text) |
| 41 IPC_STRUCT_TRAITS_MEMBER(blob_id) |
| 42 IPC_STRUCT_TRAITS_MEMBER(use_default) |
| 43 IPC_STRUCT_TRAITS_MEMBER(headers) |
| 44 IPC_STRUCT_TRAITS_END() |
| 45 |
| 46 IPC_STRUCT_TRAITS_BEGIN(appcache::AppCacheExecutableHandler::Request) |
| 47 IPC_STRUCT_TRAITS_MEMBER(url) |
| 48 IPC_STRUCT_TRAITS_MEMBER(method) |
| 49 IPC_STRUCT_TRAITS_MEMBER(referrer) |
| 50 IPC_STRUCT_TRAITS_MEMBER(headers) |
| 51 IPC_STRUCT_TRAITS_MEMBER(is_main_resource_load) |
| 52 IPC_STRUCT_TRAITS_END() |
| 53 |
37 // AppCache messages sent from the child process to the browser. | 54 // AppCache messages sent from the child process to the browser. |
38 | 55 |
39 // Informs the browser of a new appcache host. | 56 // Informs the browser of a new appcache host. |
40 IPC_MESSAGE_CONTROL1(AppCacheHostMsg_RegisterHost, | 57 IPC_MESSAGE_CONTROL1(AppCacheHostMsg_RegisterHost, |
41 int /* host_id */) | 58 int /* host_id */) |
42 | 59 |
43 // Informs the browser of an appcache host being destroyed. | 60 // Informs the browser of an appcache host being destroyed. |
44 IPC_MESSAGE_CONTROL1(AppCacheHostMsg_UnregisterHost, | 61 IPC_MESSAGE_CONTROL1(AppCacheHostMsg_UnregisterHost, |
45 int /* host_id */) | 62 int /* host_id */) |
46 | 63 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 int /* host_id */, | 113 int /* host_id */, |
97 bool /* success */) | 114 bool /* success */) |
98 | 115 |
99 // Gets resource list from appcache synchronously. | 116 // Gets resource list from appcache synchronously. |
100 IPC_SYNC_MESSAGE_CONTROL1_1(AppCacheHostMsg_GetResourceList, | 117 IPC_SYNC_MESSAGE_CONTROL1_1(AppCacheHostMsg_GetResourceList, |
101 int /* host_id in*/, | 118 int /* host_id in*/, |
102 std::vector<appcache::AppCacheResourceInfo> | 119 std::vector<appcache::AppCacheResourceInfo> |
103 /* resources out */) | 120 /* resources out */) |
104 | 121 |
105 | 122 |
| 123 // onfetch hackery - sent to a worker |
| 124 IPC_MESSAGE_ROUTED2(AppCacheMsg_FetchEvent, |
| 125 int /* request_id*/, |
| 126 appcache::AppCacheExecutableHandler::Request) |
| 127 |
| 128 // Informs the browser of a 'foreign' entry in an appcache. |
| 129 IPC_MESSAGE_CONTROL2(AppCacheHostMsg_ExeHandlerResponse, |
| 130 int /* request_id */, |
| 131 appcache::AppCacheExecutableHandler::Response) |
| 132 |
| 133 // Registers a new controller |
| 134 IPC_MESSAGE_CONTROL4(AppCacheHostMsg_RegisterController, |
| 135 int /* host_id */, |
| 136 GURL /* document_url */, |
| 137 string16 /* pattern */, |
| 138 GURL /* controller_source */) |
| 139 |
| 140 IPC_MESSAGE_CONTROL3(AppCacheHostMsg_UnregisterController, |
| 141 int /* host_id */, |
| 142 GURL /* document_url */, |
| 143 string16 /* pattern */) |
| 144 |
106 // AppCache messages sent from the browser to the child process. | 145 // AppCache messages sent from the browser to the child process. |
107 | 146 |
108 // Notifies the renderer of the appcache that has been selected for a | 147 // Notifies the renderer of the appcache that has been selected for a |
109 // a particular host. This is sent in reply to AppCacheHostMsg_SelectCache. | 148 // a particular host. This is sent in reply to AppCacheHostMsg_SelectCache. |
110 IPC_MESSAGE_CONTROL2(AppCacheMsg_CacheSelected, | 149 IPC_MESSAGE_CONTROL2(AppCacheMsg_CacheSelected, |
111 int /* host_id */, | 150 int /* host_id */, |
112 appcache::AppCacheInfo) | 151 appcache::AppCacheInfo) |
113 | 152 |
114 // Notifies the renderer of an AppCache status change. | 153 // Notifies the renderer of an AppCache status change. |
115 IPC_MESSAGE_CONTROL2(AppCacheMsg_StatusChanged, | 154 IPC_MESSAGE_CONTROL2(AppCacheMsg_StatusChanged, |
(...skipping 21 matching lines...) Expand all Loading... |
137 // Notifies the renderer of an AppCache logging message. | 176 // Notifies the renderer of an AppCache logging message. |
138 IPC_MESSAGE_CONTROL3(AppCacheMsg_LogMessage, | 177 IPC_MESSAGE_CONTROL3(AppCacheMsg_LogMessage, |
139 int /* host_id */, | 178 int /* host_id */, |
140 int /* log_level */, | 179 int /* log_level */, |
141 std::string /* message */) | 180 std::string /* message */) |
142 | 181 |
143 // Notifies the renderer of the fact that AppCache access was blocked. | 182 // Notifies the renderer of the fact that AppCache access was blocked. |
144 IPC_MESSAGE_CONTROL2(AppCacheMsg_ContentBlocked, | 183 IPC_MESSAGE_CONTROL2(AppCacheMsg_ContentBlocked, |
145 int /* host_id */, | 184 int /* host_id */, |
146 GURL /* manifest_url */) | 185 GURL /* manifest_url */) |
| 186 |
| 187 IPC_MESSAGE_CONTROL1(AppCacheMsg_ControllerReady, |
| 188 int /* host_id */) |
OLD | NEW |