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

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

Issue 2080083002: Revert of Deletes mojo::Callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 915d560408350e22f849fe4f3e51f64d91143e14..81b120bc7aece4febf1f54ba903c71d3d5daaf1c 100644
--- a/components/arc/bluetooth/arc_bluetooth_bridge.h
+++ b/components/arc/bluetooth/arc_bluetooth_bridge.h
@@ -12,7 +12,6 @@
#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"
@@ -191,11 +190,11 @@
// Chrome observer callbacks
void OnPoweredOn(
- const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const;
+ const mojo::Callback<void(mojom::BluetoothAdapterState)>& callback) const;
void OnPoweredOff(
- const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const;
+ const mojo::Callback<void(mojom::BluetoothAdapterState)>& callback) const;
void OnPoweredError(
- const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const;
+ const mojo::Callback<void(mojom::BluetoothAdapterState)>& callback) const;
void OnDiscoveryStarted(
std::unique_ptr<device::BluetoothDiscoverySession> session);
void OnDiscoveryStopped();
@@ -229,14 +228,14 @@
const StopLEListenCallback& callback,
device::BluetoothAdvertisement::ErrorCode error_code);
- using GattReadCallback = base::Callback<void(mojom::BluetoothGattValuePtr)>;
+ using GattReadCallback = mojo::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 = base::Callback<void(mojom::BluetoothGattStatus)>;
+ using GattWriteCallback = mojo::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