diff options
author | ortuno <ortuno@chromium.org> | 2016-02-03 15:18:05 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-03 23:19:29 +0000 |
commit | 93037ba5fdf07ce35bdbc1e19f89ff7afb33fc6a (patch) | |
tree | b9cef23ee7ebaa7703a69a6f32bf9eee54c960a3 /content/renderer/bluetooth/bluetooth_dispatcher.h | |
parent | b3b202d2113d388ede39065ec3c1e58b138dff54 (diff) | |
download | chromium_src-93037ba5fdf07ce35bdbc1e19f89ff7afb33fc6a.zip chromium_src-93037ba5fdf07ce35bdbc1e19f89ff7afb33fc6a.tar.gz chromium_src-93037ba5fdf07ce35bdbc1e19f89ff7afb33fc6a.tar.bz2 |
bluetooth: Move BluetoothGATTRemote server to BluetoothDevice and implement connect
Moves connectGATT to BluetoothGATTRemoteServer as connect() and add
BluetoothGATTRemoteServer as a member.
BUG=582292
Review URL: https://codereview.chromium.org/1655823003
Cr-Commit-Position: refs/heads/master@{#373378}
Diffstat (limited to 'content/renderer/bluetooth/bluetooth_dispatcher.h')
-rw-r--r-- | content/renderer/bluetooth/bluetooth_dispatcher.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/content/renderer/bluetooth/bluetooth_dispatcher.h b/content/renderer/bluetooth/bluetooth_dispatcher.h index dc8370c..4668b5b 100644 --- a/content/renderer/bluetooth/bluetooth_dispatcher.h +++ b/content/renderer/bluetooth/bluetooth_dispatcher.h @@ -65,9 +65,9 @@ class BluetoothDispatcher : public WorkerThread::Observer { void requestDevice(int frame_routing_id, const blink::WebRequestDeviceOptions& options, blink::WebBluetoothRequestDeviceCallbacks* callbacks); - void connectGATT(int frame_routing_id, - const blink::WebString& device_id, - blink::WebBluetoothConnectGATTCallbacks* callbacks); + void connect(int frame_routing_id, + const blink::WebString& device_id, + blink::WebBluetoothGATTServerConnectCallbacks* callbacks); void disconnect(int frame_routing_id, const blink::WebString& device_id); void getPrimaryService( int frame_routing_id, @@ -179,12 +179,10 @@ class BluetoothDispatcher : public WorkerThread::Observer { void OnRequestDeviceError(int thread_id, int request_id, blink::WebBluetoothError error); - void OnConnectGATTSuccess(int thread_id, - int request_id, - const std::string& message); - void OnConnectGATTError(int thread_id, - int request_id, - blink::WebBluetoothError error); + void OnGATTServerConnectSuccess(int thread_id, int request_id); + void OnGATTServerConnectError(int thread_id, + int request_id, + blink::WebBluetoothError error); void OnGetPrimaryServiceSuccess(int thread_id, int request_id, const std::string& service_instance_id); @@ -230,7 +228,7 @@ class BluetoothDispatcher : public WorkerThread::Observer { pending_requests_; // Tracks requests to connect to a device. // Owns callback objects. - IDMap<blink::WebBluetoothConnectGATTCallbacks, IDMapOwnPointer> + IDMap<blink::WebBluetoothGATTServerConnectCallbacks, IDMapOwnPointer> pending_connect_requests_; // Tracks requests to get a primary service from a device. // Owns request objects. |