| 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 <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 void OnBlockedUnauthorizedPlugin(const base::string16& name, | 42 void OnBlockedUnauthorizedPlugin(const base::string16& name, |
| 43 const std::string& identifier); | 43 const std::string& identifier); |
| 44 void OnBlockedOutdatedPlugin(int placeholder_id, | 44 void OnBlockedOutdatedPlugin(int placeholder_id, |
| 45 const std::string& identifier); | 45 const std::string& identifier); |
| 46 void OnBlockedComponentUpdatedPlugin(int placeholder_id, | 46 void OnBlockedComponentUpdatedPlugin(int placeholder_id, |
| 47 const std::string& identifier); | 47 const std::string& identifier); |
| 48 void OnRemovePluginPlaceholderHost(int placeholder_id); | 48 void OnRemovePluginPlaceholderHost(int placeholder_id); |
| 49 void RemoveComponentObserver(int placeholder_id); | 49 void RemoveComponentObserver(int placeholder_id); |
| 50 void OnShowFlashPermissionBubble(); | 50 void OnShowFlashPermissionBubble(); |
| 51 void OnCouldNotLoadPlugin(const base::FilePath& plugin_path); | 51 void OnCouldNotLoadPlugin(const base::FilePath& plugin_path); |
| 52 void OnDownloadPDF(const GURL& url); |
| 52 | 53 |
| 53 // Stores all PluginPlaceholderHosts, keyed by their routing ID. | 54 // Stores all PluginPlaceholderHosts, keyed by their routing ID. |
| 54 std::map<int, std::unique_ptr<PluginPlaceholderHost>> plugin_placeholders_; | 55 std::map<int, std::unique_ptr<PluginPlaceholderHost>> plugin_placeholders_; |
| 55 | 56 |
| 56 // Stores all ComponentObservers, keyed by their routing ID. | 57 // Stores all ComponentObservers, keyed by their routing ID. |
| 57 std::map<int, std::unique_ptr<ComponentObserver>> component_observers_; | 58 std::map<int, std::unique_ptr<ComponentObserver>> component_observers_; |
| 58 | 59 |
| 59 base::WeakPtrFactory<PluginObserver> weak_ptr_factory_; | 60 base::WeakPtrFactory<PluginObserver> weak_ptr_factory_; |
| 60 | 61 |
| 61 DISALLOW_COPY_AND_ASSIGN(PluginObserver); | 62 DISALLOW_COPY_AND_ASSIGN(PluginObserver); |
| 62 }; | 63 }; |
| 63 | 64 |
| 64 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_ | 65 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_ |
| OLD | NEW |