Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Side by Side Diff: device/bluetooth/bluetooth_adapter_win.h

Issue 13416005: Bluetooth: clean up BluetoothDevice (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More win visible fixes Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « device/bluetooth/bluetooth_adapter_mac.mm ('k') | device/bluetooth/bluetooth_adapter_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_adapter_mac.mm ('k') | device/bluetooth/bluetooth_adapter_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698