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

Side by Side Diff: components/arc/bluetooth/arc_bluetooth_bridge.h

Issue 2223203002: arc: bluetooth: Add/Remove BT observer only when ARC is ready (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nit in last patch Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | components/arc/bluetooth/arc_bluetooth_bridge.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_ 5 #ifndef COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_
6 #define COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_ 6 #define COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 27 matching lines...) Expand all
38 public device::BluetoothAdapter::Observer, 38 public device::BluetoothAdapter::Observer,
39 public device::BluetoothAdapterFactory::AdapterCallback, 39 public device::BluetoothAdapterFactory::AdapterCallback,
40 public device::BluetoothLocalGattService::Delegate, 40 public device::BluetoothLocalGattService::Delegate,
41 public mojom::BluetoothHost { 41 public mojom::BluetoothHost {
42 public: 42 public:
43 explicit ArcBluetoothBridge(ArcBridgeService* bridge_service); 43 explicit ArcBluetoothBridge(ArcBridgeService* bridge_service);
44 ~ArcBluetoothBridge() override; 44 ~ArcBluetoothBridge() override;
45 45
46 // Overridden from InstanceHolder<mojom::BluetoothInstance>::Observer: 46 // Overridden from InstanceHolder<mojom::BluetoothInstance>::Observer:
47 void OnInstanceReady() override; 47 void OnInstanceReady() override;
48 void OnInstanceClosed() override;
48 49
49 void OnAdapterInitialized(scoped_refptr<device::BluetoothAdapter> adapter); 50 void OnAdapterInitialized(scoped_refptr<device::BluetoothAdapter> adapter);
50 51
51 // Overridden from device::BluetoothAdadpter::Observer 52 // Overridden from device::BluetoothAdadpter::Observer
52 void AdapterPoweredChanged(device::BluetoothAdapter* adapter, 53 void AdapterPoweredChanged(device::BluetoothAdapter* adapter,
53 bool powered) override; 54 bool powered) override;
54 55
55 void DeviceAdded(device::BluetoothAdapter* adapter, 56 void DeviceAdded(device::BluetoothAdapter* adapter,
56 device::BluetoothDevice* device) override; 57 device::BluetoothDevice* device) override;
57 58
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 383
383 // WeakPtrFactory to use for callbacks. 384 // WeakPtrFactory to use for callbacks.
384 base::WeakPtrFactory<ArcBluetoothBridge> weak_factory_; 385 base::WeakPtrFactory<ArcBluetoothBridge> weak_factory_;
385 386
386 DISALLOW_COPY_AND_ASSIGN(ArcBluetoothBridge); 387 DISALLOW_COPY_AND_ASSIGN(ArcBluetoothBridge);
387 }; 388 };
388 389
389 } // namespace arc 390 } // namespace arc
390 391
391 #endif // COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_ 392 #endif // COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_
OLDNEW
« no previous file with comments | « no previous file | components/arc/bluetooth/arc_bluetooth_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698