| 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 | 9 |
| 10 #define IPC_MESSAGE_START AppCacheMsgStart | 10 #define IPC_MESSAGE_START AppCacheMsgStart |
| 11 | 11 |
| 12 IPC_ENUM_TRAITS_MAX_VALUE(appcache::EventID, appcache::EVENT_ID_LAST) | 12 IPC_ENUM_TRAITS_MAX_VALUE(appcache::EventID, appcache::EVENT_ID_LAST) |
| 13 IPC_ENUM_TRAITS_MAX_VALUE(appcache::Status, appcache::STATUS_LAST) | 13 IPC_ENUM_TRAITS_MAX_VALUE(appcache::Status, appcache::STATUS_LAST) |
| 14 IPC_ENUM_TRAITS_MAX_VALUE(appcache::ErrorReason, appcache::ERROR_REASON_LAST) |
| 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::ErrorDetails) |
| 39 IPC_STRUCT_TRAITS_MEMBER(message) |
| 40 IPC_STRUCT_TRAITS_MEMBER(reason) |
| 41 IPC_STRUCT_TRAITS_MEMBER(url) |
| 42 IPC_STRUCT_TRAITS_MEMBER(status) |
| 43 IPC_STRUCT_TRAITS_MEMBER(is_cross_origin) |
| 44 IPC_STRUCT_TRAITS_END() |
| 45 |
| 37 // AppCache messages sent from the child process to the browser. | 46 // AppCache messages sent from the child process to the browser. |
| 38 | 47 |
| 39 // Informs the browser of a new appcache host. | 48 // Informs the browser of a new appcache host. |
| 40 IPC_MESSAGE_CONTROL1(AppCacheHostMsg_RegisterHost, | 49 IPC_MESSAGE_CONTROL1(AppCacheHostMsg_RegisterHost, |
| 41 int /* host_id */) | 50 int /* host_id */) |
| 42 | 51 |
| 43 // Informs the browser of an appcache host being destroyed. | 52 // Informs the browser of an appcache host being destroyed. |
| 44 IPC_MESSAGE_CONTROL1(AppCacheHostMsg_UnregisterHost, | 53 IPC_MESSAGE_CONTROL1(AppCacheHostMsg_UnregisterHost, |
| 45 int /* host_id */) | 54 int /* host_id */) |
| 46 | 55 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 // Notifies the renderer of an AppCache progress event. | 134 // Notifies the renderer of an AppCache progress event. |
| 126 IPC_MESSAGE_CONTROL4(AppCacheMsg_ProgressEventRaised, | 135 IPC_MESSAGE_CONTROL4(AppCacheMsg_ProgressEventRaised, |
| 127 std::vector<int> /* host_ids */, | 136 std::vector<int> /* host_ids */, |
| 128 GURL /* url being processed */, | 137 GURL /* url being processed */, |
| 129 int /* total */, | 138 int /* total */, |
| 130 int /* complete */) | 139 int /* complete */) |
| 131 | 140 |
| 132 // Notifies the renderer of an AppCache error event. | 141 // Notifies the renderer of an AppCache error event. |
| 133 IPC_MESSAGE_CONTROL2(AppCacheMsg_ErrorEventRaised, | 142 IPC_MESSAGE_CONTROL2(AppCacheMsg_ErrorEventRaised, |
| 134 std::vector<int> /* host_ids */, | 143 std::vector<int> /* host_ids */, |
| 135 std::string /* error_message */) | 144 appcache::ErrorDetails) |
| 136 | 145 |
| 137 // Notifies the renderer of an AppCache logging message. | 146 // Notifies the renderer of an AppCache logging message. |
| 138 IPC_MESSAGE_CONTROL3(AppCacheMsg_LogMessage, | 147 IPC_MESSAGE_CONTROL3(AppCacheMsg_LogMessage, |
| 139 int /* host_id */, | 148 int /* host_id */, |
| 140 int /* log_level */, | 149 int /* log_level */, |
| 141 std::string /* message */) | 150 std::string /* message */) |
| 142 | 151 |
| 143 // Notifies the renderer of the fact that AppCache access was blocked. | 152 // Notifies the renderer of the fact that AppCache access was blocked. |
| 144 IPC_MESSAGE_CONTROL2(AppCacheMsg_ContentBlocked, | 153 IPC_MESSAGE_CONTROL2(AppCacheMsg_ContentBlocked, |
| 145 int /* host_id */, | 154 int /* host_id */, |
| 146 GURL /* manifest_url */) | 155 GURL /* manifest_url */) |
| OLD | NEW |