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

Unified Diff: components/arc/bluetooth/arc_bluetooth_bridge.h

Issue 2080513002: Deletes mojo::Callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 | « chrome/utility/image_decoder_impl.cc ('k') | components/arc/bluetooth/arc_bluetooth_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/bluetooth/arc_bluetooth_bridge.h
diff --git a/components/arc/bluetooth/arc_bluetooth_bridge.h b/components/arc/bluetooth/arc_bluetooth_bridge.h
index 81b120bc7aece4febf1f54ba903c71d3d5daaf1c..915d560408350e22f849fe4f3e51f64d91143e14 100644
--- a/components/arc/bluetooth/arc_bluetooth_bridge.h
+++ b/components/arc/bluetooth/arc_bluetooth_bridge.h
@@ -12,6 +12,7 @@
#include <string>
#include <vector>
+#include "base/callback.h"
#include "components/arc/arc_bridge_service.h"
#include "components/arc/arc_service.h"
#include "components/arc/common/bluetooth.mojom.h"
@@ -190,11 +191,11 @@ class ArcBluetoothBridge
// Chrome observer callbacks
void OnPoweredOn(
- const mojo::Callback<void(mojom::BluetoothAdapterState)>& callback) const;
+ const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const;
void OnPoweredOff(
- const mojo::Callback<void(mojom::BluetoothAdapterState)>& callback) const;
+ const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const;
void OnPoweredError(
- const mojo::Callback<void(mojom::BluetoothAdapterState)>& callback) const;
+ const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const;
void OnDiscoveryStarted(
std::unique_ptr<device::BluetoothDiscoverySession> session);
void OnDiscoveryStopped();
@@ -228,14 +229,14 @@ class ArcBluetoothBridge
const StopLEListenCallback& callback,
device::BluetoothAdvertisement::ErrorCode error_code);
- using GattReadCallback = mojo::Callback<void(mojom::BluetoothGattValuePtr)>;
+ using GattReadCallback = base::Callback<void(mojom::BluetoothGattValuePtr)>;
void OnGattReadDone(const GattReadCallback& callback,
const std::vector<uint8_t>& result) const;
void OnGattReadError(
const GattReadCallback& callback,
device::BluetoothGattService::GattErrorCode error_code) const;
- using GattWriteCallback = mojo::Callback<void(mojom::BluetoothGattStatus)>;
+ using GattWriteCallback = base::Callback<void(mojom::BluetoothGattStatus)>;
void OnGattWriteDone(const GattWriteCallback& callback) const;
void OnGattWriteError(
const GattWriteCallback& callback,
« no previous file with comments | « chrome/utility/image_decoder_impl.cc ('k') | components/arc/bluetooth/arc_bluetooth_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698