| Index: chrome/browser/wake_lock/chrome_wake_lock_permission_context_factory.h
|
| diff --git a/chrome/browser/wake_lock/chrome_wake_lock_permission_context_factory.h b/chrome/browser/wake_lock/chrome_wake_lock_permission_context_factory.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..be5b06207ad2065dc5d1ef9eb8efffe4b097d1dc
|
| --- /dev/null
|
| +++ b/chrome/browser/wake_lock/chrome_wake_lock_permission_context_factory.h
|
| @@ -0,0 +1,35 @@
|
| +// Copyright (c) 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_WAKE_LOCK_CHROME_WAKE_LOCK_PERMISSION_CONTEXT_FACTORY_H_
|
| +#define CHROME_BROWSER_WAKE_LOCK_CHROME_WAKE_LOCK_PERMISSION_CONTEXT_FACTORY_H_
|
| +
|
| +#include "base/memory/singleton.h"
|
| +#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
|
| +
|
| +class ChromeWakeLockPermissionContext;
|
| +class Profile;
|
| +
|
| +class ChromeWakeLockPermissionContextFactory
|
| + : public BrowserContextKeyedServiceFactory {
|
| + public:
|
| + static ChromeWakeLockPermissionContext* GetForProfile(Profile* profile);
|
| +
|
| + static ChromeWakeLockPermissionContextFactory* GetInstance();
|
| +
|
| + private:
|
| + friend struct
|
| + DefaultSingletonTraits<ChromeWakeLockPermissionContextFactory>;
|
| +
|
| + ChromeWakeLockPermissionContextFactory();
|
| + virtual ~ChromeWakeLockPermissionContextFactory();
|
| +
|
| + // BrowserContextKeyedBaseFactory methods:
|
| + virtual KeyedService* BuildServiceInstanceFor(
|
| + content::BrowserContext* profile) const OVERRIDE;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(ChromeWakeLockPermissionContextFactory);
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_WAKE_LOCK_CHROME_WAKE_LOCK_PERMISSION_CONTEXT_FACTORY_H_
|
|
|