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

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

Issue 11826005: Browser Plugin: Implement BrowserPluginObserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with ToT Created 7 years, 9 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
« no previous file with comments | « no previous file | content/content_renderer.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 129
130 // ----------------------------------------------------------------------------- 130 // -----------------------------------------------------------------------------
131 // These messages are from the embedder to the browser process. 131 // These messages are from the embedder to the browser process.
132 132
133 // This message is sent to the browser process to request an instance ID. 133 // This message is sent to the browser process to request an instance ID.
134 // |request_id| is used by BrowserPluginEmbedder to route the response back 134 // |request_id| is used by BrowserPluginEmbedder to route the response back
135 // to its origin. 135 // to its origin.
136 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_AllocateInstanceID, 136 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_AllocateInstanceID,
137 int /* request_id */) 137 int /* request_id */)
138 138
139 // Used by the embedder process to forward messages to
140 // BrowserPluginGuestObservers.
141 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ForwardMessage,
142 int /* instance_id */,
143 IPC::Message /* message */)
144
139 // This message is sent to the browser process to enable or disable autosize 145 // This message is sent to the browser process to enable or disable autosize
140 // mode. 146 // mode.
141 IPC_MESSAGE_ROUTED3( 147 IPC_MESSAGE_ROUTED3(
142 BrowserPluginHostMsg_SetAutoSize, 148 BrowserPluginHostMsg_SetAutoSize,
143 int /* instance_id */, 149 int /* instance_id */,
144 BrowserPluginHostMsg_AutoSize_Params /* auto_size_params */, 150 BrowserPluginHostMsg_AutoSize_Params /* auto_size_params */,
145 BrowserPluginHostMsg_ResizeGuest_Params /* resize_guest_params */) 151 BrowserPluginHostMsg_ResizeGuest_Params /* resize_guest_params */)
146 152
147 153
148 // This message is sent to the browser process to create the browser plugin 154 // This message is sent to the browser process to create the browser plugin
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 // ----------------------------------------------------------------------------- 271 // -----------------------------------------------------------------------------
266 // These messages are from the browser process to the embedder. 272 // These messages are from the browser process to the embedder.
267 273
268 // This message is sent from the browser process to the embedder render process 274 // This message is sent from the browser process to the embedder render process
269 // in response to a request to allocate an instance ID. The |request_id| is used 275 // in response to a request to allocate an instance ID. The |request_id| is used
270 // to route the response to the requestor. 276 // to route the response to the requestor.
271 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_AllocateInstanceID_ACK, 277 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_AllocateInstanceID_ACK,
272 int /* request_id */, 278 int /* request_id */,
273 int /* instance_id */) 279 int /* instance_id */)
274 280
281 // Used by the browser process to forward messages to BrowserPluginObservers.
282 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_ForwardMessage,
283 int /* instance_id */,
284 IPC::Message /* message */)
285
275 // Once the swapped out guest RenderView has been created in the embedder render 286 // Once the swapped out guest RenderView has been created in the embedder render
276 // process, the browser process informs the embedder of its routing ID. 287 // process, the browser process informs the embedder of its routing ID.
277 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_GuestContentWindowReady, 288 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_GuestContentWindowReady,
278 int /* instance_id */, 289 int /* instance_id */,
279 int /* source_routing_id */) 290 int /* source_routing_id */)
280 291
281 // When the guest begins to load a page, the browser process informs the 292 // When the guest begins to load a page, the browser process informs the
282 // embedder through the BrowserPluginMsg_LoadStart message. 293 // embedder through the BrowserPluginMsg_LoadStart message.
283 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_LoadStart, 294 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_LoadStart,
284 int /* instance_id */, 295 int /* instance_id */,
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 int /* route_id */, 391 int /* route_id */,
381 int /* gpu_host_id */) 392 int /* gpu_host_id */)
382 393
383 // When the guest requests permission, the browser process forwards this 394 // When the guest requests permission, the browser process forwards this
384 // request to the embeddder through this message. 395 // request to the embeddder through this message.
385 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_RequestPermission, 396 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_RequestPermission,
386 int /* instance_id */, 397 int /* instance_id */,
387 BrowserPluginPermissionType /* permission_type */, 398 BrowserPluginPermissionType /* permission_type */,
388 int /* request_id */, 399 int /* request_id */,
389 DictionaryValue /* request_info */) 400 DictionaryValue /* request_info */)
OLDNEW
« no previous file with comments | « no previous file | content/content_renderer.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698