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

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

Issue 11092023: Browser Plugin: Implement CanGoBack/CanGoForward (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated Navigation Event 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 std::string /* type */) 153 std::string /* type */)
154 154
155 // When the guest redirects a navigation, the browser process informs the 155 // When the guest redirects a navigation, the browser process informs the
156 // embedder through the BrowserPluginMsg_LoadRedirect message. 156 // embedder through the BrowserPluginMsg_LoadRedirect message.
157 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_LoadRedirect, 157 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_LoadRedirect,
158 int /* instance_id */, 158 int /* instance_id */,
159 GURL /* old_url */, 159 GURL /* old_url */,
160 GURL /* new_url */, 160 GURL /* new_url */,
161 bool /* is_top_level */) 161 bool /* is_top_level */)
162 162
163 IPC_STRUCT_BEGIN(BrowserPluginMsg_DidNavigate_Params)
164 // The current URL of the guest.
165 IPC_STRUCT_MEMBER(GURL, url)
166 // Indicates whether the navigation was on the top-level frame.
167 IPC_STRUCT_MEMBER(bool, is_top_level)
168 // Chrome's process ID for the guest.
169 IPC_STRUCT_MEMBER(int, process_id)
170 // The index of the current navigation entry after this navigation was
171 // committed.
172 IPC_STRUCT_MEMBER(int, current_entry_index)
173 // The number of navigation entries after this navigation was committed.
174 IPC_STRUCT_MEMBER(int, entry_count)
175 IPC_STRUCT_END()
176
163 // When the guest navigates, the browser process informs the embedder through 177 // When the guest navigates, the browser process informs the embedder through
164 // the BrowserPluginMsg_DidNavigate message. 178 // the BrowserPluginMsg_DidNavigate message along with information about the
165 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_DidNavigate, 179 // guest's current navigation state.
180 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_DidNavigate,
166 int /* instance_id */, 181 int /* instance_id */,
167 GURL /* url */, 182 BrowserPluginMsg_DidNavigate_Params)
168 int /* process_id */)
169 183
170 // When the guest crashes, the browser process informs the embedder through this 184 // When the guest crashes, the browser process informs the embedder through this
171 // message. 185 // message.
172 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_GuestCrashed, 186 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_GuestCrashed,
173 int /* instance_id */) 187 int /* instance_id */)
174 188
175 IPC_STRUCT_BEGIN(BrowserPluginMsg_UpdateRect_Params) 189 IPC_STRUCT_BEGIN(BrowserPluginMsg_UpdateRect_Params)
176 // The position and size of the bitmap. 190 // The position and size of the bitmap.
177 IPC_STRUCT_MEMBER(gfx::Rect, bitmap_rect) 191 IPC_STRUCT_MEMBER(gfx::Rect, bitmap_rect)
178 192
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents, 232 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents,
219 int /* instance_id */, 233 int /* instance_id */,
220 bool /* accept */) 234 bool /* accept */)
221 235
222 // The guest has damage it wants to convey to the embedder so that it can 236 // The guest has damage it wants to convey to the embedder so that it can
223 // update its backing store. 237 // update its backing store.
224 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, 238 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect,
225 int /* instance_id */, 239 int /* instance_id */,
226 int /* message_id */, 240 int /* message_id */,
227 BrowserPluginMsg_UpdateRect_Params) 241 BrowserPluginMsg_UpdateRect_Params)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698