OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_POWER_ORIGIN_POWER_MAP_FACTORY_H_ | |
6 #define CHROME_BROWSER_POWER_ORIGIN_POWER_MAP_FACTORY_H_ | |
7 | |
8 #include "base/memory/singleton.h" | |
9 #include "components/keyed_service/content/browser_context_keyed_service_factory .h" | |
10 | |
11 class OriginPowerMap; | |
12 class Profile; | |
13 | |
14 class OriginPowerMapFactory : public BrowserContextKeyedServiceFactory { | |
15 public: | |
16 static OriginPowerMap* GetForProfile(Profile* profile); | |
17 static OriginPowerMapFactory* GetInstance(); | |
18 | |
19 private: | |
20 friend struct DefaultSingletonTraits<OriginPowerMapFactory>; | |
21 | |
22 OriginPowerMapFactory(); | |
23 virtual ~OriginPowerMapFactory(); | |
24 | |
25 // BrowserContextKeyedServiceFactory; | |
sky
2014/08/08 19:12:25
; -> :
Daniel Nishi
2014/08/08 19:41:05
Done.
| |
26 virtual KeyedService* BuildServiceInstanceFor( | |
27 content::BrowserContext* context) const OVERRIDE; | |
28 }; | |
sky
2014/08/08 19:12:25
DISALLOW_...
Daniel Nishi
2014/08/08 19:41:05
Done.
| |
29 | |
30 #endif // CHROME_BROWSER_POWER_ORIGIN_POWER_MAP_FACTORY_H_ | |
OLD | NEW |