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