| 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_MAC_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_ |
| 7 | 7 |
| 8 #include <IOKit/IOReturn.h> | 8 #include <IOKit/IOReturn.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 namespace device { | 37 namespace device { |
| 38 | 38 |
| 39 class BluetoothAdapterMacTest; | 39 class BluetoothAdapterMacTest; |
| 40 | 40 |
| 41 class BluetoothAdapterMac : public BluetoothAdapter { | 41 class BluetoothAdapterMac : public BluetoothAdapter { |
| 42 public: | 42 public: |
| 43 // BluetoothAdapter override | 43 // BluetoothAdapter override |
| 44 virtual void AddObserver(BluetoothAdapter::Observer* observer) OVERRIDE; | 44 virtual void AddObserver(BluetoothAdapter::Observer* observer) OVERRIDE; |
| 45 virtual void RemoveObserver(BluetoothAdapter::Observer* observer) OVERRIDE; | 45 virtual void RemoveObserver(BluetoothAdapter::Observer* observer) OVERRIDE; |
| 46 virtual std::string address() const OVERRIDE; | 46 virtual std::string GetAddress() const OVERRIDE; |
| 47 virtual std::string name() const OVERRIDE; | 47 virtual std::string GetName() const OVERRIDE; |
| 48 virtual bool IsInitialized() const OVERRIDE; | 48 virtual bool IsInitialized() const OVERRIDE; |
| 49 virtual bool IsPresent() const OVERRIDE; | 49 virtual bool IsPresent() const OVERRIDE; |
| 50 virtual bool IsPowered() const OVERRIDE; | 50 virtual bool IsPowered() const OVERRIDE; |
| 51 virtual void SetPowered( | 51 virtual void SetPowered( |
| 52 bool powered, | 52 bool powered, |
| 53 const base::Closure& callback, | 53 const base::Closure& callback, |
| 54 const ErrorCallback& error_callback) OVERRIDE; | 54 const ErrorCallback& error_callback) OVERRIDE; |
| 55 virtual bool IsDiscovering() const OVERRIDE; | 55 virtual bool IsDiscovering() const OVERRIDE; |
| 56 | 56 |
| 57 virtual void StartDiscovering( | 57 virtual void StartDiscovering( |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 ObserverList<BluetoothAdapter::Observer> observers_; | 131 ObserverList<BluetoothAdapter::Observer> observers_; |
| 132 | 132 |
| 133 base::WeakPtrFactory<BluetoothAdapterMac> weak_ptr_factory_; | 133 base::WeakPtrFactory<BluetoothAdapterMac> weak_ptr_factory_; |
| 134 | 134 |
| 135 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterMac); | 135 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterMac); |
| 136 }; | 136 }; |
| 137 | 137 |
| 138 } // namespace device | 138 } // namespace device |
| 139 | 139 |
| 140 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_ | 140 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_ |
| OLD | NEW |