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 <stdint.h> | 8 #include <stdint.h> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 // content::RenderThreadObserver methods: | 75 // content::RenderThreadObserver methods: |
76 void PluginListChanged() override; | 76 void PluginListChanged() override; |
77 | 77 |
78 // content::ContextMenuClient methods: | 78 // content::ContextMenuClient methods: |
79 void OnMenuAction(int request_id, unsigned action) override; | 79 void OnMenuAction(int request_id, unsigned action) override; |
80 void OnMenuClosed(int request_id) override; | 80 void OnMenuClosed(int request_id) override; |
81 | 81 |
82 // Javascript callbacks: | 82 // Javascript callbacks: |
83 // Open chrome://plugins in a new tab. | 83 // Open chrome://plugins in a new tab. |
84 void OpenAboutPluginsCallback(); | 84 void OpenAboutPluginsCallback(); |
| 85 // Show the Plugins permission bubble. |
| 86 void ShowPermissionBubbleCallback(); |
85 | 87 |
86 // IPC message handlers: | 88 // IPC message handlers: |
87 #if defined(ENABLE_PLUGIN_INSTALLATION) | 89 #if defined(ENABLE_PLUGIN_INSTALLATION) |
88 void OnDidNotFindMissingPlugin(); | 90 void OnDidNotFindMissingPlugin(); |
89 void OnFoundMissingPlugin(const base::string16& plugin_name); | 91 void OnFoundMissingPlugin(const base::string16& plugin_name); |
90 void OnStartedDownloadingPlugin(); | 92 void OnStartedDownloadingPlugin(); |
91 void OnFinishedDownloadingPlugin(); | 93 void OnFinishedDownloadingPlugin(); |
92 void OnErrorDownloadingPlugin(const std::string& error); | 94 void OnErrorDownloadingPlugin(const std::string& error); |
93 void OnCancelledDownloadingPlugin(); | 95 void OnCancelledDownloadingPlugin(); |
94 #endif | 96 #endif |
(...skipping 16 matching lines...) Expand all Loading... |
111 | 113 |
112 int context_menu_request_id_; // Nonzero when request pending. | 114 int context_menu_request_id_; // Nonzero when request pending. |
113 base::string16 plugin_name_; | 115 base::string16 plugin_name_; |
114 | 116 |
115 bool did_send_blocked_content_notification_; | 117 bool did_send_blocked_content_notification_; |
116 | 118 |
117 DISALLOW_COPY_AND_ASSIGN(ChromePluginPlaceholder); | 119 DISALLOW_COPY_AND_ASSIGN(ChromePluginPlaceholder); |
118 }; | 120 }; |
119 | 121 |
120 #endif // CHROME_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_ | 122 #endif // CHROME_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_ |
OLD | NEW |