Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(312)

Side by Side Diff: content/common/browser_plugin_messages.h

Issue 11035067: Add loadCommit and loadStop Event (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Comments Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 // When the guest navigates, the browser process informs the embedder through
Fady Samuel 2012/10/15 19:59:20 We still need these params for CanGoBack/CanGoForw
irobert 2012/10/16 01:26:39 Done.
irobert 2012/10/16 01:26:39 Done.
178 // The current URL of the guest. 178 // the BrowserPluginMsg_LoadStop message.
179 IPC_STRUCT_MEMBER(GURL, url) 179 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_LoadStop,
180 // Indicates whether the navigation was on the top-level frame. 180 int /* instance_id */)
181 IPC_STRUCT_MEMBER(bool, is_top_level)
182 // Chrome's process ID for the guest.
183 IPC_STRUCT_MEMBER(int, process_id)
184 // The index of the current navigation entry after this navigation was
185 // committed.
186 IPC_STRUCT_MEMBER(int, current_entry_index)
187 // The number of navigation entries after this navigation was committed.
188 IPC_STRUCT_MEMBER(int, entry_count)
189 IPC_STRUCT_END()
190 181
191 // When the guest navigates, the browser process informs the embedder through 182 // When all the guest pages have completed, the browser process informs
192 // the BrowserPluginMsg_DidNavigate message along with information about the 183 // the embedder through the BrowserPluginMsg_DidCommit message.
193 // guest's current navigation state. 184 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_LoadCommit,
194 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_DidNavigate,
195 int /* instance_id */, 185 int /* instance_id */,
196 BrowserPluginMsg_DidNavigate_Params) 186 GURL /* url */,
187 int /* process_id */,
188 bool /* is_top_level */)
197 189
198 // When the guest crashes, the browser process informs the embedder through this 190 // When the guest crashes, the browser process informs the embedder through this
199 // message. 191 // message.
200 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_GuestCrashed, 192 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_GuestCrashed,
201 int /* instance_id */) 193 int /* instance_id */)
202 194
203 IPC_STRUCT_BEGIN(BrowserPluginMsg_UpdateRect_Params) 195 IPC_STRUCT_BEGIN(BrowserPluginMsg_UpdateRect_Params)
204 // The position and size of the bitmap. 196 // The position and size of the bitmap.
205 IPC_STRUCT_MEMBER(gfx::Rect, bitmap_rect) 197 IPC_STRUCT_MEMBER(gfx::Rect, bitmap_rect)
206 198
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents, 238 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents,
247 int /* instance_id */, 239 int /* instance_id */,
248 bool /* accept */) 240 bool /* accept */)
249 241
250 // The guest has damage it wants to convey to the embedder so that it can 242 // The guest has damage it wants to convey to the embedder so that it can
251 // update its backing store. 243 // update its backing store.
252 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, 244 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect,
253 int /* instance_id */, 245 int /* instance_id */,
254 int /* message_id */, 246 int /* message_id */,
255 BrowserPluginMsg_UpdateRect_Params) 247 BrowserPluginMsg_UpdateRect_Params)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698