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

Side by Side Diff: chrome/browser/power/origin_power_map_factory.h

Issue 447053002: Add Origin Power Map to Store Battery Auditing Data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove persistence. Created 6 years, 4 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
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698