| 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 "content/common/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::AppCacheEventID, | 12 IPC_ENUM_TRAITS_MAX_VALUE(content::AppCacheEventID, |
| 13 appcache::APPCACHE_EVENT_ID_LAST) | 13 content::APPCACHE_EVENT_ID_LAST) |
| 14 IPC_ENUM_TRAITS_MAX_VALUE(appcache::AppCacheStatus, | 14 IPC_ENUM_TRAITS_MAX_VALUE(content::AppCacheStatus, |
| 15 appcache::APPCACHE_STATUS_LAST) | 15 content::APPCACHE_STATUS_LAST) |
| 16 IPC_ENUM_TRAITS_MAX_VALUE(appcache::AppCacheErrorReason, | 16 IPC_ENUM_TRAITS_MAX_VALUE(content::AppCacheErrorReason, |
| 17 appcache::APPCACHE_ERROR_REASON_LAST) | 17 content::APPCACHE_ERROR_REASON_LAST) |
| 18 | 18 |
| 19 IPC_STRUCT_TRAITS_BEGIN(appcache::AppCacheInfo) | 19 IPC_STRUCT_TRAITS_BEGIN(content::AppCacheInfo) |
| 20 IPC_STRUCT_TRAITS_MEMBER(manifest_url) | 20 IPC_STRUCT_TRAITS_MEMBER(manifest_url) |
| 21 IPC_STRUCT_TRAITS_MEMBER(creation_time) | 21 IPC_STRUCT_TRAITS_MEMBER(creation_time) |
| 22 IPC_STRUCT_TRAITS_MEMBER(last_update_time) | 22 IPC_STRUCT_TRAITS_MEMBER(last_update_time) |
| 23 IPC_STRUCT_TRAITS_MEMBER(last_access_time) | 23 IPC_STRUCT_TRAITS_MEMBER(last_access_time) |
| 24 IPC_STRUCT_TRAITS_MEMBER(cache_id) | 24 IPC_STRUCT_TRAITS_MEMBER(cache_id) |
| 25 IPC_STRUCT_TRAITS_MEMBER(group_id) | 25 IPC_STRUCT_TRAITS_MEMBER(group_id) |
| 26 IPC_STRUCT_TRAITS_MEMBER(status) | 26 IPC_STRUCT_TRAITS_MEMBER(status) |
| 27 IPC_STRUCT_TRAITS_MEMBER(size) | 27 IPC_STRUCT_TRAITS_MEMBER(size) |
| 28 IPC_STRUCT_TRAITS_MEMBER(is_complete) | 28 IPC_STRUCT_TRAITS_MEMBER(is_complete) |
| 29 IPC_STRUCT_TRAITS_END() | 29 IPC_STRUCT_TRAITS_END() |
| 30 | 30 |
| 31 IPC_STRUCT_TRAITS_BEGIN(appcache::AppCacheResourceInfo) | 31 IPC_STRUCT_TRAITS_BEGIN(content::AppCacheResourceInfo) |
| 32 IPC_STRUCT_TRAITS_MEMBER(url) | 32 IPC_STRUCT_TRAITS_MEMBER(url) |
| 33 IPC_STRUCT_TRAITS_MEMBER(size) | 33 IPC_STRUCT_TRAITS_MEMBER(size) |
| 34 IPC_STRUCT_TRAITS_MEMBER(is_master) | 34 IPC_STRUCT_TRAITS_MEMBER(is_master) |
| 35 IPC_STRUCT_TRAITS_MEMBER(is_manifest) | 35 IPC_STRUCT_TRAITS_MEMBER(is_manifest) |
| 36 IPC_STRUCT_TRAITS_MEMBER(is_fallback) | 36 IPC_STRUCT_TRAITS_MEMBER(is_fallback) |
| 37 IPC_STRUCT_TRAITS_MEMBER(is_foreign) | 37 IPC_STRUCT_TRAITS_MEMBER(is_foreign) |
| 38 IPC_STRUCT_TRAITS_MEMBER(is_explicit) | 38 IPC_STRUCT_TRAITS_MEMBER(is_explicit) |
| 39 IPC_STRUCT_TRAITS_END() | 39 IPC_STRUCT_TRAITS_END() |
| 40 | 40 |
| 41 IPC_STRUCT_TRAITS_BEGIN(appcache::AppCacheErrorDetails) | 41 IPC_STRUCT_TRAITS_BEGIN(content::AppCacheErrorDetails) |
| 42 IPC_STRUCT_TRAITS_MEMBER(message) | 42 IPC_STRUCT_TRAITS_MEMBER(message) |
| 43 IPC_STRUCT_TRAITS_MEMBER(reason) | 43 IPC_STRUCT_TRAITS_MEMBER(reason) |
| 44 IPC_STRUCT_TRAITS_MEMBER(url) | 44 IPC_STRUCT_TRAITS_MEMBER(url) |
| 45 IPC_STRUCT_TRAITS_MEMBER(status) | 45 IPC_STRUCT_TRAITS_MEMBER(status) |
| 46 IPC_STRUCT_TRAITS_MEMBER(is_cross_origin) | 46 IPC_STRUCT_TRAITS_MEMBER(is_cross_origin) |
| 47 IPC_STRUCT_TRAITS_END() | 47 IPC_STRUCT_TRAITS_END() |
| 48 | 48 |
| 49 // AppCache messages sent from the child process to the browser. | 49 // AppCache messages sent from the child process to the browser. |
| 50 | 50 |
| 51 // Informs the browser of a new appcache host. | 51 // Informs the browser of a new appcache host. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 89 |
| 90 // Informs the browser of a 'foreign' entry in an appcache. | 90 // Informs the browser of a 'foreign' entry in an appcache. |
| 91 IPC_MESSAGE_CONTROL3(AppCacheHostMsg_MarkAsForeignEntry, | 91 IPC_MESSAGE_CONTROL3(AppCacheHostMsg_MarkAsForeignEntry, |
| 92 int /* host_id */, | 92 int /* host_id */, |
| 93 GURL /* document_url */, | 93 GURL /* document_url */, |
| 94 int64 /* appcache_document_was_loaded_from */) | 94 int64 /* appcache_document_was_loaded_from */) |
| 95 | 95 |
| 96 // Returns the status of the appcache associated with host_id. | 96 // Returns the status of the appcache associated with host_id. |
| 97 IPC_SYNC_MESSAGE_CONTROL1_1(AppCacheHostMsg_GetStatus, | 97 IPC_SYNC_MESSAGE_CONTROL1_1(AppCacheHostMsg_GetStatus, |
| 98 int /* host_id */, | 98 int /* host_id */, |
| 99 appcache::AppCacheStatus) | 99 content::AppCacheStatus) |
| 100 | 100 |
| 101 // Initiates an update of the appcache associated with host_id. | 101 // Initiates an update of the appcache associated with host_id. |
| 102 IPC_SYNC_MESSAGE_CONTROL1_1(AppCacheHostMsg_StartUpdate, | 102 IPC_SYNC_MESSAGE_CONTROL1_1(AppCacheHostMsg_StartUpdate, |
| 103 int /* host_id */, | 103 int /* host_id */, |
| 104 bool /* success */) | 104 bool /* success */) |
| 105 | 105 |
| 106 // Swaps a new pending appcache, if there is one, into use for host_id. | 106 // Swaps a new pending appcache, if there is one, into use for host_id. |
| 107 IPC_SYNC_MESSAGE_CONTROL1_1(AppCacheHostMsg_SwapCache, | 107 IPC_SYNC_MESSAGE_CONTROL1_1(AppCacheHostMsg_SwapCache, |
| 108 int /* host_id */, | 108 int /* host_id */, |
| 109 bool /* success */) | 109 bool /* success */) |
| 110 | 110 |
| 111 // Gets resource list from appcache synchronously. | 111 // Gets resource list from appcache synchronously. |
| 112 IPC_SYNC_MESSAGE_CONTROL1_1(AppCacheHostMsg_GetResourceList, | 112 IPC_SYNC_MESSAGE_CONTROL1_1(AppCacheHostMsg_GetResourceList, |
| 113 int /* host_id in*/, | 113 int /* host_id in*/, |
| 114 std::vector<appcache::AppCacheResourceInfo> | 114 std::vector<content::AppCacheResourceInfo> |
| 115 /* resources out */) | 115 /* resources out */) |
| 116 | 116 |
| 117 | 117 |
| 118 // AppCache messages sent from the browser to the child process. | 118 // AppCache messages sent from the browser to the child process. |
| 119 | 119 |
| 120 // Notifies the renderer of the appcache that has been selected for a | 120 // Notifies the renderer of the appcache that has been selected for a |
| 121 // a particular host. This is sent in reply to AppCacheHostMsg_SelectCache. | 121 // a particular host. This is sent in reply to AppCacheHostMsg_SelectCache. |
| 122 IPC_MESSAGE_CONTROL2(AppCacheMsg_CacheSelected, | 122 IPC_MESSAGE_CONTROL2(AppCacheMsg_CacheSelected, |
| 123 int /* host_id */, | 123 int /* host_id */, |
| 124 appcache::AppCacheInfo) | 124 content::AppCacheInfo) |
| 125 | 125 |
| 126 // Notifies the renderer of an AppCache status change. | 126 // Notifies the renderer of an AppCache status change. |
| 127 IPC_MESSAGE_CONTROL2(AppCacheMsg_StatusChanged, | 127 IPC_MESSAGE_CONTROL2(AppCacheMsg_StatusChanged, |
| 128 std::vector<int> /* host_ids */, | 128 std::vector<int> /* host_ids */, |
| 129 appcache::AppCacheStatus) | 129 content::AppCacheStatus) |
| 130 | 130 |
| 131 // Notifies the renderer of an AppCache event other than the | 131 // Notifies the renderer of an AppCache event other than the |
| 132 // progress event which has a seperate message. | 132 // progress event which has a seperate message. |
| 133 IPC_MESSAGE_CONTROL2(AppCacheMsg_EventRaised, | 133 IPC_MESSAGE_CONTROL2(AppCacheMsg_EventRaised, |
| 134 std::vector<int> /* host_ids */, | 134 std::vector<int> /* host_ids */, |
| 135 appcache::AppCacheEventID) | 135 content::AppCacheEventID) |
| 136 | 136 |
| 137 // Notifies the renderer of an AppCache progress event. | 137 // Notifies the renderer of an AppCache progress event. |
| 138 IPC_MESSAGE_CONTROL4(AppCacheMsg_ProgressEventRaised, | 138 IPC_MESSAGE_CONTROL4(AppCacheMsg_ProgressEventRaised, |
| 139 std::vector<int> /* host_ids */, | 139 std::vector<int> /* host_ids */, |
| 140 GURL /* url being processed */, | 140 GURL /* url being processed */, |
| 141 int /* total */, | 141 int /* total */, |
| 142 int /* complete */) | 142 int /* complete */) |
| 143 | 143 |
| 144 // Notifies the renderer of an AppCache error event. | 144 // Notifies the renderer of an AppCache error event. |
| 145 IPC_MESSAGE_CONTROL2(AppCacheMsg_ErrorEventRaised, | 145 IPC_MESSAGE_CONTROL2(AppCacheMsg_ErrorEventRaised, |
| 146 std::vector<int> /* host_ids */, | 146 std::vector<int> /* host_ids */, |
| 147 appcache::AppCacheErrorDetails) | 147 content::AppCacheErrorDetails) |
| 148 | 148 |
| 149 // Notifies the renderer of an AppCache logging message. | 149 // Notifies the renderer of an AppCache logging message. |
| 150 IPC_MESSAGE_CONTROL3(AppCacheMsg_LogMessage, | 150 IPC_MESSAGE_CONTROL3(AppCacheMsg_LogMessage, |
| 151 int /* host_id */, | 151 int /* host_id */, |
| 152 int /* log_level */, | 152 int /* log_level */, |
| 153 std::string /* message */) | 153 std::string /* message */) |
| 154 | 154 |
| 155 // Notifies the renderer of the fact that AppCache access was blocked. | 155 // Notifies the renderer of the fact that AppCache access was blocked. |
| 156 IPC_MESSAGE_CONTROL2(AppCacheMsg_ContentBlocked, | 156 IPC_MESSAGE_CONTROL2(AppCacheMsg_ContentBlocked, |
| 157 int /* host_id */, | 157 int /* host_id */, |
| 158 GURL /* manifest_url */) | 158 GURL /* manifest_url */) |
| OLD | NEW |