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

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

Issue 1861013005: bluetooth: Move GetCharacteristic(s) over to Mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-separate-tests-read-value
Patch Set: Address palmer's comments Created 4 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
« no previous file with comments | « content/content_browser.gypi ('k') | content/renderer/bluetooth/bluetooth_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/bluetooth/bluetooth_dispatcher.h
diff --git a/content/renderer/bluetooth/bluetooth_dispatcher.h b/content/renderer/bluetooth/bluetooth_dispatcher.h
index 4886ef1e5b0aee949af0b7abb25d7764609e41d0..3dd5a11d4fa9ea383baede46f573297c54f3c580 100644
--- a/content/renderer/bluetooth/bluetooth_dispatcher.h
+++ b/content/renderer/bluetooth/bluetooth_dispatcher.h
@@ -23,16 +23,10 @@ class MessageLoop;
class TaskRunner;
}
-namespace blink {
-class WebBluetoothRemoteGATTCharacteristic;
-}
-
namespace IPC {
class Message;
}
-struct BluetoothCharacteristicRequest;
-struct BluetoothCharacteristicsRequest;
struct BluetoothPrimaryServiceRequest;
namespace content {
@@ -73,16 +67,6 @@ class BluetoothDispatcher : public WorkerThread::Observer {
const blink::WebString& device_id,
const blink::WebString& service_uuid,
blink::WebBluetoothGetPrimaryServiceCallbacks* callbacks);
- void getCharacteristic(
- int frame_routing_id,
- const blink::WebString& service_instance_id,
- const blink::WebString& characteristic_uuid,
- blink::WebBluetoothGetCharacteristicCallbacks* callbacks);
- void getCharacteristics(
- int frame_routing_id,
- const blink::WebString& service_instance_id,
- const blink::WebString& characteristics_uuid,
- blink::WebBluetoothGetCharacteristicsCallbacks* callbacks);
// WorkerThread::Observer implementation.
void WillStopCurrentWorkerThread() override;
@@ -105,22 +89,6 @@ class BluetoothDispatcher : public WorkerThread::Observer {
void OnGetPrimaryServiceError(int thread_id,
int request_id,
blink::WebBluetoothError error);
- void OnGetCharacteristicSuccess(int thread_id,
- int request_id,
- const std::string& characteristic_instance_id,
- uint32_t characteristic_properties);
- void OnGetCharacteristicError(int thread_id,
- int request_id,
- blink::WebBluetoothError error);
- void OnGetCharacteristicsSuccess(
- int thread_id,
- int request_id,
- const std::vector<std::string>& characteristics_instance_ids,
- const std::vector<std::string>& characteristics_uuids,
- const std::vector<uint32_t>& characteristic_properties);
- void OnGetCharacteristicsError(int thread_id,
- int request_id,
- blink::WebBluetoothError error);
scoped_refptr<ThreadSafeSender> thread_safe_sender_;
@@ -136,12 +104,6 @@ class BluetoothDispatcher : public WorkerThread::Observer {
// Owns request objects.
IDMap<BluetoothPrimaryServiceRequest, IDMapOwnPointer>
pending_primary_service_requests_;
- // Tracks requests to get a characteristic from a service.
- IDMap<BluetoothCharacteristicRequest, IDMapOwnPointer>
- pending_characteristic_requests_;
- // Tracks requests to get characteristics from a service.
- IDMap<BluetoothCharacteristicsRequest, IDMapOwnPointer>
- pending_characteristics_requests_;
DISALLOW_COPY_AND_ASSIGN(BluetoothDispatcher);
};
« no previous file with comments | « content/content_browser.gypi ('k') | content/renderer/bluetooth/bluetooth_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698