| OLD | NEW |
| 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 "base/string16.h" |
| 11 #include "content/public/browser/render_view_host_observer.h" | 12 #include "content/public/browser/render_view_host_observer.h" |
| 12 | 13 |
| 13 namespace IPC { | 14 namespace IPC { |
| 14 class Message; | 15 class Message; |
| 15 class SyncMessage; | 16 class SyncMessage; |
| 16 } | 17 } |
| 17 | 18 |
| 18 namespace gfx { | 19 namespace gfx { |
| 19 class Size; | 20 class Size; |
| 20 } | 21 } |
| 21 | 22 |
| 22 struct BrowserPluginHostMsg_ResizeGuest_Params; | 23 struct BrowserPluginHostMsg_ResizeGuest_Params; |
| 24 struct ViewMsg_PostMessage_Params; |
| 23 | 25 |
| 24 namespace content { | 26 namespace content { |
| 25 | 27 |
| 26 class BrowserPluginEmbedder; | 28 class BrowserPluginEmbedder; |
| 27 class RenderViewHost; | 29 class RenderViewHost; |
| 28 | 30 |
| 29 // Helper for browser plugin embedder. | 31 // Helper for browser plugin embedder. |
| 30 // | 32 // |
| 31 // 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. |
| 32 // BrowserPluginEmbedderHelper handles BrowserPluginHostMsg messages and | 34 // BrowserPluginEmbedderHelper handles BrowserPluginHostMsg messages and |
| (...skipping 23 matching lines...) Expand all Loading... |
| 56 bool persist_storage); | 58 bool persist_storage); |
| 57 void OnNavigateGuest(int instance_id, | 59 void OnNavigateGuest(int instance_id, |
| 58 const std::string& src, | 60 const std::string& src, |
| 59 const BrowserPluginHostMsg_ResizeGuest_Params& params); | 61 const BrowserPluginHostMsg_ResizeGuest_Params& params); |
| 60 void OnResizeGuest(int instance_id, | 62 void OnResizeGuest(int instance_id, |
| 61 const BrowserPluginHostMsg_ResizeGuest_Params& params); | 63 const BrowserPluginHostMsg_ResizeGuest_Params& params); |
| 62 void OnUpdateRectACK(int instance_id, int message_id, const gfx::Size& size); | 64 void OnUpdateRectACK(int instance_id, int message_id, const gfx::Size& size); |
| 63 void OnHandleInputEvent(const IPC::SyncMessage& message, bool* handled); | 65 void OnHandleInputEvent(const IPC::SyncMessage& message, bool* handled); |
| 64 void OnSetFocus(int instance_id, bool focused); | 66 void OnSetFocus(int instance_id, bool focused); |
| 65 void OnPluginDestroyed(int instance_id); | 67 void OnPluginDestroyed(int instance_id); |
| 68 void OnRouteMessageEvent(const ViewMsg_PostMessage_Params& params); |
| 66 void OnGo(int instance_id, int relative_index); | 69 void OnGo(int instance_id, int relative_index); |
| 67 void OnStop(int instance_id); | 70 void OnStop(int instance_id); |
| 68 void OnReload(int instance_id); | 71 void OnReload(int instance_id); |
| 69 | 72 |
| 70 BrowserPluginEmbedder* embedder_; | 73 BrowserPluginEmbedder* embedder_; |
| 71 | 74 |
| 72 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedderHelper); | 75 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedderHelper); |
| 73 }; | 76 }; |
| 74 | 77 |
| 75 } // namespace content | 78 } // namespace content |
| 76 | 79 |
| 77 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_HELPER_H_ | 80 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_HELPER_H_ |
| OLD | NEW |