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 "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 // Message handlers: | 53 // Message handlers: |
54 void OnBlockedUnauthorizedPlugin(const base::string16& name, | 54 void OnBlockedUnauthorizedPlugin(const base::string16& name, |
55 const std::string& identifier); | 55 const std::string& identifier); |
56 void OnBlockedOutdatedPlugin(int placeholder_id, | 56 void OnBlockedOutdatedPlugin(int placeholder_id, |
57 const std::string& identifier); | 57 const std::string& identifier); |
58 #if defined(ENABLE_PLUGIN_INSTALLATION) | 58 #if defined(ENABLE_PLUGIN_INSTALLATION) |
59 void OnRemovePluginPlaceholderHost(int placeholder_id); | 59 void OnRemovePluginPlaceholderHost(int placeholder_id); |
60 #endif | 60 #endif |
61 void OnOpenAboutPlugins(); | 61 void OnOpenAboutPlugins(); |
62 void OnCouldNotLoadPlugin(const base::FilePath& plugin_path); | 62 void OnCouldNotLoadPlugin(const base::FilePath& plugin_path); |
63 void OnNPAPINotSupported(const std::string& identifier); | |
64 | 63 |
65 #if defined(ENABLE_PLUGIN_INSTALLATION) | 64 #if defined(ENABLE_PLUGIN_INSTALLATION) |
66 // Stores all PluginPlaceholderHosts, keyed by their routing ID. | 65 // Stores all PluginPlaceholderHosts, keyed by their routing ID. |
67 std::map<int, PluginPlaceholderHost*> plugin_placeholders_; | 66 std::map<int, PluginPlaceholderHost*> plugin_placeholders_; |
68 #endif | 67 #endif |
69 | 68 |
70 base::WeakPtrFactory<PluginObserver> weak_ptr_factory_; | 69 base::WeakPtrFactory<PluginObserver> weak_ptr_factory_; |
71 | 70 |
72 DISALLOW_COPY_AND_ASSIGN(PluginObserver); | 71 DISALLOW_COPY_AND_ASSIGN(PluginObserver); |
73 }; | 72 }; |
74 | 73 |
75 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_ | 74 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_ |
OLD | NEW |