Chromium Code Reviews| Index: chrome/browser/extensions/api/bluetooth/bluetooth_event_router.h |
| diff --git a/chrome/browser/extensions/api/bluetooth/bluetooth_event_router.h b/chrome/browser/extensions/api/bluetooth/bluetooth_event_router.h |
| index ecc5ff85cf77e48cc9fcbeeca4ee1361c14771af..5d83df1855f17e4f8cce2f21f7573456c978caa9 100644 |
| --- a/chrome/browser/extensions/api/bluetooth/bluetooth_event_router.h |
| +++ b/chrome/browser/extensions/api/bluetooth/bluetooth_event_router.h |
| @@ -108,11 +108,6 @@ class ExtensionBluetoothEventRouter |
| // Get the BluetoothSocket corresponding to |id|. |
| scoped_refptr<device::BluetoothSocket> GetSocket(int id); |
| - // Dispatch an event that takes a device as a parameter to all renderers. |
| - void DispatchDeviceEvent( |
| - const std::string& event_name, |
| - const extensions::api::bluetooth::Device& device); |
| - |
| // Dispatch an event that takes a connection socket as a parameter to the |
| // extension that registered the profile that the socket has connected to. |
| void DispatchConnectionEvent(const std::string& extension_id, |
| @@ -129,6 +124,10 @@ class ExtensionBluetoothEventRouter |
| bool discovering) OVERRIDE; |
| virtual void DeviceAdded(device::BluetoothAdapter* adapter, |
| device::BluetoothDevice* device) OVERRIDE; |
| + virtual void DeviceChanged(device::BluetoothAdapter* adapter, |
| + device::BluetoothDevice* device) OVERRIDE; |
|
rpaquay
2014/03/06 00:11:19
nit: missing space
keybuk
2014/03/06 21:33:44
Done.
|
| + virtual void DeviceRemoved(device::BluetoothAdapter* adapter, |
| + device::BluetoothDevice* device) OVERRIDE; |
| // Overridden from content::NotificationObserver |
| virtual void Observe(int type, |
| @@ -145,6 +144,8 @@ class ExtensionBluetoothEventRouter |
| void InitializeAdapter(scoped_refptr<device::BluetoothAdapter> adapter); |
| void MaybeReleaseAdapter(); |
| void DispatchAdapterStateEvent(); |
| + void DispatchDeviceEvent(const std::string& event_name, |
| + device::BluetoothDevice* device); |
| void CleanUpForExtension(const std::string& extension_id); |
| void OnStartDiscoverySession( |
| const std::string& extension_id, |