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

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: 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..b42ed58ec5808219a61841b6b1de2a3f0ce67574 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(std::string instance_id,
+ blink::WebBluetoothConnectGATTCallbacks* callbacks);
void SetBluetoothMockDataSetForTesting(const std::string& name);
// WorkerTaskRunner::Observer implementation.
@@ -62,12 +64,19 @@ 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.
// Owns callback objects.
IDMap<blink::WebBluetoothRequestDeviceCallbacks, IDMapOwnPointer>
pending_requests_;
+ // TODO(ortuno): Create an callback interface to use in the map.
scheib 2015/04/19 04:44:19 Drop the TODO comment for now. I'm not certain we'
ortuno 2015/04/20 20:09:33 Done.
+ IDMap<blink::WebBluetoothConnectGATTCallbacks, IDMapOwnPointer>
+ pending_connect_requests_;
DISALLOW_COPY_AND_ASSIGN(BluetoothDispatcher);
};

Powered by Google App Engine
This is Rietveld 408576698