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

Side by Side Diff: device/bluetooth/bluetooth_adapter_mac.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
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_adapter_experimental_chromeos.cc ('k') | device/bluetooth/bluetooth_adapter_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698