| Index: chrome/browser/chromeos/extensions/bluetooth_event_router.h
|
| diff --git a/chrome/browser/chromeos/extensions/bluetooth_event_router.h b/chrome/browser/chromeos/extensions/bluetooth_event_router.h
|
| index e33b68935c2a44fdc5cc488c7815b7ec68b2503a..2b38b38110d86f6d05524a5ba0f93ce449168a7b 100644
|
| --- a/chrome/browser/chromeos/extensions/bluetooth_event_router.h
|
| +++ b/chrome/browser/chromeos/extensions/bluetooth_event_router.h
|
| @@ -37,18 +37,25 @@ class ExtensionBluetoothEventRouter
|
| // Get the BluetoothSocket corresponding to |id|.
|
| scoped_refptr<BluetoothSocket> GetSocket(int id);
|
|
|
| + // Sets whether or not DeviceAdded events will be dispatched to extensions.
|
| + void SetSendDiscoveryEvents(bool should_send);
|
| +
|
| // Override from chromeos::BluetoothAdapter::Observer
|
| - virtual void AdapterPresentChanged(
|
| - chromeos::BluetoothAdapter* adapter, bool present) OVERRIDE;
|
| - virtual void AdapterPoweredChanged(
|
| - chromeos::BluetoothAdapter* adapter, bool has_power) OVERRIDE;
|
| + virtual void AdapterPresentChanged(chromeos::BluetoothAdapter* adapter,
|
| + bool present) OVERRIDE;
|
| + virtual void AdapterPoweredChanged(chromeos::BluetoothAdapter* adapter,
|
| + bool has_power) OVERRIDE;
|
| + virtual void DeviceAdded(chromeos::BluetoothAdapter* adapter,
|
| + chromeos::BluetoothDevice* device) OVERRIDE;
|
|
|
| // Exposed for testing.
|
| void SetAdapterForTest(chromeos::BluetoothAdapter* adapter) {
|
| adapter_.reset(adapter);
|
| }
|
| private:
|
| - void DispatchEvent(const char* event_name, bool value);
|
| + void DispatchBooleanValueEvent(const char* event_name, bool value);
|
| +
|
| + bool send_discovery_events_;
|
|
|
| Profile* profile_;
|
| scoped_ptr<chromeos::BluetoothAdapter> adapter_;
|
|
|