OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_EXPERIMENTAL_CHROMEOS_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_EXPERIMENTAL_CHROMEOS_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_EXPERIMENTAL_CHROMEOS_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_EXPERIMENTAL_CHROMEOS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 // capable backend. It will become the sole implementation for Chrome OS, and | 23 // capable backend. It will become the sole implementation for Chrome OS, and |
24 // be renamed to BluetoothAdapterChromeOS, once the backend is switched, | 24 // be renamed to BluetoothAdapterChromeOS, once the backend is switched, |
25 class BluetoothAdapterExperimentalChromeOS | 25 class BluetoothAdapterExperimentalChromeOS |
26 : public device::BluetoothAdapter { | 26 : public device::BluetoothAdapter { |
27 public: | 27 public: |
28 // BluetoothAdapter override | 28 // BluetoothAdapter override |
29 virtual void AddObserver( | 29 virtual void AddObserver( |
30 device::BluetoothAdapter::Observer* observer) OVERRIDE; | 30 device::BluetoothAdapter::Observer* observer) OVERRIDE; |
31 virtual void RemoveObserver( | 31 virtual void RemoveObserver( |
32 device::BluetoothAdapter::Observer* observer) OVERRIDE; | 32 device::BluetoothAdapter::Observer* observer) OVERRIDE; |
33 virtual std::string address() const OVERRIDE; | 33 virtual std::string GetAddress() const OVERRIDE; |
34 virtual std::string name() const OVERRIDE; | 34 virtual std::string GetName() const OVERRIDE; |
35 virtual bool IsInitialized() const OVERRIDE; | 35 virtual bool IsInitialized() const OVERRIDE; |
36 virtual bool IsPresent() const OVERRIDE; | 36 virtual bool IsPresent() const OVERRIDE; |
37 virtual bool IsPowered() const OVERRIDE; | 37 virtual bool IsPowered() const OVERRIDE; |
38 virtual void SetPowered( | 38 virtual void SetPowered( |
39 bool powered, | 39 bool powered, |
40 const base::Closure& callback, | 40 const base::Closure& callback, |
41 const ErrorCallback& error_callback) OVERRIDE; | 41 const ErrorCallback& error_callback) OVERRIDE; |
42 virtual bool IsDiscovering() const OVERRIDE; | 42 virtual bool IsDiscovering() const OVERRIDE; |
43 virtual void StartDiscovering( | 43 virtual void StartDiscovering( |
44 const base::Closure& callback, | 44 const base::Closure& callback, |
(...skipping 15 matching lines...) Expand all Loading... |
60 // Note: This should remain the last member so it'll be destroyed and | 60 // Note: This should remain the last member so it'll be destroyed and |
61 // invalidate its weak pointers before any other members are destroyed. | 61 // invalidate its weak pointers before any other members are destroyed. |
62 base::WeakPtrFactory<BluetoothAdapterExperimentalChromeOS> weak_ptr_factory_; | 62 base::WeakPtrFactory<BluetoothAdapterExperimentalChromeOS> weak_ptr_factory_; |
63 | 63 |
64 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterExperimentalChromeOS); | 64 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterExperimentalChromeOS); |
65 }; | 65 }; |
66 | 66 |
67 } // namespace chromeos | 67 } // namespace chromeos |
68 | 68 |
69 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_EXPERIMENTAL_CHROMEOS_H_ | 69 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_EXPERIMENTAL_CHROMEOS_H_ |
OLD | NEW |