Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1739)

Side by Side Diff: chrome/browser/extensions/plugin_manager.h

Issue 174513003: Move ProfileKeyedAPI implementations to take BrowserContext in the constructor (part 3). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_web_ui_override_registrar.cc ('k') | chrome/browser/extensions/plugin_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698