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

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

Issue 12929003: Implemented BluetoothAdapterMac::AddDevices(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed the format type to unsigned long. Created 7 years, 9 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
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_DEVICE_WIN_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "device/bluetooth/bluetooth_device.h" 12 #include "device/bluetooth/bluetooth_device.h"
13 #include "device/bluetooth/bluetooth_task_manager_win.h" 13 #include "device/bluetooth/bluetooth_task_manager_win.h"
14 14
15 namespace device { 15 namespace device {
16 16
17 class BluetoothAdapterWin; 17 class BluetoothAdapterWin;
18 18
19 class BluetoothDeviceWin : public BluetoothDevice { 19 class BluetoothDeviceWin : public BluetoothDevice {
20 public: 20 public:
21 explicit BluetoothDeviceWin( 21 explicit BluetoothDeviceWin(
22 const BluetoothTaskManagerWin::DeviceState& state); 22 const BluetoothTaskManagerWin::DeviceState& state);
23 virtual ~BluetoothDeviceWin(); 23 virtual ~BluetoothDeviceWin();
24 24
25 void SetVisible(bool visible);
26
27 // BluetoothDevice override 25 // BluetoothDevice override
28 virtual bool IsPaired() const OVERRIDE; 26 virtual bool IsPaired() const OVERRIDE;
29 virtual const ServiceList& GetServices() const OVERRIDE; 27 virtual const ServiceList& GetServices() const OVERRIDE;
30 virtual void GetServiceRecords( 28 virtual void GetServiceRecords(
31 const ServiceRecordsCallback& callback, 29 const ServiceRecordsCallback& callback,
32 const ErrorCallback& error_callback) OVERRIDE; 30 const ErrorCallback& error_callback) OVERRIDE;
33 virtual void ProvidesServiceWithName( 31 virtual void ProvidesServiceWithName(
34 const std::string& name, 32 const std::string& name,
35 const ProvidesServiceCallback& callback) OVERRIDE; 33 const ProvidesServiceCallback& callback) OVERRIDE;
36 virtual bool ExpectingPinCode() const OVERRIDE; 34 virtual bool ExpectingPinCode() const OVERRIDE;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // Used to compare the devices. 72 // Used to compare the devices.
75 uint32 device_fingerprint_; 73 uint32 device_fingerprint_;
76 ServiceRecordList service_record_list_; 74 ServiceRecordList service_record_list_;
77 75
78 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceWin); 76 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceWin);
79 }; 77 };
80 78
81 } // namespace device 79 } // namespace device
82 80
83 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ 81 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698