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_WIN_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 18 matching lines...) Expand all Loading... |
29 class BluetoothDevice; | 29 class BluetoothDevice; |
30 | 30 |
31 class BluetoothAdapterWin : public BluetoothAdapter, | 31 class BluetoothAdapterWin : public BluetoothAdapter, |
32 public BluetoothTaskManagerWin::Observer { | 32 public BluetoothTaskManagerWin::Observer { |
33 public: | 33 public: |
34 typedef base::Callback<void()> InitCallback; | 34 typedef base::Callback<void()> InitCallback; |
35 | 35 |
36 // BluetoothAdapter override | 36 // BluetoothAdapter override |
37 virtual void AddObserver(BluetoothAdapter::Observer* observer) OVERRIDE; | 37 virtual void AddObserver(BluetoothAdapter::Observer* observer) OVERRIDE; |
38 virtual void RemoveObserver(BluetoothAdapter::Observer* observer) OVERRIDE; | 38 virtual void RemoveObserver(BluetoothAdapter::Observer* observer) OVERRIDE; |
39 virtual std::string address() const OVERRIDE; | 39 virtual std::string GetAddress() const OVERRIDE; |
40 virtual std::string name() const OVERRIDE; | 40 virtual std::string GetName() const OVERRIDE; |
41 virtual bool IsInitialized() const OVERRIDE; | 41 virtual bool IsInitialized() const OVERRIDE; |
42 virtual bool IsPresent() const OVERRIDE; | 42 virtual bool IsPresent() const OVERRIDE; |
43 virtual bool IsPowered() const OVERRIDE; | 43 virtual bool IsPowered() const OVERRIDE; |
44 virtual void SetPowered( | 44 virtual void SetPowered( |
45 bool powered, | 45 bool powered, |
46 const base::Closure& callback, | 46 const base::Closure& callback, |
47 const ErrorCallback& error_callback) OVERRIDE; | 47 const ErrorCallback& error_callback) OVERRIDE; |
48 virtual bool IsDiscovering() const OVERRIDE; | 48 virtual bool IsDiscovering() const OVERRIDE; |
49 | 49 |
50 virtual void StartDiscovering( | 50 virtual void StartDiscovering( |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 // NOTE: This should remain the last member so it'll be destroyed and | 111 // NOTE: This should remain the last member so it'll be destroyed and |
112 // invalidate its weak pointers before any other members are destroyed. | 112 // invalidate its weak pointers before any other members are destroyed. |
113 base::WeakPtrFactory<BluetoothAdapterWin> weak_ptr_factory_; | 113 base::WeakPtrFactory<BluetoothAdapterWin> weak_ptr_factory_; |
114 | 114 |
115 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterWin); | 115 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterWin); |
116 }; | 116 }; |
117 | 117 |
118 } // namespace device | 118 } // namespace device |
119 | 119 |
120 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ | 120 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_WIN_H_ |
OLD | NEW |