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

Side by Side Diff: chrome/browser/chromeos/bluetooth/bluetooth_device.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
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_DEVICE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_DEVICE_H_
6 #define CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_DEVICE_H_ 6 #define CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_DEVICE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 19 matching lines...) Expand all
30 // actions that may be performed on the remove device such as pairing, 30 // actions that may be performed on the remove device such as pairing,
31 // connection and disconnection. 31 // connection and disconnection.
32 // 32 //
33 // The class is instantiated and managed by the BluetoothAdapter class 33 // The class is instantiated and managed by the BluetoothAdapter class
34 // and pointers should only be obtained from that class and not cached, 34 // and pointers should only be obtained from that class and not cached,
35 // instead use the address() method as a unique key for a device. 35 // instead use the address() method as a unique key for a device.
36 // 36 //
37 // Since the lifecycle of BluetoothDevice instances is managed by 37 // Since the lifecycle of BluetoothDevice instances is managed by
38 // BluetoothAdapter, that class rather than this provides observer methods 38 // BluetoothAdapter, that class rather than this provides observer methods
39 // for devices coming and going, as well as properties being updated. 39 // for devices coming and going, as well as properties being updated.
40 class BluetoothDevice : private BluetoothDeviceClient::Observer, 40 class BluetoothDevice : public BluetoothDeviceClient::Observer,
41 private BluetoothAgentServiceProvider::Delegate { 41 public BluetoothAgentServiceProvider::Delegate {
42 public: 42 public:
43 // Possible values that may be returned by GetDeviceType(), representing 43 // Possible values that may be returned by GetDeviceType(), representing
44 // different types of bluetooth device that we support or are aware of 44 // different types of bluetooth device that we support or are aware of
45 // decoded from the bluetooth class information. 45 // decoded from the bluetooth class information.
46 enum DeviceType { 46 enum DeviceType {
47 DEVICE_UNKNOWN, 47 DEVICE_UNKNOWN,
48 DEVICE_COMPUTER, 48 DEVICE_COMPUTER,
49 DEVICE_PHONE, 49 DEVICE_PHONE,
50 DEVICE_MODEM, 50 DEVICE_MODEM,
51 DEVICE_PERIPHERAL, 51 DEVICE_PERIPHERAL,
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 605
606 // Used to keep track of pending application connection requests. 606 // Used to keep track of pending application connection requests.
607 int connecting_applications_counter_; 607 int connecting_applications_counter_;
608 608
609 DISALLOW_COPY_AND_ASSIGN(BluetoothDevice); 609 DISALLOW_COPY_AND_ASSIGN(BluetoothDevice);
610 }; 610 };
611 611
612 } // namespace chromeos 612 } // namespace chromeos
613 613
614 #endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_DEVICE_H_ 614 #endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_DEVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/bluetooth/bluetooth_adapter.h ('k') | chrome/browser/chromeos/bluetooth/test/mock_bluetooth_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698