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

Side by Side Diff: device/bluetooth/bluetooth_adapter_chromeos.h

Issue 787953004: bluetooth: Use BluetoothAdapter in BluetoothDispatcherHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: virtual/override replaced Created 5 years, 11 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 | « device/bluetooth/bluetooth_adapter.h ('k') | device/bluetooth/test/mock_bluetooth_adapter.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 29 matching lines...) Expand all
40 class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterChromeOS 40 class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterChromeOS
41 : public device::BluetoothAdapter, 41 : public device::BluetoothAdapter,
42 public chromeos::BluetoothAdapterClient::Observer, 42 public chromeos::BluetoothAdapterClient::Observer,
43 public chromeos::BluetoothDeviceClient::Observer, 43 public chromeos::BluetoothDeviceClient::Observer,
44 public chromeos::BluetoothInputClient::Observer, 44 public chromeos::BluetoothInputClient::Observer,
45 public chromeos::BluetoothAgentServiceProvider::Delegate { 45 public chromeos::BluetoothAgentServiceProvider::Delegate {
46 public: 46 public:
47 static base::WeakPtr<BluetoothAdapter> CreateAdapter(); 47 static base::WeakPtr<BluetoothAdapter> CreateAdapter();
48 48
49 // BluetoothAdapter: 49 // BluetoothAdapter:
50 void Shutdown(); 50 void Shutdown() override;
51 void DeleteOnCorrectThread() const override; 51 void DeleteOnCorrectThread() const override;
52 void AddObserver(device::BluetoothAdapter::Observer* observer) override; 52 void AddObserver(device::BluetoothAdapter::Observer* observer) override;
53 void RemoveObserver(device::BluetoothAdapter::Observer* observer) override; 53 void RemoveObserver(device::BluetoothAdapter::Observer* observer) override;
54 std::string GetAddress() const override; 54 std::string GetAddress() const override;
55 std::string GetName() const override; 55 std::string GetName() const override;
56 void SetName(const std::string& name, 56 void SetName(const std::string& name,
57 const base::Closure& callback, 57 const base::Closure& callback,
58 const ErrorCallback& error_callback) override; 58 const ErrorCallback& error_callback) override;
59 bool IsInitialized() const override; 59 bool IsInitialized() const override;
60 bool IsPresent() const override; 60 bool IsPresent() const override;
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 // Note: This should remain the last member so it'll be destroyed and 278 // Note: This should remain the last member so it'll be destroyed and
279 // invalidate its weak pointers before any other members are destroyed. 279 // invalidate its weak pointers before any other members are destroyed.
280 base::WeakPtrFactory<BluetoothAdapterChromeOS> weak_ptr_factory_; 280 base::WeakPtrFactory<BluetoothAdapterChromeOS> weak_ptr_factory_;
281 281
282 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterChromeOS); 282 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterChromeOS);
283 }; 283 };
284 284
285 } // namespace chromeos 285 } // namespace chromeos
286 286
287 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ 287 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_adapter.h ('k') | device/bluetooth/test/mock_bluetooth_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698