| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 header, no traditional include guard. | 5 // Multiply-included message header, no traditional include guard. |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/process.h" | 10 #include "base/process.h" |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 std::string /* type */) | 173 std::string /* type */) |
| 174 | 174 |
| 175 // When the guest redirects a navigation, the browser process informs the | 175 // When the guest redirects a navigation, the browser process informs the |
| 176 // embedder through the BrowserPluginMsg_LoadRedirect message. | 176 // embedder through the BrowserPluginMsg_LoadRedirect message. |
| 177 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_LoadRedirect, | 177 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_LoadRedirect, |
| 178 int /* instance_id */, | 178 int /* instance_id */, |
| 179 GURL /* old_url */, | 179 GURL /* old_url */, |
| 180 GURL /* new_url */, | 180 GURL /* new_url */, |
| 181 bool /* is_top_level */) | 181 bool /* is_top_level */) |
| 182 | 182 |
| 183 IPC_STRUCT_BEGIN(BrowserPluginMsg_DidNavigate_Params) | 183 IPC_STRUCT_BEGIN(BrowserPluginMsg_LoadCommit_Params) |
| 184 // The current URL of the guest. | 184 // The current URL of the guest. |
| 185 IPC_STRUCT_MEMBER(GURL, url) | 185 IPC_STRUCT_MEMBER(GURL, url) |
| 186 // Indicates whether the navigation was on the top-level frame. | 186 // Indicates whether the navigation was on the top-level frame. |
| 187 IPC_STRUCT_MEMBER(bool, is_top_level) | 187 IPC_STRUCT_MEMBER(bool, is_top_level) |
| 188 // Chrome's process ID for the guest. | 188 // Chrome's process ID for the guest. |
| 189 IPC_STRUCT_MEMBER(int, process_id) | 189 IPC_STRUCT_MEMBER(int, process_id) |
| 190 // The index of the current navigation entry after this navigation was | 190 // The index of the current navigation entry after this navigation was |
| 191 // committed. | 191 // committed. |
| 192 IPC_STRUCT_MEMBER(int, current_entry_index) | 192 IPC_STRUCT_MEMBER(int, current_entry_index) |
| 193 // The number of navigation entries after this navigation was committed. | 193 // The number of navigation entries after this navigation was committed. |
| 194 IPC_STRUCT_MEMBER(int, entry_count) | 194 IPC_STRUCT_MEMBER(int, entry_count) |
| 195 IPC_STRUCT_END() | 195 IPC_STRUCT_END() |
| 196 | 196 |
| 197 // When the guest navigates, the browser process informs the embedder through | 197 // When the guest commits a navigation, the browser process informs |
| 198 // the BrowserPluginMsg_DidNavigate message along with information about the | 198 // the embedder through the BrowserPluginMsg_DidCommit message. |
| 199 // guest's current navigation state. | 199 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_LoadCommit, |
| 200 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_DidNavigate, | |
| 201 int /* instance_id */, | 200 int /* instance_id */, |
| 202 BrowserPluginMsg_DidNavigate_Params) | 201 BrowserPluginMsg_LoadCommit_Params) |
| 202 |
| 203 // When the guest page has completed loading (including subframes), the browser |
| 204 // process informs the embedder through the BrowserPluginMsg_LoadStop message. |
| 205 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_LoadStop, |
| 206 int /* instance_id */) |
| 203 | 207 |
| 204 // When the guest crashes, the browser process informs the embedder through this | 208 // When the guest crashes, the browser process informs the embedder through this |
| 205 // message. | 209 // message. |
| 206 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_GuestCrashed, | 210 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_GuestCrashed, |
| 207 int /* instance_id */) | 211 int /* instance_id */) |
| 208 | 212 |
| 209 IPC_STRUCT_BEGIN(BrowserPluginMsg_UpdateRect_Params) | 213 IPC_STRUCT_BEGIN(BrowserPluginMsg_UpdateRect_Params) |
| 210 // The position and size of the bitmap. | 214 // The position and size of the bitmap. |
| 211 IPC_STRUCT_MEMBER(gfx::Rect, bitmap_rect) | 215 IPC_STRUCT_MEMBER(gfx::Rect, bitmap_rect) |
| 212 | 216 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents, | 256 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents, |
| 253 int /* instance_id */, | 257 int /* instance_id */, |
| 254 bool /* accept */) | 258 bool /* accept */) |
| 255 | 259 |
| 256 // The guest has damage it wants to convey to the embedder so that it can | 260 // The guest has damage it wants to convey to the embedder so that it can |
| 257 // update its backing store. | 261 // update its backing store. |
| 258 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, | 262 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, |
| 259 int /* instance_id */, | 263 int /* instance_id */, |
| 260 int /* message_id */, | 264 int /* message_id */, |
| 261 BrowserPluginMsg_UpdateRect_Params) | 265 BrowserPluginMsg_UpdateRect_Params) |
| OLD | NEW |