| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 v8::Local<v8::Value> GetV8Handle(v8::Isolate* isolate) override; | 70 v8::Local<v8::Value> GetV8Handle(v8::Isolate* isolate) override; |
| 71 void ShowContextMenu(const blink::WebMouseEvent&) override; | 71 void ShowContextMenu(const blink::WebMouseEvent&) override; |
| 72 | 72 |
| 73 // content::RenderThreadObserver methods: | 73 // content::RenderThreadObserver methods: |
| 74 void PluginListChanged() override; | 74 void PluginListChanged() override; |
| 75 | 75 |
| 76 // content::ContextMenuClient methods: | 76 // content::ContextMenuClient methods: |
| 77 void OnMenuAction(int request_id, unsigned action) override; | 77 void OnMenuAction(int request_id, unsigned action) override; |
| 78 void OnMenuClosed(int request_id) override; | 78 void OnMenuClosed(int request_id) override; |
| 79 | 79 |
| 80 // Javascript callbacks: | |
| 81 // Open chrome://plugins in a new tab. | |
| 82 void OpenAboutPluginsCallback(); | |
| 83 // Show the Plugins permission bubble. | 80 // Show the Plugins permission bubble. |
| 84 void ShowPermissionBubbleCallback(); | 81 void ShowPermissionBubbleCallback(); |
| 85 | 82 |
| 86 // IPC message handlers: | 83 // IPC message handlers: |
| 87 #if BUILDFLAG(ENABLE_PLUGIN_INSTALLATION) | 84 #if BUILDFLAG(ENABLE_PLUGIN_INSTALLATION) |
| 88 void OnDidNotFindMissingPlugin(); | 85 void OnDidNotFindMissingPlugin(); |
| 89 void OnFoundMissingPlugin(const base::string16& plugin_name); | 86 void OnFoundMissingPlugin(const base::string16& plugin_name); |
| 90 void OnStartedDownloadingPlugin(); | 87 void OnStartedDownloadingPlugin(); |
| 91 void OnFinishedDownloadingPlugin(); | 88 void OnFinishedDownloadingPlugin(); |
| 92 void OnErrorDownloadingPlugin(const std::string& error); | 89 void OnErrorDownloadingPlugin(const std::string& error); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 111 | 108 |
| 112 int context_menu_request_id_; // Nonzero when request pending. | 109 int context_menu_request_id_; // Nonzero when request pending. |
| 113 base::string16 plugin_name_; | 110 base::string16 plugin_name_; |
| 114 | 111 |
| 115 bool did_send_blocked_content_notification_; | 112 bool did_send_blocked_content_notification_; |
| 116 | 113 |
| 117 DISALLOW_COPY_AND_ASSIGN(ChromePluginPlaceholder); | 114 DISALLOW_COPY_AND_ASSIGN(ChromePluginPlaceholder); |
| 118 }; | 115 }; |
| 119 | 116 |
| 120 #endif // CHROME_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_ | 117 #endif // CHROME_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_ |
| OLD | NEW |