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

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

Issue 1472223002: Review comments from https://codereview.chromium.org/1415573014/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_GATT_CONNECTION_BLUEZ_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_GATT_CONNECTION_BLUEZ_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_GATT_CONNECTION_BLUEZ_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_GATT_CONNECTION_BLUEZ_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "dbus/object_path.h" 13 #include "dbus/object_path.h"
14 #include "device/bluetooth/bluetooth_gatt_connection.h" 14 #include "device/bluetooth/bluetooth_gatt_connection.h"
15 #include "device/bluetooth/dbus/bluetooth_device_client.h" 15 #include "device/bluetooth/dbus/bluetooth_device_client.h"
16 16
17 namespace device { 17 namespace device {
18 18
19 class BluetoothAdapter; 19 class BluetoothAdapter;
20 20
21 } // namespace device 21 } // namespace device
22 22
23 namespace bluez { 23 namespace bluez {
24 24
25 // BluetoothGattConnectionBlueZ implements BluetoothGattConnection for the 25 // BluetoothGattConnectionBlueZ implements BluetoothGattConnection for
26 // Chrome OS platform. 26 // platforms that use BlueZ.
27 class BluetoothGattConnectionBlueZ 27 class BluetoothGattConnectionBlueZ
28 : public device::BluetoothGattConnection, 28 : public device::BluetoothGattConnection,
29 public bluez::BluetoothDeviceClient::Observer { 29 public bluez::BluetoothDeviceClient::Observer {
30 public: 30 public:
31 explicit BluetoothGattConnectionBlueZ( 31 explicit BluetoothGattConnectionBlueZ(
32 scoped_refptr<device::BluetoothAdapter> adapter, 32 scoped_refptr<device::BluetoothAdapter> adapter,
33 const std::string& device_address, 33 const std::string& device_address,
34 const dbus::ObjectPath& object_path); 34 const dbus::ObjectPath& object_path);
35 ~BluetoothGattConnectionBlueZ() override; 35 ~BluetoothGattConnectionBlueZ() override;
36 36
(...skipping 13 matching lines...) Expand all
50 // D-Bus object path of the underlying device. This is used to filter observer 50 // D-Bus object path of the underlying device. This is used to filter observer
51 // events. 51 // events.
52 dbus::ObjectPath object_path_; 52 dbus::ObjectPath object_path_;
53 53
54 DISALLOW_COPY_AND_ASSIGN(BluetoothGattConnectionBlueZ); 54 DISALLOW_COPY_AND_ASSIGN(BluetoothGattConnectionBlueZ);
55 }; 55 };
56 56
57 } // namespace bluez 57 } // namespace bluez
58 58
59 #endif // DEVICE_BLUETOOTH_BLUETOOTH_GATT_CONNECTION_BLUEZ_H_ 59 #endif // DEVICE_BLUETOOTH_BLUETOOTH_GATT_CONNECTION_BLUEZ_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_bluez_unittest.cc ('k') | device/bluetooth/bluetooth_gatt_notify_session_bluez.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698