OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_ | 5 #ifndef CHROME_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_ |
6 #define CHROME_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_ | 6 #define CHROME_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_ |
7 | 7 |
8 #include "components/plugins/renderer/loadable_plugin_placeholder.h" | 8 #include "components/plugins/renderer/loadable_plugin_placeholder.h" |
9 #include "content/public/renderer/context_menu_client.h" | 9 #include "content/public/renderer/context_menu_client.h" |
10 #include "content/public/renderer/render_process_observer.h" | 10 #include "content/public/renderer/render_process_observer.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 #endif | 62 #endif |
63 | 63 |
64 private: | 64 private: |
65 ChromePluginPlaceholder(content::RenderFrame* render_frame, | 65 ChromePluginPlaceholder(content::RenderFrame* render_frame, |
66 blink::WebLocalFrame* frame, | 66 blink::WebLocalFrame* frame, |
67 const blink::WebPluginParams& params, | 67 const blink::WebPluginParams& params, |
68 const std::string& html_data, | 68 const std::string& html_data, |
69 const base::string16& title); | 69 const base::string16& title); |
70 ~ChromePluginPlaceholder() override; | 70 ~ChromePluginPlaceholder() override; |
71 | 71 |
| 72 // content::LoadablePluginPlaceholder method |
| 73 blink::WebPlugin* CreatePlugin() override; |
| 74 |
72 // gin::Wrappable (via PluginPlaceholder) method | 75 // gin::Wrappable (via PluginPlaceholder) method |
73 gin::ObjectTemplateBuilder GetObjectTemplateBuilder( | 76 gin::ObjectTemplateBuilder GetObjectTemplateBuilder( |
74 v8::Isolate* isolate) override; | 77 v8::Isolate* isolate) override; |
75 | 78 |
76 // content::RenderViewObserver (via PluginPlaceholder) override: | 79 // content::RenderViewObserver (via PluginPlaceholder) override: |
77 bool OnMessageReceived(const IPC::Message& message) override; | 80 bool OnMessageReceived(const IPC::Message& message) override; |
78 | 81 |
79 // WebViewPlugin::Delegate (via PluginPlaceholder) methods: | 82 // WebViewPlugin::Delegate (via PluginPlaceholder) methods: |
80 void ShowContextMenu(const blink::WebMouseEvent&) override; | 83 void ShowContextMenu(const blink::WebMouseEvent&) override; |
81 | 84 |
(...skipping 29 matching lines...) Expand all Loading... |
111 #endif | 114 #endif |
112 | 115 |
113 bool has_host_; | 116 bool has_host_; |
114 int context_menu_request_id_; // Nonzero when request pending. | 117 int context_menu_request_id_; // Nonzero when request pending. |
115 base::string16 plugin_name_; | 118 base::string16 plugin_name_; |
116 | 119 |
117 DISALLOW_COPY_AND_ASSIGN(ChromePluginPlaceholder); | 120 DISALLOW_COPY_AND_ASSIGN(ChromePluginPlaceholder); |
118 }; | 121 }; |
119 | 122 |
120 #endif // CHROME_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_ | 123 #endif // CHROME_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_ |
OLD | NEW |