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

Unified Diff: content/browser/bluetooth/web_bluetooth_service_impl.h

Issue 1898643002: Refactor device::BluetoothGattXXX classes to split into remote/local. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: content/browser/bluetooth/web_bluetooth_service_impl.h
diff --git a/content/browser/bluetooth/web_bluetooth_service_impl.h b/content/browser/bluetooth/web_bluetooth_service_impl.h
index e044254563de5e54bc8724e16b1bc001b42aa96e..f0677515b7315f13e084aebb0cb71ee78ec7bafd 100644
--- a/content/browser/bluetooth/web_bluetooth_service_impl.h
+++ b/content/browser/bluetooth/web_bluetooth_service_impl.h
@@ -14,9 +14,9 @@
#include "content/common/content_export.h"
#include "content/public/browser/web_contents_observer.h"
#include "device/bluetooth/bluetooth_adapter.h"
-#include "device/bluetooth/bluetooth_gatt_characteristic.h"
#include "device/bluetooth/bluetooth_gatt_notify_session.h"
-#include "device/bluetooth/bluetooth_gatt_service.h"
+#include "device/bluetooth/bluetooth_remote_gatt_characteristic.h"
+#include "device/bluetooth/bluetooth_remote_gatt_service.h"
#include "mojo/public/cpp/bindings/binding.h"
#include "third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom.h"
@@ -64,7 +64,7 @@ class WebBluetoothServiceImpl : public blink::mojom::WebBluetoothService,
bool present) override;
void GattCharacteristicValueChanged(
device::BluetoothAdapter* adapter,
- device::BluetoothGattCharacteristic* characteristic,
+ device::BluetoothRemoteGattCharacteristic* characteristic,
const std::vector<uint8_t>& value) override;
// Notifies the WebBluetoothServiceClient that characteristic
@@ -93,27 +93,27 @@ class WebBluetoothServiceImpl : public blink::mojom::WebBluetoothService,
const mojo::String& characteristic_instance_id,
const RemoteCharacteristicStopNotificationsCallback& callback) override;
- // Callbacks for BluetoothGattCharacteristic::ReadRemoteCharacteristic.
+ // Callbacks for BluetoothRemoteGattCharacteristic::ReadRemoteCharacteristic.
void OnReadValueSuccess(const RemoteCharacteristicReadValueCallback& callback,
const std::vector<uint8_t>& value);
void OnReadValueFailed(
const RemoteCharacteristicReadValueCallback& callback,
- device::BluetoothGattService::GattErrorCode error_code);
+ device::BluetoothRemoteGattService::GattErrorCode error_code);
- // Callbacks for BluetoothGattCharacteristic::WriteRemoteCharacteristic.
+ // Callbacks for BluetoothRemoteGattCharacteristic::WriteRemoteCharacteristic.
void OnWriteValueSuccess(
const RemoteCharacteristicWriteValueCallback& callback);
void OnWriteValueFailed(
const RemoteCharacteristicWriteValueCallback& callback,
- device::BluetoothGattService::GattErrorCode error_code);
+ device::BluetoothRemoteGattService::GattErrorCode error_code);
- // Callbacks for BluetoothGattCharacteristic::StartNotifySession.
+ // Callbacks for BluetoothRemoteGattCharacteristic::StartNotifySession.
void OnStartNotifySessionSuccess(
const RemoteCharacteristicStartNotificationsCallback& callback,
std::unique_ptr<device::BluetoothGattNotifySession> notify_session);
void OnStartNotifySessionFailed(
const RemoteCharacteristicStartNotificationsCallback& callback,
- device::BluetoothGattService::GattErrorCode error_code);
+ device::BluetoothRemoteGattService::GattErrorCode error_code);
// Callback for BluetoothGattNotifySession::Stop.
void OnStopNotifySessionComplete(
« no previous file with comments | « content/browser/bluetooth/bluetooth_dispatcher_host.cc ('k') | content/browser/bluetooth/web_bluetooth_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698