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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_embedder_helper.h

Issue 10829225: Browser Plugin: Add HTML5-like postMessage support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed crash + cleanup Created 8 years, 3 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 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_HELPER_H_ 5 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_HELPER_H_
6 #define CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_HELPER_H_ 6 #define CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_HELPER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "content/browser/browser_plugin/browser_plugin_embedder.h" 11 #include "content/browser/browser_plugin/browser_plugin_embedder.h"
12 #include "content/public/browser/render_view_host_observer.h" 12 #include "content/public/browser/render_view_host_observer.h"
13 #include "ipc/ipc_channel_handle.h" 13 #include "ipc/ipc_channel_handle.h"
14 #include "ipc/ipc_sync_message.h" 14 #include "ipc/ipc_sync_message.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
16 #include "ui/surface/transport_dib.h" 16 #include "ui/surface/transport_dib.h"
17 #include "webkit/glue/webcursor.h" 17 #include "webkit/glue/webcursor.h"
18 18
19 namespace gfx { 19 namespace gfx {
20 class Size; 20 class Size;
21 } 21 }
22 22
23 struct BrowserPluginHostMsg_PostMessage_Params;
23 struct BrowserPluginHostMsg_ResizeGuest_Params; 24 struct BrowserPluginHostMsg_ResizeGuest_Params;
24 struct ViewHostMsg_UpdateRect_Params; 25 struct ViewHostMsg_UpdateRect_Params;
25 26
26 namespace content { 27 namespace content {
27 28
28 class RenderViewHost; 29 class RenderViewHost;
29 30
30 // Helper for browser plugin embedder. 31 // Helper for browser plugin embedder.
31 // 32 //
32 // A lot of messages coming from guests need to know the guest's RenderViewHost. 33 // A lot of messages coming from guests need to know the guest's RenderViewHost.
(...skipping 22 matching lines...) Expand all
55 void OnNavigateGuest(int instance_id, 56 void OnNavigateGuest(int instance_id,
56 int64 frame_id, 57 int64 frame_id,
57 const std::string& src, 58 const std::string& src,
58 const gfx::Size& size); 59 const gfx::Size& size);
59 void OnResizeGuest(int instance_id, 60 void OnResizeGuest(int instance_id,
60 const BrowserPluginHostMsg_ResizeGuest_Params& params); 61 const BrowserPluginHostMsg_ResizeGuest_Params& params);
61 void OnUpdateRectACK(int instance_id, int message_id, const gfx::Size& size); 62 void OnUpdateRectACK(int instance_id, int message_id, const gfx::Size& size);
62 void OnHandleInputEvent(const IPC::SyncMessage& message, bool* handled); 63 void OnHandleInputEvent(const IPC::SyncMessage& message, bool* handled);
63 void OnSetFocus(int instance_id, bool focused); 64 void OnSetFocus(int instance_id, bool focused);
64 void OnPluginDestroyed(int instance_id); 65 void OnPluginDestroyed(int instance_id);
66 void OnRouteMessageEvent(int instance_id,
67 const string16& data,
68 const string16& target_origin);
65 69
66 BrowserPluginEmbedder* embedder_; 70 BrowserPluginEmbedder* embedder_;
67 71
68 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedderHelper); 72 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedderHelper);
69 }; 73 };
70 74
71 } // namespace content 75 } // namespace content
72 76
73 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_HELPER_H_ 77 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698