Index: content/common/appcache_messages.h |
diff --git a/content/common/appcache_messages.h b/content/common/appcache_messages.h |
index 185caf4658069330643ac2fd33e63ef19c366764..c1191b1a0390064730a4dbe4d9fd79e769e9f6f3 100644 |
--- a/content/common/appcache_messages.h |
+++ b/content/common/appcache_messages.h |
@@ -6,6 +6,7 @@ |
#include "ipc/ipc_message_macros.h" |
#include "webkit/common/appcache/appcache_interfaces.h" |
+#include "webkit/browser/appcache/appcache_executable_handler.h" |
#define IPC_MESSAGE_START AppCacheMsgStart |
@@ -34,6 +35,22 @@ IPC_STRUCT_TRAITS_BEGIN(appcache::AppCacheResourceInfo) |
IPC_STRUCT_TRAITS_MEMBER(is_explicit) |
IPC_STRUCT_TRAITS_END() |
+IPC_STRUCT_TRAITS_BEGIN(appcache::AppCacheExecutableHandler::Response) |
+ IPC_STRUCT_TRAITS_MEMBER(status_code) |
+ IPC_STRUCT_TRAITS_MEMBER(status_text) |
+ IPC_STRUCT_TRAITS_MEMBER(blob_id) |
+ IPC_STRUCT_TRAITS_MEMBER(use_default) |
+ IPC_STRUCT_TRAITS_MEMBER(headers) |
+IPC_STRUCT_TRAITS_END() |
+ |
+IPC_STRUCT_TRAITS_BEGIN(appcache::AppCacheExecutableHandler::Request) |
+ IPC_STRUCT_TRAITS_MEMBER(url) |
+ IPC_STRUCT_TRAITS_MEMBER(method) |
+ IPC_STRUCT_TRAITS_MEMBER(referrer) |
+ IPC_STRUCT_TRAITS_MEMBER(headers) |
+ IPC_STRUCT_TRAITS_MEMBER(is_main_resource_load) |
+IPC_STRUCT_TRAITS_END() |
+ |
// AppCache messages sent from the child process to the browser. |
// Informs the browser of a new appcache host. |
@@ -103,6 +120,28 @@ IPC_SYNC_MESSAGE_CONTROL1_1(AppCacheHostMsg_GetResourceList, |
/* resources out */) |
+// onfetch hackery - sent to a worker |
+IPC_MESSAGE_ROUTED2(AppCacheMsg_FetchEvent, |
+ int /* request_id*/, |
+ appcache::AppCacheExecutableHandler::Request) |
+ |
+// Informs the browser of a 'foreign' entry in an appcache. |
+IPC_MESSAGE_CONTROL2(AppCacheHostMsg_ExeHandlerResponse, |
+ int /* request_id */, |
+ appcache::AppCacheExecutableHandler::Response) |
+ |
+// Registers a new controller |
+IPC_MESSAGE_CONTROL4(AppCacheHostMsg_RegisterController, |
+ int /* host_id */, |
+ GURL /* document_url */, |
+ string16 /* pattern */, |
+ GURL /* controller_source */) |
+ |
+IPC_MESSAGE_CONTROL3(AppCacheHostMsg_UnregisterController, |
+ int /* host_id */, |
+ GURL /* document_url */, |
+ string16 /* pattern */) |
+ |
// AppCache messages sent from the browser to the child process. |
// Notifies the renderer of the appcache that has been selected for a |
@@ -144,3 +183,6 @@ IPC_MESSAGE_CONTROL3(AppCacheMsg_LogMessage, |
IPC_MESSAGE_CONTROL2(AppCacheMsg_ContentBlocked, |
int /* host_id */, |
GURL /* manifest_url */) |
+ |
+IPC_MESSAGE_CONTROL1(AppCacheMsg_ControllerReady, |
+ int /* host_id */) |