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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
167 std::string /* type */) | 167 std::string /* type */) |
168 | 168 |
169 // When the guest redirects a navigation, the browser process informs the | 169 // When the guest redirects a navigation, the browser process informs the |
170 // embedder through the BrowserPluginMsg_LoadRedirect message. | 170 // embedder through the BrowserPluginMsg_LoadRedirect message. |
171 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_LoadRedirect, | 171 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_LoadRedirect, |
172 int /* instance_id */, | 172 int /* instance_id */, |
173 GURL /* old_url */, | 173 GURL /* old_url */, |
174 GURL /* new_url */, | 174 GURL /* new_url */, |
175 bool /* is_top_level */) | 175 bool /* is_top_level */) |
176 | 176 |
177 IPC_STRUCT_BEGIN(BrowserPluginMsg_DidNavigate_Params) | 177 IPC_STRUCT_BEGIN(BrowserPluginMsg_LoadCommit_Params) |
178 // The current URL of the guest. | 178 // The current URL of the guest. |
179 IPC_STRUCT_MEMBER(GURL, url) | 179 IPC_STRUCT_MEMBER(GURL, url) |
180 // Indicates whether the navigation was on the top-level frame. | 180 // Indicates whether the navigation was on the top-level frame. |
181 IPC_STRUCT_MEMBER(bool, is_top_level) | 181 IPC_STRUCT_MEMBER(bool, is_top_level) |
182 // Chrome's process ID for the guest. | 182 // Chrome's process ID for the guest. |
183 IPC_STRUCT_MEMBER(int, process_id) | 183 IPC_STRUCT_MEMBER(int, process_id) |
184 // The index of the current navigation entry after this navigation was | 184 // The index of the current navigation entry after this navigation was |
185 // committed. | 185 // committed. |
186 IPC_STRUCT_MEMBER(int, current_entry_index) | 186 IPC_STRUCT_MEMBER(int, current_entry_index) |
187 // The number of navigation entries after this navigation was committed. | 187 // The number of navigation entries after this navigation was committed. |
188 IPC_STRUCT_MEMBER(int, entry_count) | 188 IPC_STRUCT_MEMBER(int, entry_count) |
189 IPC_STRUCT_END() | 189 IPC_STRUCT_END() |
190 | 190 |
191 // When the guest page has completed loading, the browser process informs | |
Charlie Reis
2012/10/16 21:17:55
This isn't correct, since these comments are still
irobert
2012/10/17 20:12:37
Done.
| |
192 // the embedder through the BrowserPluginMsg_DidCommit message. | |
193 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_LoadCommit, | |
194 int /* instance_id */, | |
195 BrowserPluginMsg_LoadCommit_Params) | |
196 | |
191 // When the guest navigates, the browser process informs the embedder through | 197 // When the guest navigates, the browser process informs the embedder through |
192 // the BrowserPluginMsg_DidNavigate message along with information about the | 198 // the BrowserPluginMsg_LoadStop message. |
193 // guest's current navigation state. | 199 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_LoadStop, |
194 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_DidNavigate, | 200 int /* instance_id */) |
195 int /* instance_id */, | |
196 BrowserPluginMsg_DidNavigate_Params) | |
197 | 201 |
198 // When the guest crashes, the browser process informs the embedder through this | 202 // When the guest crashes, the browser process informs the embedder through this |
199 // message. | 203 // message. |
200 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_GuestCrashed, | 204 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_GuestCrashed, |
201 int /* instance_id */) | 205 int /* instance_id */) |
202 | 206 |
203 IPC_STRUCT_BEGIN(BrowserPluginMsg_UpdateRect_Params) | 207 IPC_STRUCT_BEGIN(BrowserPluginMsg_UpdateRect_Params) |
204 // The position and size of the bitmap. | 208 // The position and size of the bitmap. |
205 IPC_STRUCT_MEMBER(gfx::Rect, bitmap_rect) | 209 IPC_STRUCT_MEMBER(gfx::Rect, bitmap_rect) |
206 | 210 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
246 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents, | 250 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents, |
247 int /* instance_id */, | 251 int /* instance_id */, |
248 bool /* accept */) | 252 bool /* accept */) |
249 | 253 |
250 // The guest has damage it wants to convey to the embedder so that it can | 254 // The guest has damage it wants to convey to the embedder so that it can |
251 // update its backing store. | 255 // update its backing store. |
252 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, | 256 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, |
253 int /* instance_id */, | 257 int /* instance_id */, |
254 int /* message_id */, | 258 int /* message_id */, |
255 BrowserPluginMsg_UpdateRect_Params) | 259 BrowserPluginMsg_UpdateRect_Params) |
OLD | NEW |