/chromium-webcl/src/chrome/browser/extensions/api/bluetooth/bluetooth_api_factory.h
https://bitbucket.org/peixuan/chromium_r197479_base · C Header · 37 lines · 22 code · 11 blank · 4 comment · 0 complexity · 9d844f0142362cea394c2b51f3cb77c1 MD5 · raw file
- // Copyright (c) 2012 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_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_FACTORY_H_
- #define CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_FACTORY_H_
- #include "base/memory/singleton.h"
- #include "chrome/browser/profiles/profile_keyed_service_factory.h"
- namespace extensions {
- class BluetoothAPI;
- class BluetoothAPIFactory : public ProfileKeyedServiceFactory {
- public:
- static BluetoothAPI* GetForProfile(Profile* profile);
- static BluetoothAPIFactory* GetInstance();
- private:
- friend struct DefaultSingletonTraits<BluetoothAPIFactory>;
- BluetoothAPIFactory();
- virtual ~BluetoothAPIFactory();
- // ProfileKeyedServiceFactory implementation.
- virtual ProfileKeyedService* BuildServiceInstanceFor(
- content::BrowserContext* profile) const OVERRIDE;
- virtual bool ServiceRedirectedInIncognito() const OVERRIDE;
- virtual bool ServiceIsCreatedWithProfile() const OVERRIDE;
- virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;
- };
- } // namespace extensions
- #endif // CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_FACTORY_H_