| Index: chrome/browser/power/origin_power_map_factory.h
|
| diff --git a/chrome/browser/power/origin_power_map_factory.h b/chrome/browser/power/origin_power_map_factory.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..888ec91aaae2941eef3a7fcd55cfd785092c1d79
|
| --- /dev/null
|
| +++ b/chrome/browser/power/origin_power_map_factory.h
|
| @@ -0,0 +1,30 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_POWER_ORIGIN_POWER_MAP_FACTORY_H_
|
| +#define CHROME_BROWSER_POWER_ORIGIN_POWER_MAP_FACTORY_H_
|
| +
|
| +#include "base/memory/singleton.h"
|
| +#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
|
| +
|
| +class OriginPowerMap;
|
| +class Profile;
|
| +
|
| +class OriginPowerMapFactory : public BrowserContextKeyedServiceFactory {
|
| + public:
|
| + static OriginPowerMap* GetForProfile(Profile* profile);
|
| + static OriginPowerMapFactory* GetInstance();
|
| +
|
| + private:
|
| + friend struct DefaultSingletonTraits<OriginPowerMapFactory>;
|
| +
|
| + OriginPowerMapFactory();
|
| + virtual ~OriginPowerMapFactory();
|
| +
|
| + // BrowserContextKeyedServiceFactory;
|
| + virtual KeyedService* BuildServiceInstanceFor(
|
| + content::BrowserContext* context) const OVERRIDE;
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_POWER_ORIGIN_POWER_MAP_FACTORY_H_
|
|
|