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_CHROMEOS_EXPERIMENTAL_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_EXPERIMENTAL_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_EXPERIMENTAL_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_EXPERIMENTAL_H_ |
youngki
2013/04/02 12:30:31
Do we still need this file since we are going to c
keybuk
2013/04/02 19:03:09
discussed renaming offline, will address in a new
| |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
11 #include "device/bluetooth/bluetooth_adapter.h" | 11 #include "device/bluetooth/bluetooth_adapter.h" |
12 | 12 |
13 namespace device { | 13 namespace device { |
14 | 14 |
15 class BluetoothAdapterFactory; | 15 class BluetoothAdapterFactory; |
16 | 16 |
17 } // namespace device | 17 } // namespace device |
18 | 18 |
19 namespace chromeos { | 19 namespace chromeos { |
20 | 20 |
21 // The BluetoothAdapterChromeOSExperimental class is an alternate implementation | 21 // The BluetoothAdapterChromeOSExperimental class is an alternate implementation |
22 // of BluetoothAdapter for the Chrome OS platform using the Bluetooth Smart | 22 // of BluetoothAdapter for the Chrome OS platform using the Bluetooth Smart |
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 BluetoothAdapterChromeOSExperimental | 25 class BluetoothAdapterChromeOSExperimental |
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; | |
34 virtual std::string name() const OVERRIDE; | |
33 virtual bool IsInitialized() const OVERRIDE; | 35 virtual bool IsInitialized() const OVERRIDE; |
34 virtual bool IsPresent() const OVERRIDE; | 36 virtual bool IsPresent() const OVERRIDE; |
35 virtual bool IsPowered() const OVERRIDE; | 37 virtual bool IsPowered() const OVERRIDE; |
36 virtual void SetPowered( | 38 virtual void SetPowered( |
37 bool powered, | 39 bool powered, |
38 const base::Closure& callback, | 40 const base::Closure& callback, |
39 const ErrorCallback& error_callback) OVERRIDE; | 41 const ErrorCallback& error_callback) OVERRIDE; |
40 virtual bool IsDiscovering() const OVERRIDE; | 42 virtual bool IsDiscovering() const OVERRIDE; |
41 virtual void StartDiscovering( | 43 virtual void StartDiscovering( |
42 const base::Closure& callback, | 44 const base::Closure& callback, |
(...skipping 15 matching lines...) Expand all Loading... | |
58 // 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 |
59 // invalidate its weak pointers before any other members are destroyed. | 61 // invalidate its weak pointers before any other members are destroyed. |
60 base::WeakPtrFactory<BluetoothAdapterChromeOSExperimental> weak_ptr_factory_; | 62 base::WeakPtrFactory<BluetoothAdapterChromeOSExperimental> weak_ptr_factory_; |
61 | 63 |
62 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterChromeOSExperimental); | 64 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterChromeOSExperimental); |
63 }; | 65 }; |
64 | 66 |
65 } // namespace chromeos | 67 } // namespace chromeos |
66 | 68 |
67 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_EXPERIMENTAL_H_ | 69 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_EXPERIMENTAL_H_ |
OLD | NEW |