OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 : public device::BluetoothAdapter, | 35 : public device::BluetoothAdapter, |
36 public BluetoothManagerClient::Observer, | 36 public BluetoothManagerClient::Observer, |
37 public BluetoothAdapterClient::Observer, | 37 public BluetoothAdapterClient::Observer, |
38 public BluetoothDeviceClient::Observer { | 38 public BluetoothDeviceClient::Observer { |
39 public: | 39 public: |
40 // BluetoothAdapter override | 40 // BluetoothAdapter override |
41 virtual void AddObserver( | 41 virtual void AddObserver( |
42 device::BluetoothAdapter::Observer* observer) OVERRIDE; | 42 device::BluetoothAdapter::Observer* observer) OVERRIDE; |
43 virtual void RemoveObserver( | 43 virtual void RemoveObserver( |
44 device::BluetoothAdapter::Observer* observer) OVERRIDE; | 44 device::BluetoothAdapter::Observer* observer) OVERRIDE; |
45 virtual std::string address() const OVERRIDE; | 45 virtual std::string GetAddress() const OVERRIDE; |
46 virtual std::string name() const OVERRIDE; | 46 virtual std::string GetName() const OVERRIDE; |
47 virtual bool IsInitialized() const OVERRIDE; | 47 virtual bool IsInitialized() const OVERRIDE; |
48 virtual bool IsPresent() const OVERRIDE; | 48 virtual bool IsPresent() const OVERRIDE; |
49 virtual bool IsPowered() const OVERRIDE; | 49 virtual bool IsPowered() const OVERRIDE; |
50 virtual void SetPowered( | 50 virtual void SetPowered( |
51 bool powered, | 51 bool powered, |
52 const base::Closure& callback, | 52 const base::Closure& callback, |
53 const ErrorCallback& error_callback) OVERRIDE; | 53 const ErrorCallback& error_callback) OVERRIDE; |
54 virtual bool IsDiscovering() const OVERRIDE; | 54 virtual bool IsDiscovering() const OVERRIDE; |
55 virtual void StartDiscovering( | 55 virtual void StartDiscovering( |
56 const base::Closure& callback, | 56 const base::Closure& callback, |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 // Note: This should remain the last member so it'll be destroyed and | 228 // Note: This should remain the last member so it'll be destroyed and |
229 // invalidate its weak pointers before any other members are destroyed. | 229 // invalidate its weak pointers before any other members are destroyed. |
230 base::WeakPtrFactory<BluetoothAdapterChromeOS> weak_ptr_factory_; | 230 base::WeakPtrFactory<BluetoothAdapterChromeOS> weak_ptr_factory_; |
231 | 231 |
232 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterChromeOS); | 232 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterChromeOS); |
233 }; | 233 }; |
234 | 234 |
235 } // namespace chromeos | 235 } // namespace chromeos |
236 | 236 |
237 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ | 237 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ |
OLD | NEW |