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 #if defined(OS_WIN) |
| 65 void OnRestartInDesktopMode(); |
| 66 #endif |
64 | 67 |
65 base::WeakPtrFactory<PluginObserver> weak_ptr_factory_; | 68 base::WeakPtrFactory<PluginObserver> weak_ptr_factory_; |
66 | 69 |
67 #if defined(ENABLE_PLUGIN_INSTALLATION) | 70 #if defined(ENABLE_PLUGIN_INSTALLATION) |
68 // Stores all PluginPlaceholderHosts, keyed by their routing ID. | 71 // Stores all PluginPlaceholderHosts, keyed by their routing ID. |
69 std::map<int, PluginPlaceholderHost*> plugin_placeholders_; | 72 std::map<int, PluginPlaceholderHost*> plugin_placeholders_; |
70 #endif | 73 #endif |
71 | 74 |
72 DISALLOW_COPY_AND_ASSIGN(PluginObserver); | 75 DISALLOW_COPY_AND_ASSIGN(PluginObserver); |
73 }; | 76 }; |
74 | 77 |
75 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_ | 78 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_ |
OLD | NEW |