| Index: chrome/browser/extensions/api/bluetooth/bluetooth_api.h
|
| diff --git a/chrome/browser/extensions/api/bluetooth/bluetooth_api.h b/chrome/browser/extensions/api/bluetooth/bluetooth_api.h
|
| index d914b42df10e415d5972fb59740931583345d671..caaab5f0dedb15a4234097b3c0c93bdec9d295b1 100644
|
| --- a/chrome/browser/extensions/api/bluetooth/bluetooth_api.h
|
| +++ b/chrome/browser/extensions/api/bluetooth/bluetooth_api.h
|
| @@ -9,13 +9,19 @@
|
|
|
| #include "base/memory/ref_counted.h"
|
| #include "base/memory/scoped_ptr.h"
|
| -#include "chrome/browser/extensions/api/api_function.h"
|
| #include "chrome/browser/extensions/api/bluetooth/bluetooth_extension_function.h"
|
| #include "components/browser_context_keyed_service/browser_context_keyed_service.h"
|
| #include "device/bluetooth/bluetooth_device.h"
|
| #include "device/bluetooth/bluetooth_profile.h"
|
| +#include "extensions/browser/api/async_api_function.h"
|
| #include "extensions/browser/event_router.h"
|
|
|
| +class Profile;
|
| +
|
| +namespace content {
|
| +class BrowserContext;
|
| +}
|
| +
|
| namespace device {
|
|
|
| class BluetoothAdapter;
|
| @@ -29,12 +35,12 @@ namespace extensions {
|
|
|
| class ExtensionBluetoothEventRouter;
|
|
|
| -// The profile-keyed service that manages the bluetooth extension API.
|
| +// The context-keyed service that manages the bluetooth extension API.
|
| class BluetoothAPI : public BrowserContextKeyedService,
|
| public EventRouter::Observer {
|
| public:
|
| - // Convenience method to get the BluetoothAPI for a profile.
|
| - static BluetoothAPI* Get(Profile* profile);
|
| + // Convenience method to get the BluetoothAPI for a browser context.
|
| + static BluetoothAPI* Get(content::BrowserContext* context);
|
|
|
| explicit BluetoothAPI(Profile* profile);
|
| virtual ~BluetoothAPI();
|
| @@ -49,7 +55,7 @@ class BluetoothAPI : public BrowserContextKeyedService,
|
| virtual void OnListenerRemoved(const EventListenerInfo& details) OVERRIDE;
|
|
|
| private:
|
| - Profile* profile_;
|
| + content::BrowserContext* browser_context_;
|
|
|
| // Created lazily on first access.
|
| scoped_ptr<ExtensionBluetoothEventRouter> bluetooth_event_router_;
|
|
|