OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_EXTENSIONS_PLUGIN_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_PLUGIN_MANAGER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_PLUGIN_MANAGER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_PLUGIN_MANAGER_H_ |
7 | 7 |
8 #include "chrome/browser/extensions/api/profile_keyed_api_factory.h" | 8 #include "chrome/browser/extensions/api/profile_keyed_api_factory.h" |
9 #include "chrome/common/extensions/manifest_handlers/nacl_modules_handler.h" | 9 #include "chrome/common/extensions/manifest_handlers/nacl_modules_handler.h" |
10 #include "content/public/browser/notification_observer.h" | 10 #include "content/public/browser/notification_observer.h" |
11 #include "content/public/browser/notification_registrar.h" | 11 #include "content/public/browser/notification_registrar.h" |
12 | 12 |
13 class GURL; | 13 class GURL; |
14 class Profile; | 14 class Profile; |
15 | 15 |
| 16 namespace content { |
| 17 class BrowserContext; |
| 18 } |
| 19 |
16 namespace extensions { | 20 namespace extensions { |
17 | 21 |
18 class PluginManager : public ProfileKeyedAPI, | 22 class PluginManager : public ProfileKeyedAPI, |
19 public content::NotificationObserver { | 23 public content::NotificationObserver { |
20 public: | 24 public: |
21 explicit PluginManager(Profile* profile); | 25 explicit PluginManager(content::BrowserContext* context); |
22 virtual ~PluginManager(); | 26 virtual ~PluginManager(); |
23 | 27 |
24 // ProfileKeyedAPI implementation. | 28 // ProfileKeyedAPI implementation. |
25 static ProfileKeyedAPIFactory<PluginManager>* GetFactoryInstance(); | 29 static ProfileKeyedAPIFactory<PluginManager>* GetFactoryInstance(); |
26 | 30 |
27 // content::NotificationObserver impelmentation. | 31 // content::NotificationObserver impelmentation. |
28 virtual void Observe(int type, | 32 virtual void Observe(int type, |
29 const content::NotificationSource& source, | 33 const content::NotificationSource& source, |
30 const content::NotificationDetails& details) OVERRIDE; | 34 const content::NotificationDetails& details) OVERRIDE; |
31 | 35 |
(...skipping 22 matching lines...) Expand all Loading... |
54 extensions::NaClModuleInfo::List nacl_module_list_; | 58 extensions::NaClModuleInfo::List nacl_module_list_; |
55 | 59 |
56 content::NotificationRegistrar registrar_; | 60 content::NotificationRegistrar registrar_; |
57 | 61 |
58 Profile* profile_; | 62 Profile* profile_; |
59 }; | 63 }; |
60 | 64 |
61 } // namespace extensions | 65 } // namespace extensions |
62 | 66 |
63 #endif // CHROME_BROWSER_EXTENSIONS_PLUGIN_MANAGER_H_ | 67 #endif // CHROME_BROWSER_EXTENSIONS_PLUGIN_MANAGER_H_ |
OLD | NEW |