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

Side by Side Diff: device/bluetooth/bluetooth_adapter_chromeos.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.h ('k') | device/bluetooth/bluetooth_adapter_chromeos.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_CHROMEOS_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 24 matching lines...) Expand all
35 : public device::BluetoothAdapter, 35 : public device::BluetoothAdapter,
36 public BluetoothManagerClient::Observer, 36 public BluetoothManagerClient::Observer,
37 public BluetoothAdapterClient::Observer, 37 public BluetoothAdapterClient::Observer,
38 public BluetoothDeviceClient::Observer { 38 public BluetoothDeviceClient::Observer {
39 public: 39 public:
40 // BluetoothAdapter override 40 // BluetoothAdapter override
41 virtual void AddObserver( 41 virtual void AddObserver(
42 device::BluetoothAdapter::Observer* observer) OVERRIDE; 42 device::BluetoothAdapter::Observer* observer) OVERRIDE;
43 virtual void RemoveObserver( 43 virtual void RemoveObserver(
44 device::BluetoothAdapter::Observer* observer) OVERRIDE; 44 device::BluetoothAdapter::Observer* observer) OVERRIDE;
45 virtual std::string address() const OVERRIDE; 45 virtual std::string GetAddress() const OVERRIDE;
46 virtual std::string name() const OVERRIDE; 46 virtual std::string GetName() const OVERRIDE;
47 virtual bool IsInitialized() const OVERRIDE; 47 virtual bool IsInitialized() const OVERRIDE;
48 virtual bool IsPresent() const OVERRIDE; 48 virtual bool IsPresent() const OVERRIDE;
49 virtual bool IsPowered() const OVERRIDE; 49 virtual bool IsPowered() const OVERRIDE;
50 virtual void SetPowered( 50 virtual void SetPowered(
51 bool powered, 51 bool powered,
52 const base::Closure& callback, 52 const base::Closure& callback,
53 const ErrorCallback& error_callback) OVERRIDE; 53 const ErrorCallback& error_callback) OVERRIDE;
54 virtual bool IsDiscovering() const OVERRIDE; 54 virtual bool IsDiscovering() const OVERRIDE;
55 virtual void StartDiscovering( 55 virtual void StartDiscovering(
56 const base::Closure& callback, 56 const base::Closure& callback,
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 // Note: This should remain the last member so it'll be destroyed and 228 // Note: This should remain the last member so it'll be destroyed and
229 // invalidate its weak pointers before any other members are destroyed. 229 // invalidate its weak pointers before any other members are destroyed.
230 base::WeakPtrFactory<BluetoothAdapterChromeOS> weak_ptr_factory_; 230 base::WeakPtrFactory<BluetoothAdapterChromeOS> weak_ptr_factory_;
231 231
232 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterChromeOS); 232 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterChromeOS);
233 }; 233 };
234 234
235 } // namespace chromeos 235 } // namespace chromeos
236 236
237 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_ 237 #endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_CHROMEOS_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_adapter.h ('k') | device/bluetooth/bluetooth_adapter_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698