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

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

Issue 2172063002: arc: bluetooth: Don't unset bluetooth_adapter_ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 explicit ArcBluetoothBridge(ArcBridgeService* bridge_service); 43 explicit ArcBluetoothBridge(ArcBridgeService* bridge_service);
44 ~ArcBluetoothBridge() override; 44 ~ArcBluetoothBridge() override;
45 45
46 // Overridden from 46 // Overridden from
47 // InstanceHolder<mojom::BluetoothInstance>::Observer: 47 // InstanceHolder<mojom::BluetoothInstance>::Observer:
48 void OnInstanceReady() override; 48 void OnInstanceReady() override;
49 49
50 void OnAdapterInitialized(scoped_refptr<device::BluetoothAdapter> adapter); 50 void OnAdapterInitialized(scoped_refptr<device::BluetoothAdapter> adapter);
51 51
52 // Overridden from device::BluetoothAdadpter::Observer 52 // Overridden from device::BluetoothAdadpter::Observer
53 void AdapterPresentChanged(device::BluetoothAdapter* adapter,
54 bool present) override;
55
56 void AdapterPoweredChanged(device::BluetoothAdapter* adapter, 53 void AdapterPoweredChanged(device::BluetoothAdapter* adapter,
57 bool powered) override; 54 bool powered) override;
58 55
59 void DeviceAdded(device::BluetoothAdapter* adapter, 56 void DeviceAdded(device::BluetoothAdapter* adapter,
60 device::BluetoothDevice* device) override; 57 device::BluetoothDevice* device) override;
61 58
62 void DeviceChanged(device::BluetoothAdapter* adapter, 59 void DeviceChanged(device::BluetoothAdapter* adapter,
63 device::BluetoothDevice* device) override; 60 device::BluetoothDevice* device) override;
64 61
65 void DeviceAddressChanged(device::BluetoothAdapter* adapter, 62 void DeviceAddressChanged(device::BluetoothAdapter* adapter,
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 364
368 // WeakPtrFactory to use for callbacks. 365 // WeakPtrFactory to use for callbacks.
369 base::WeakPtrFactory<ArcBluetoothBridge> weak_factory_; 366 base::WeakPtrFactory<ArcBluetoothBridge> weak_factory_;
370 367
371 DISALLOW_COPY_AND_ASSIGN(ArcBluetoothBridge); 368 DISALLOW_COPY_AND_ASSIGN(ArcBluetoothBridge);
372 }; 369 };
373 370
374 } // namespace arc 371 } // namespace arc
375 372
376 #endif // COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_ 373 #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