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

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

Issue 2133503002: arc: Revamp the ArcBridgeService interface (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: More rebasing Created 4 years, 5 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 | « components/arc/audio/arc_audio_bridge.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 cebf74f7253c0ffba1431be1f69f9004ea8b885f..c305661c187e273b97e849c7dee54635b0662b7e 100644
--- a/components/arc/bluetooth/arc_bluetooth_bridge.h
+++ b/components/arc/bluetooth/arc_bluetooth_bridge.h
@@ -16,6 +16,7 @@
#include "components/arc/arc_bridge_service.h"
#include "components/arc/arc_service.h"
#include "components/arc/common/bluetooth.mojom.h"
+#include "components/arc/instance_holder.h"
#include "device/bluetooth/bluetooth_adapter.h"
#include "device/bluetooth/bluetooth_adapter_factory.h"
#include "device/bluetooth/bluetooth_device.h"
@@ -32,7 +33,7 @@ class ArcBridgeService;
class ArcBluetoothBridge
: public ArcService,
- public ArcBridgeService::Observer,
+ public InstanceHolder<mojom::BluetoothInstance>::Observer,
public device::BluetoothAdapter::Observer,
public device::BluetoothAdapterFactory::AdapterCallback,
public mojom::BluetoothHost {
@@ -40,8 +41,9 @@ class ArcBluetoothBridge
explicit ArcBluetoothBridge(ArcBridgeService* bridge_service);
~ArcBluetoothBridge() override;
- // Overridden from ArcBridgeService::Observer:
- void OnBluetoothInstanceReady() override;
+ // Overridden from
+ // InstanceHolder<mojom::BluetoothInstance>::Observer:
+ void OnInstanceReady() override;
void OnAdapterInitialized(scoped_refptr<device::BluetoothAdapter> adapter);
@@ -264,7 +266,7 @@ class ArcBluetoothBridge
void SendCachedDevicesFound() const;
bool HasBluetoothInstance() const;
- bool CheckBluetoothInstanceVersion(int32_t version_need) const;
+ bool CheckBluetoothInstanceVersion(uint32_t version_need) const;
template <class T>
T* FindGattObjectFromUuid(const std::vector<T*> objs,
« no previous file with comments | « components/arc/audio/arc_audio_bridge.cc ('k') | components/arc/bluetooth/arc_bluetooth_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698