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/plugin_placeholder.h" | 8 #include "components/plugins/renderer/plugin_placeholder.h" |
9 | 9 |
10 struct ChromeViewHostMsg_GetPluginInfo_Status; | 10 struct ChromeViewHostMsg_GetPluginInfo_Status; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 #endif | 42 #endif |
43 | 43 |
44 private: | 44 private: |
45 ChromePluginPlaceholder(content::RenderFrame* render_frame, | 45 ChromePluginPlaceholder(content::RenderFrame* render_frame, |
46 blink::WebFrame* frame, | 46 blink::WebFrame* frame, |
47 const blink::WebPluginParams& params, | 47 const blink::WebPluginParams& params, |
48 const std::string& html_data, | 48 const std::string& html_data, |
49 const base::string16& title); | 49 const base::string16& title); |
50 virtual ~ChromePluginPlaceholder(); | 50 virtual ~ChromePluginPlaceholder(); |
51 | 51 |
| 52 // gin::WrappableBase (via plugins::PluginPlaceholder) |
| 53 virtual gin::ObjectTemplateBuilder GetObjectTemplateBuilder(v8::Isolate* isola
te) OVERRIDE; |
| 54 |
52 // WebViewPlugin::Delegate (via PluginPlaceholder) method | 55 // WebViewPlugin::Delegate (via PluginPlaceholder) method |
53 virtual void BindWebFrame(blink::WebFrame* frame) OVERRIDE; | 56 virtual void BindWebFrame(blink::WebFrame* frame) OVERRIDE; |
54 | 57 |
55 // content::RenderViewObserver (via PluginPlaceholder) override: | 58 // content::RenderViewObserver (via PluginPlaceholder) override: |
56 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 59 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
57 | 60 |
58 // WebViewPlugin::Delegate (via PluginPlaceholder) methods: | 61 // WebViewPlugin::Delegate (via PluginPlaceholder) methods: |
59 virtual void ShowContextMenu(const blink::WebMouseEvent&) OVERRIDE; | 62 virtual void ShowContextMenu(const blink::WebMouseEvent&) OVERRIDE; |
60 | 63 |
61 // content::RenderProcessObserver methods: | 64 // content::RenderProcessObserver methods: |
62 virtual void PluginListChanged() OVERRIDE; | 65 virtual void PluginListChanged() OVERRIDE; |
63 | 66 |
64 // content::ContextMenuClient methods: | 67 // content::ContextMenuClient methods: |
65 virtual void OnMenuAction(int request_id, unsigned action) OVERRIDE; | 68 virtual void OnMenuAction(int request_id, unsigned action) OVERRIDE; |
66 virtual void OnMenuClosed(int request_id) OVERRIDE; | 69 virtual void OnMenuClosed(int request_id) OVERRIDE; |
67 | 70 |
68 // Javascript callback opens chrome://plugins in a new tab. | 71 // Javascript callback opens chrome://plugins in a new tab. |
69 // Arguments are required by the caller, but not used. | 72 void OpenAboutPluginsCallback(); |
70 void OpenAboutPluginsCallback(const webkit_glue::CppArgumentList& args, | |
71 webkit_glue::CppVariant* result); | |
72 | 73 |
73 void OnLoadBlockedPlugins(const std::string& identifier); | 74 void OnLoadBlockedPlugins(const std::string& identifier); |
74 void OnSetIsPrerendering(bool is_prerendering); | 75 void OnSetIsPrerendering(bool is_prerendering); |
75 #if defined(ENABLE_PLUGIN_INSTALLATION) | 76 #if defined(ENABLE_PLUGIN_INSTALLATION) |
76 void OnDidNotFindMissingPlugin(); | 77 void OnDidNotFindMissingPlugin(); |
77 void OnFoundMissingPlugin(const base::string16& plugin_name); | 78 void OnFoundMissingPlugin(const base::string16& plugin_name); |
78 void OnStartedDownloadingPlugin(); | 79 void OnStartedDownloadingPlugin(); |
79 void OnFinishedDownloadingPlugin(); | 80 void OnFinishedDownloadingPlugin(); |
80 void OnErrorDownloadingPlugin(const std::string& error); | 81 void OnErrorDownloadingPlugin(const std::string& error); |
81 void OnCancelledDownloadingPlugin(); | 82 void OnCancelledDownloadingPlugin(); |
(...skipping 12 matching lines...) Expand all Loading... |
94 #endif | 95 #endif |
95 | 96 |
96 bool has_host_; | 97 bool has_host_; |
97 int context_menu_request_id_; // Nonzero when request pending. | 98 int context_menu_request_id_; // Nonzero when request pending. |
98 base::string16 plugin_name_; | 99 base::string16 plugin_name_; |
99 | 100 |
100 DISALLOW_COPY_AND_ASSIGN(ChromePluginPlaceholder); | 101 DISALLOW_COPY_AND_ASSIGN(ChromePluginPlaceholder); |
101 }; | 102 }; |
102 | 103 |
103 #endif // CHROME_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_ | 104 #endif // CHROME_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_ |
OLD | NEW |