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 CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_ |
6 #define CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_ | 6 #define CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 const std::string& identifier); | 58 const std::string& identifier); |
59 void OnBlockedOutdatedPlugin(int placeholder_id, | 59 void OnBlockedOutdatedPlugin(int placeholder_id, |
60 const std::string& identifier); | 60 const std::string& identifier); |
61 void OnBlockedComponentUpdatedPlugin(int placeholder_id, | 61 void OnBlockedComponentUpdatedPlugin(int placeholder_id, |
62 const std::string& identifier); | 62 const std::string& identifier); |
63 #if defined(ENABLE_PLUGIN_INSTALLATION) | 63 #if defined(ENABLE_PLUGIN_INSTALLATION) |
64 void OnRemovePluginPlaceholderHost(int placeholder_id); | 64 void OnRemovePluginPlaceholderHost(int placeholder_id); |
65 #endif | 65 #endif |
66 void RemoveComponentObserver(int placeholder_id); | 66 void RemoveComponentObserver(int placeholder_id); |
67 void OnOpenAboutPlugins(); | 67 void OnOpenAboutPlugins(); |
| 68 void OnShowFlashPermissionBubble(); |
68 void OnCouldNotLoadPlugin(const base::FilePath& plugin_path); | 69 void OnCouldNotLoadPlugin(const base::FilePath& plugin_path); |
69 | 70 |
70 #if defined(ENABLE_PLUGIN_INSTALLATION) | 71 #if defined(ENABLE_PLUGIN_INSTALLATION) |
71 // Stores all PluginPlaceholderHosts, keyed by their routing ID. | 72 // Stores all PluginPlaceholderHosts, keyed by their routing ID. |
72 std::map<int, PluginPlaceholderHost*> plugin_placeholders_; | 73 std::map<int, PluginPlaceholderHost*> plugin_placeholders_; |
73 #endif | 74 #endif |
74 | 75 |
75 // Stores all ComponentObservers, keyed by their routing ID. | 76 // Stores all ComponentObservers, keyed by their routing ID. |
76 std::map<int, std::unique_ptr<ComponentObserver>> component_observers_; | 77 std::map<int, std::unique_ptr<ComponentObserver>> component_observers_; |
77 | 78 |
78 base::WeakPtrFactory<PluginObserver> weak_ptr_factory_; | 79 base::WeakPtrFactory<PluginObserver> weak_ptr_factory_; |
79 | 80 |
80 DISALLOW_COPY_AND_ASSIGN(PluginObserver); | 81 DISALLOW_COPY_AND_ASSIGN(PluginObserver); |
81 }; | 82 }; |
82 | 83 |
83 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_ | 84 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_ |
OLD | NEW |