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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 void OnBlockedUnauthorizedPlugin(const base::string16& name, | 49 void OnBlockedUnauthorizedPlugin(const base::string16& name, |
50 const std::string& identifier); | 50 const std::string& identifier); |
51 void OnBlockedOutdatedPlugin(int placeholder_id, | 51 void OnBlockedOutdatedPlugin(int placeholder_id, |
52 const std::string& identifier); | 52 const std::string& identifier); |
53 void OnBlockedComponentUpdatedPlugin(int placeholder_id, | 53 void OnBlockedComponentUpdatedPlugin(int placeholder_id, |
54 const std::string& identifier); | 54 const std::string& identifier); |
55 #if BUILDFLAG(ENABLE_PLUGIN_INSTALLATION) | 55 #if BUILDFLAG(ENABLE_PLUGIN_INSTALLATION) |
56 void OnRemovePluginPlaceholderHost(int placeholder_id); | 56 void OnRemovePluginPlaceholderHost(int placeholder_id); |
57 #endif | 57 #endif |
58 void RemoveComponentObserver(int placeholder_id); | 58 void RemoveComponentObserver(int placeholder_id); |
59 void OnOpenAboutPlugins(); | |
60 void OnShowFlashPermissionBubble(); | 59 void OnShowFlashPermissionBubble(); |
61 void OnCouldNotLoadPlugin(const base::FilePath& plugin_path); | 60 void OnCouldNotLoadPlugin(const base::FilePath& plugin_path); |
62 | 61 |
63 #if BUILDFLAG(ENABLE_PLUGIN_INSTALLATION) | 62 #if BUILDFLAG(ENABLE_PLUGIN_INSTALLATION) |
64 // Stores all PluginPlaceholderHosts, keyed by their routing ID. | 63 // Stores all PluginPlaceholderHosts, keyed by their routing ID. |
65 std::map<int, std::unique_ptr<PluginPlaceholderHost>> plugin_placeholders_; | 64 std::map<int, std::unique_ptr<PluginPlaceholderHost>> plugin_placeholders_; |
66 #endif | 65 #endif |
67 | 66 |
68 // Stores all ComponentObservers, keyed by their routing ID. | 67 // Stores all ComponentObservers, keyed by their routing ID. |
69 std::map<int, std::unique_ptr<ComponentObserver>> component_observers_; | 68 std::map<int, std::unique_ptr<ComponentObserver>> component_observers_; |
70 | 69 |
71 base::WeakPtrFactory<PluginObserver> weak_ptr_factory_; | 70 base::WeakPtrFactory<PluginObserver> weak_ptr_factory_; |
72 | 71 |
73 DISALLOW_COPY_AND_ASSIGN(PluginObserver); | 72 DISALLOW_COPY_AND_ASSIGN(PluginObserver); |
74 }; | 73 }; |
75 | 74 |
76 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_ | 75 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_ |
OLD | NEW |