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

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

Issue 89253002: Remove ExtensionPrefFactory's dependency on Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 years 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 (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_EXTENSIONS_EXTENSION_PREF_VALUE_MAP_FACTORY_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PREF_VALUE_MAP_FACTORY_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREF_VALUE_MAP_FACTORY_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREF_VALUE_MAP_FACTORY_H_
7 7
8 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "components/browser_context_keyed_service/browser_context_keyed_service _factory.h" 9 #include "components/browser_context_keyed_service/browser_context_keyed_service _factory.h"
10 10
11 class ExtensionPrefValueMap; 11 class ExtensionPrefValueMap;
12 class Profile;
13 12
14 // The usual factory boilerplate for ExtensionPrefValueMap. 13 // The usual factory boilerplate for ExtensionPrefValueMap.
15 class ExtensionPrefValueMapFactory : public BrowserContextKeyedServiceFactory { 14 class ExtensionPrefValueMapFactory : public BrowserContextKeyedServiceFactory {
16 public: 15 public:
17 static ExtensionPrefValueMap* GetForBrowserContext( 16 static ExtensionPrefValueMap* GetForBrowserContext(
18 content::BrowserContext* context); 17 content::BrowserContext* context);
19 18
20 static ExtensionPrefValueMapFactory* GetInstance(); 19 static ExtensionPrefValueMapFactory* GetInstance();
21 20
22 private: 21 private:
23 friend struct DefaultSingletonTraits<ExtensionPrefValueMapFactory>; 22 friend struct DefaultSingletonTraits<ExtensionPrefValueMapFactory>;
24 23
25 ExtensionPrefValueMapFactory(); 24 ExtensionPrefValueMapFactory();
26 virtual ~ExtensionPrefValueMapFactory(); 25 virtual ~ExtensionPrefValueMapFactory();
27 26
28 virtual BrowserContextKeyedService* BuildServiceInstanceFor( 27 virtual BrowserContextKeyedService* BuildServiceInstanceFor(
29 content::BrowserContext* context) const OVERRIDE; 28 content::BrowserContext* context) const OVERRIDE;
30 }; 29 };
31 30
32 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREF_VALUE_MAP_FACTORY_H_ 31 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREF_VALUE_MAP_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698