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_PLUGIN_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_PLUGIN_OBSERVER_H_ |
6 #define CHROME_BROWSER_PLUGIN_OBSERVER_H_ | 6 #define CHROME_BROWSER_PLUGIN_OBSERVER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
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 30 matching lines...) Expand all Loading... |
41 void OnBlockedOutdatedPlugin(const string16& name, const GURL& update_url); | 41 void OnBlockedOutdatedPlugin(const string16& name, const GURL& update_url); |
42 #if defined(ENABLE_PLUGIN_INSTALLATION) | 42 #if defined(ENABLE_PLUGIN_INSTALLATION) |
43 void OnFindMissingPlugin(int placeholder_id, const std::string& mime_type); | 43 void OnFindMissingPlugin(int placeholder_id, const std::string& mime_type); |
44 | 44 |
45 void FoundMissingPlugin(int placeholder_id, | 45 void FoundMissingPlugin(int placeholder_id, |
46 const std::string& mime_type, | 46 const std::string& mime_type, |
47 PluginInstaller* installer); | 47 PluginInstaller* installer); |
48 void DidNotFindMissingPlugin(int placeholder_id); | 48 void DidNotFindMissingPlugin(int placeholder_id); |
49 void InstallMissingPlugin(PluginInstaller* installer); | 49 void InstallMissingPlugin(PluginInstaller* installer); |
50 #endif | 50 #endif |
| 51 void OnOpenAboutPlugins(); |
51 | 52 |
52 base::WeakPtrFactory<PluginObserver> weak_ptr_factory_; | 53 base::WeakPtrFactory<PluginObserver> weak_ptr_factory_; |
53 | 54 |
54 TabContentsWrapper* tab_contents_; | 55 TabContentsWrapper* tab_contents_; |
55 | 56 |
56 #if defined(ENABLE_PLUGIN_INSTALLATION) | 57 #if defined(ENABLE_PLUGIN_INSTALLATION) |
57 ScopedVector<MissingPluginHost> missing_plugins_; | 58 ScopedVector<MissingPluginHost> missing_plugins_; |
58 #endif | 59 #endif |
59 | 60 |
60 DISALLOW_COPY_AND_ASSIGN(PluginObserver); | 61 DISALLOW_COPY_AND_ASSIGN(PluginObserver); |
61 }; | 62 }; |
62 | 63 |
63 #endif // CHROME_BROWSER_PLUGIN_OBSERVER_H_ | 64 #endif // CHROME_BROWSER_PLUGIN_OBSERVER_H_ |
OLD | NEW |