OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |