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_HOST_HELPER_H__ | 5 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_HOST_HELPER_H__ |
6 #define CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_HOST_HELPER_H__ | 6 #define CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_HOST_HELPER_H__ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 class BrowserPluginHostHelper : public RenderViewHostObserver { | 26 class BrowserPluginHostHelper : public RenderViewHostObserver { |
27 public: | 27 public: |
28 BrowserPluginHostHelper(BrowserPluginHost* browser_plugin_host, | 28 BrowserPluginHostHelper(BrowserPluginHost* browser_plugin_host, |
29 RenderViewHost* render_view_host); | 29 RenderViewHost* render_view_host); |
30 virtual ~BrowserPluginHostHelper(); | 30 virtual ~BrowserPluginHostHelper(); |
31 | 31 |
32 private: | 32 private: |
33 void OnConnectToChannel(const IPC::ChannelHandle& channel_handle); | 33 void OnConnectToChannel(const IPC::ChannelHandle& channel_handle); |
34 void OnNavigateGuestFromEmbedder(int container_instance_id, | 34 void OnNavigateGuestFromEmbedder(int container_instance_id, |
35 long long frame_id, | 35 long long frame_id, |
36 const std::string& src, | 36 const std::string& src); |
37 const gfx::Size& size); | |
38 void OnResizeGuest(int width, int height); | 37 void OnResizeGuest(int width, int height); |
39 | 38 |
40 // RenderViewHostObserver implementation. | 39 // RenderViewHostObserver implementation. |
41 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 40 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
42 | 41 |
43 BrowserPluginHost* browser_plugin_host_; | 42 BrowserPluginHost* browser_plugin_host_; |
44 | 43 |
45 DISALLOW_COPY_AND_ASSIGN(BrowserPluginHostHelper); | 44 DISALLOW_COPY_AND_ASSIGN(BrowserPluginHostHelper); |
46 }; | 45 }; |
47 | 46 |
48 } // namespace content | 47 } // namespace content |
49 | 48 |
50 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_HOST_HELPER_H__ | 49 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_HOST_HELPER_H__ |
51 | 50 |
OLD | NEW |