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

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

Issue 10941042: Browser plugin: Implement loadStart and loadAbort events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with ToT 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // A embedder sends this message to the browser when it wants 118 // A embedder sends this message to the browser when it wants
119 // to resize a guest plugin container so that the guest is relaid out 119 // to resize a guest plugin container so that the guest is relaid out
120 // according to the new size. 120 // according to the new size.
121 IPC_SYNC_MESSAGE_ROUTED2_0(BrowserPluginHostMsg_ResizeGuest, 121 IPC_SYNC_MESSAGE_ROUTED2_0(BrowserPluginHostMsg_ResizeGuest,
122 int /* instance_id*/, 122 int /* instance_id*/,
123 BrowserPluginHostMsg_ResizeGuest_Params) 123 BrowserPluginHostMsg_ResizeGuest_Params)
124 124
125 // ----------------------------------------------------------------------------- 125 // -----------------------------------------------------------------------------
126 // These messages are from the browser process to the embedder. 126 // These messages are from the browser process to the embedder.
127 127
128 // When the guest begins to load a page, the browser process informs the
129 // embedder through the BrowserPluginMsg_LoadStart message.
130 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_LoadStart,
131 int /* instance_id */,
132 GURL /* url */,
133 bool /* is_top_level */)
134
135 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_LoadAbort,
Charlie Reis 2012/10/03 01:52:30 This should have a comment describing the types, e
Fady Samuel 2012/10/04 00:43:38 Done. Although, I don't know if this is the best p
136 int /* instance_id */,
137 GURL /* url */,
138 bool /* is_top_level */,
139 std::string /* type */)
140
128 // When the guest navigates, the browser process informs the embedder through 141 // When the guest navigates, the browser process informs the embedder through
129 // the BrowserPluginMsg_DidNavigate message. 142 // the BrowserPluginMsg_DidNavigate message.
130 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_DidNavigate, 143 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_DidNavigate,
131 int /* instance_id */, 144 int /* instance_id */,
132 GURL /* url */, 145 GURL /* url */,
133 int /* process_id */) 146 int /* process_id */)
134 147
135 // When the guest crashes, the browser process informs the embedder through this 148 // When the guest crashes, the browser process informs the embedder through this
136 // message. 149 // message.
137 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_GuestCrashed, 150 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_GuestCrashed,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents, 196 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents,
184 int /* instance_id */, 197 int /* instance_id */,
185 bool /* accept */) 198 bool /* accept */)
186 199
187 // The guest has damage it wants to convey to the embedder so that it can 200 // The guest has damage it wants to convey to the embedder so that it can
188 // update its backing store. 201 // update its backing store.
189 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, 202 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect,
190 int /* instance_id */, 203 int /* instance_id */,
191 int /* message_id */, 204 int /* message_id */,
192 BrowserPluginMsg_UpdateRect_Params) 205 BrowserPluginMsg_UpdateRect_Params)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698