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

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: Removed extra space 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 // If the guest fails to commit a page load then it will inform the
136 // embedder through the BrowserPluginMsg_LoadAbort. A description
137 // of the error will be stored in |type|. The list of known error
138 // types can be found in net/base/net_error_list.h.
139 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_LoadAbort,
140 int /* instance_id */,
141 GURL /* url */,
142 bool /* is_top_level */,
143 std::string /* type */)
144
128 // When the guest navigates, the browser process informs the embedder through 145 // When the guest navigates, the browser process informs the embedder through
129 // the BrowserPluginMsg_DidNavigate message. 146 // the BrowserPluginMsg_DidNavigate message.
130 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_DidNavigate, 147 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_DidNavigate,
131 int /* instance_id */, 148 int /* instance_id */,
132 GURL /* url */, 149 GURL /* url */,
133 int /* process_id */) 150 int /* process_id */)
134 151
135 // When the guest crashes, the browser process informs the embedder through this 152 // When the guest crashes, the browser process informs the embedder through this
136 // message. 153 // message.
137 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_GuestCrashed, 154 IPC_MESSAGE_CONTROL1(BrowserPluginMsg_GuestCrashed,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents, 200 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents,
184 int /* instance_id */, 201 int /* instance_id */,
185 bool /* accept */) 202 bool /* accept */)
186 203
187 // The guest has damage it wants to convey to the embedder so that it can 204 // The guest has damage it wants to convey to the embedder so that it can
188 // update its backing store. 205 // update its backing store.
189 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, 206 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect,
190 int /* instance_id */, 207 int /* instance_id */,
191 int /* message_id */, 208 int /* message_id */,
192 BrowserPluginMsg_UpdateRect_Params) 209 BrowserPluginMsg_UpdateRect_Params)
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_host_browsertest.cc ('k') | content/renderer/browser_plugin/browser_plugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698