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

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

Issue 299753011: Move allocate instance id to chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 6 years, 7 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
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/process.h" 10 #include "base/process/process.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 IPC_STRUCT_MEMBER(gfx::Rect, view_rect) 49 IPC_STRUCT_MEMBER(gfx::Rect, view_rect)
50 // Indicates the scale factor of the embedder WebView. 50 // Indicates the scale factor of the embedder WebView.
51 IPC_STRUCT_MEMBER(float, scale_factor) 51 IPC_STRUCT_MEMBER(float, scale_factor)
52 // Indicates a request for a full repaint of the page. 52 // Indicates a request for a full repaint of the page.
53 // This is required for switching from compositing to the software 53 // This is required for switching from compositing to the software
54 // rendering path. 54 // rendering path.
55 IPC_STRUCT_MEMBER(bool, repaint) 55 IPC_STRUCT_MEMBER(bool, repaint)
56 IPC_STRUCT_END() 56 IPC_STRUCT_END()
57 57
58 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_Attach_Params) 58 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_Attach_Params)
59 IPC_STRUCT_MEMBER(std::string, storage_partition_id)
60 IPC_STRUCT_MEMBER(bool, persist_storage)
61 IPC_STRUCT_MEMBER(bool, focused) 59 IPC_STRUCT_MEMBER(bool, focused)
62 IPC_STRUCT_MEMBER(bool, visible) 60 IPC_STRUCT_MEMBER(bool, visible)
63 IPC_STRUCT_MEMBER(bool, opaque) 61 IPC_STRUCT_MEMBER(bool, opaque)
64 IPC_STRUCT_MEMBER(std::string, src)
65 IPC_STRUCT_MEMBER(GURL, embedder_frame_url) 62 IPC_STRUCT_MEMBER(GURL, embedder_frame_url)
66 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_AutoSize_Params, auto_size_params) 63 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_AutoSize_Params, auto_size_params)
67 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_ResizeGuest_Params, 64 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_ResizeGuest_Params,
68 resize_guest_params) 65 resize_guest_params)
69 IPC_STRUCT_END() 66 IPC_STRUCT_END()
70 67
71 IPC_STRUCT_BEGIN(BrowserPluginMsg_Attach_ACK_Params) 68 IPC_STRUCT_BEGIN(BrowserPluginMsg_Attach_ACK_Params)
72 IPC_STRUCT_MEMBER(std::string, storage_partition_id) 69 IPC_STRUCT_MEMBER(std::string, storage_partition_id)
73 IPC_STRUCT_MEMBER(bool, persist_storage) 70 IPC_STRUCT_MEMBER(bool, persist_storage)
74 IPC_STRUCT_END() 71 IPC_STRUCT_END()
(...skipping 12 matching lines...) Expand all
87 84
88 // Is this UpdateRect an ACK to a resize request? 85 // Is this UpdateRect an ACK to a resize request?
89 IPC_STRUCT_MEMBER(bool, is_resize_ack) 86 IPC_STRUCT_MEMBER(bool, is_resize_ack)
90 IPC_STRUCT_END() 87 IPC_STRUCT_END()
91 88
92 // Browser plugin messages 89 // Browser plugin messages
93 90
94 // ----------------------------------------------------------------------------- 91 // -----------------------------------------------------------------------------
95 // These messages are from the embedder to the browser process. 92 // These messages are from the embedder to the browser process.
96 93
97 // This message is sent to the browser process to request an instance ID.
98 // |request_id| is used by BrowserPluginEmbedder to route the response back
99 // to its origin.
100 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_AllocateInstanceID,
101 int /* request_id */)
102
103 // This message is sent from BrowserPlugin to BrowserPluginGuest to issue an 94 // This message is sent from BrowserPlugin to BrowserPluginGuest to issue an
104 // edit command. 95 // edit command.
105 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ExecuteEditCommand, 96 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ExecuteEditCommand,
106 int /* instance_id */, 97 int /* instance_id */,
107 std::string /* command */) 98 std::string /* command */)
108 99
109 // This message must be sent just before sending a key event. 100 // This message must be sent just before sending a key event.
110 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetEditCommandsForNextKeyEvent, 101 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetEditCommandsForNextKeyEvent,
111 int /* instance_id */, 102 int /* instance_id */,
112 std::vector<content::EditCommand> /* edit_commands */) 103 std::vector<content::EditCommand> /* edit_commands */)
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 // A embedder sends this message to the browser when it wants 217 // A embedder sends this message to the browser when it wants
227 // to resize a guest plugin container so that the guest is relaid out 218 // to resize a guest plugin container so that the guest is relaid out
228 // according to the new size. 219 // according to the new size.
229 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ResizeGuest, 220 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ResizeGuest,
230 int /* instance_id*/, 221 int /* instance_id*/,
231 BrowserPluginHostMsg_ResizeGuest_Params) 222 BrowserPluginHostMsg_ResizeGuest_Params)
232 223
233 // ----------------------------------------------------------------------------- 224 // -----------------------------------------------------------------------------
234 // These messages are from the browser process to the embedder. 225 // These messages are from the browser process to the embedder.
235 226
236 // This message is sent from the browser process to the embedder render process
237 // in response to a request to allocate an instance ID. The |request_id| is used
238 // to route the response to the requestor.
239 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_AllocateInstanceID_ACK,
240 int /* request_id */,
241 int /* instance_id */)
242
243 // This message is sent in response to a completed attachment of a guest 227 // This message is sent in response to a completed attachment of a guest
244 // to a BrowserPlugin. This message carries information about the guest 228 // to a BrowserPlugin. This message carries information about the guest
245 // that is used to update the attributes of the browser plugin. 229 // that is used to update the attributes of the browser plugin.
246 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_Attach_ACK, 230 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_Attach_ACK,
247 int /* instance_id */, 231 int /* instance_id */,
248 BrowserPluginMsg_Attach_ACK_Params /* params */) 232 BrowserPluginMsg_Attach_ACK_Params /* params */)
249 233
250 // Once the swapped out guest RenderView has been created in the embedder render 234 // Once the swapped out guest RenderView has been created in the embedder render
251 // process, the browser process informs the embedder of its routing ID. 235 // process, the browser process informs the embedder of its routing ID.
252 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_GuestContentWindowReady, 236 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_GuestContentWindowReady,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 // See comment about BrowserPluginMsg_BuffersSwapped and 292 // See comment about BrowserPluginMsg_BuffersSwapped and
309 // BrowserPluginMsg_CompositorFrameSwapped for how these related 293 // BrowserPluginMsg_CompositorFrameSwapped for how these related
310 // to the FrameHostMsg variants. 294 // to the FrameHostMsg variants.
311 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_BuffersSwappedACK, 295 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_BuffersSwappedACK,
312 FrameHostMsg_BuffersSwappedACK_Params /* params */) 296 FrameHostMsg_BuffersSwappedACK_Params /* params */)
313 297
314 // Acknowledge that we presented an ubercomp frame. 298 // Acknowledge that we presented an ubercomp frame.
315 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_CompositorFrameSwappedACK, 299 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_CompositorFrameSwappedACK,
316 int /* instance_id */, 300 int /* instance_id */,
317 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */) 301 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698