Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Unified Diff: content/child/bluetooth/bluetooth_dispatcher.h

Issue 1082273006: bluetooth: Impl uses new WebBluetoothGATTRemoteServer content/browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes based on comments Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/child/bluetooth/bluetooth_dispatcher.h
diff --git a/content/child/bluetooth/bluetooth_dispatcher.h b/content/child/bluetooth/bluetooth_dispatcher.h
index 36c2ec3c42e44ef8902acbf62b7b0f9ae2280dbf..86057d8ad87d0a472fd0a3aa4102a02bf9b08f82 100644
--- a/content/child/bluetooth/bluetooth_dispatcher.h
+++ b/content/child/bluetooth/bluetooth_dispatcher.h
@@ -48,6 +48,8 @@ class BluetoothDispatcher : public WorkerTaskRunner::Observer {
// Corresponding to WebBluetoothImpl methods.
void requestDevice(blink::WebBluetoothRequestDeviceCallbacks* callbacks);
+ void connectGATT(const blink::WebString& device_instance_id,
+ blink::WebBluetoothConnectGATTCallbacks* callbacks);
void SetBluetoothMockDataSetForTesting(const std::string& name);
// WorkerTaskRunner::Observer implementation.
@@ -62,12 +64,20 @@ class BluetoothDispatcher : public WorkerTaskRunner::Observer {
int request_id,
BluetoothError error_type);
+ void OnConnectGATTSuccess(int thread_id,
+ int request_id,
+ const std::string& message);
+
scoped_refptr<ThreadSafeSender> thread_safe_sender_;
- // Tracks requests sent to browser to match replies with callbacks.
+ // Tracks device requests sent to browser to match replies with callbacks.
// Owns callback objects.
IDMap<blink::WebBluetoothRequestDeviceCallbacks, IDMapOwnPointer>
pending_requests_;
+ // Tracks requests to connect to a device.
+ // Owns callback objects.
+ IDMap<blink::WebBluetoothConnectGATTCallbacks, IDMapOwnPointer>
+ pending_connect_requests_;
DISALLOW_COPY_AND_ASSIGN(BluetoothDispatcher);
};
« no previous file with comments | « content/browser/bluetooth/bluetooth_dispatcher_host.cc ('k') | content/child/bluetooth/bluetooth_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698