| 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/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "chrome/browser/tab_contents/web_contents_user_data.h" | 9 #include "chrome/browser/tab_contents/web_contents_user_data.h" |
| 10 #include "content/public/browser/web_contents_observer.h" | 10 #include "content/public/browser/web_contents_observer.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 #endif | 47 #endif |
| 48 | 48 |
| 49 // Message handlers: | 49 // Message handlers: |
| 50 void OnBlockedUnauthorizedPlugin(const string16& name, | 50 void OnBlockedUnauthorizedPlugin(const string16& name, |
| 51 const std::string& identifier); | 51 const std::string& identifier); |
| 52 void OnBlockedOutdatedPlugin(int placeholder_id, | 52 void OnBlockedOutdatedPlugin(int placeholder_id, |
| 53 const std::string& identifier); | 53 const std::string& identifier); |
| 54 #if defined(ENABLE_PLUGIN_INSTALLATION) | 54 #if defined(ENABLE_PLUGIN_INSTALLATION) |
| 55 void OnFindMissingPlugin(int placeholder_id, const std::string& mime_type); | 55 void OnFindMissingPlugin(int placeholder_id, const std::string& mime_type); |
| 56 | 56 |
| 57 void FindMissingPlugin(int placeholder_id, | |
| 58 const std::string& mime_type, | |
| 59 PluginFinder* plugin_finder); | |
| 60 void FindPluginToUpdate(int placeholder_id, | |
| 61 const std::string& identifier, | |
| 62 PluginFinder* plugin_finder); | |
| 63 void OnRemovePluginPlaceholderHost(int placeholder_id); | 57 void OnRemovePluginPlaceholderHost(int placeholder_id); |
| 64 #endif | 58 #endif |
| 65 void OnOpenAboutPlugins(); | 59 void OnOpenAboutPlugins(); |
| 66 void OnCouldNotLoadPlugin(const FilePath& plugin_path); | 60 void OnCouldNotLoadPlugin(const FilePath& plugin_path); |
| 67 | 61 |
| 68 base::WeakPtrFactory<PluginObserver> weak_ptr_factory_; | 62 base::WeakPtrFactory<PluginObserver> weak_ptr_factory_; |
| 69 | 63 |
| 70 #if defined(ENABLE_PLUGIN_INSTALLATION) | 64 #if defined(ENABLE_PLUGIN_INSTALLATION) |
| 71 // Stores all PluginPlaceholderHosts, keyed by their routing ID. | 65 // Stores all PluginPlaceholderHosts, keyed by their routing ID. |
| 72 std::map<int, PluginPlaceholderHost*> plugin_placeholders_; | 66 std::map<int, PluginPlaceholderHost*> plugin_placeholders_; |
| 73 #endif | 67 #endif |
| 74 | 68 |
| 75 DISALLOW_COPY_AND_ASSIGN(PluginObserver); | 69 DISALLOW_COPY_AND_ASSIGN(PluginObserver); |
| 76 }; | 70 }; |
| 77 | 71 |
| 78 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_ | 72 #endif // CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_H_ |
| OLD | NEW |