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

Side by Side Diff: chrome/browser/chromeos/bluetooth/bluetooth_adapter.h

Issue 10831360: bluetooth: Improve testability (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: corect speling oof received Created 8 years, 4 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 | « no previous file | chrome/browser/chromeos/bluetooth/bluetooth_device.h » ('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 CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_ADAPTER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_ADAPTER_H_
6 #define CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_ADAPTER_H_ 6 #define CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_ADAPTER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 15 matching lines...) Expand all
26 // The BluetoothAdapter class represents a local Bluetooth adapter which 26 // The BluetoothAdapter class represents a local Bluetooth adapter which
27 // may be used to interact with remote Bluetooth devices. As well as 27 // may be used to interact with remote Bluetooth devices. As well as
28 // providing support for determining whether an adapter is present, and 28 // providing support for determining whether an adapter is present, and
29 // whether the radio is powered, this class also provides support for 29 // whether the radio is powered, this class also provides support for
30 // obtaining the list of remote devices known to the adapter, discovering 30 // obtaining the list of remote devices known to the adapter, discovering
31 // new devices, and providing notification of updates to device information. 31 // new devices, and providing notification of updates to device information.
32 // 32 //
33 // The class may be instantiated for either a specific adapter, or for the 33 // The class may be instantiated for either a specific adapter, or for the
34 // generic "default adapter" which may change depending on availability. 34 // generic "default adapter" which may change depending on availability.
35 class BluetoothAdapter : public base::RefCounted<BluetoothAdapter>, 35 class BluetoothAdapter : public base::RefCounted<BluetoothAdapter>,
36 private BluetoothManagerClient::Observer, 36 public BluetoothManagerClient::Observer,
37 private BluetoothAdapterClient::Observer, 37 public BluetoothAdapterClient::Observer,
38 private BluetoothDeviceClient::Observer { 38 public BluetoothDeviceClient::Observer {
39 public: 39 public:
40 // Interface for observing changes from bluetooth adapters. 40 // Interface for observing changes from bluetooth adapters.
41 class Observer { 41 class Observer {
42 public: 42 public:
43 virtual ~Observer() {} 43 virtual ~Observer() {}
44 44
45 // Called when the presence of the adapter |adapter| changes, when 45 // Called when the presence of the adapter |adapter| changes, when
46 // |present| is true the adapter is now present, false means the adapter 46 // |present| is true the adapter is now present, false means the adapter
47 // has been removed from the system. 47 // has been removed from the system.
48 virtual void AdapterPresentChanged(BluetoothAdapter* adapter, 48 virtual void AdapterPresentChanged(BluetoothAdapter* adapter,
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 // instance. 327 // instance.
328 typedef std::map<const std::string, BluetoothDevice*> DevicesMap; 328 typedef std::map<const std::string, BluetoothDevice*> DevicesMap;
329 DevicesMap devices_; 329 DevicesMap devices_;
330 330
331 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapter); 331 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapter);
332 }; 332 };
333 333
334 } // namespace chromeos 334 } // namespace chromeos
335 335
336 #endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_ADAPTER_H_ 336 #endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_ADAPTER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/bluetooth/bluetooth_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698