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

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

Issue 13224004: Bluetooth: remove private members from BluetoothAdapter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comments 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 (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_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 12 matching lines...) Expand all
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
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_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_adapter_chromeos.cc ('k') | device/bluetooth/bluetooth_adapter_chromeos_experimental.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698