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

Side by Side Diff: device/bluetooth/bluez/bluetooth_service_record_bluez.h

Issue 2542903002: device: Cleanup class/struct forward declarations (Closed)
Patch Set: Created 4 years 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_BLUEZ_BLUETOOTH_SERVICE_RECORD_BLUEZ_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_SERVICE_RECORD_BLUEZ_H_
6 #define DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_SERVICE_RECORD_BLUEZ_H_ 6 #define DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_SERVICE_RECORD_BLUEZ_H_
7 7
8 #include <cstdint> 8 #include <cstdint>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "device/bluetooth/bluetooth_export.h" 13 #include "device/bluetooth/bluetooth_export.h"
14 #include "device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.h" 14 #include "device/bluetooth/bluez/bluetooth_service_attribute_value_bluez.h"
15 15
16 namespace base {
17 class Value;
18 }
19
20 namespace bluez { 16 namespace bluez {
21 17
22 class DEVICE_BLUETOOTH_EXPORT BluetoothServiceRecordBlueZ { 18 class DEVICE_BLUETOOTH_EXPORT BluetoothServiceRecordBlueZ {
23 public: 19 public:
24 // Possible types of errors raised when creating, removing or getting service 20 // Possible types of errors raised when creating, removing or getting service
25 // records. 21 // records.
26 enum ErrorCode { 22 enum ErrorCode {
27 ERROR_ADAPTER_NOT_READY, 23 ERROR_ADAPTER_NOT_READY,
28 ERROR_RECORD_ALREADY_EXISTS, 24 ERROR_RECORD_ALREADY_EXISTS,
29 ERROR_RECORD_DOES_NOT_EXIST, 25 ERROR_RECORD_DOES_NOT_EXIST,
(...skipping 21 matching lines...) Expand all
51 // otherwise. 47 // otherwise.
52 bool IsAttributePresented(uint16_t id); 48 bool IsAttributePresented(uint16_t id);
53 49
54 private: 50 private:
55 std::map<uint16_t, BluetoothServiceAttributeValueBlueZ> attributes_; 51 std::map<uint16_t, BluetoothServiceAttributeValueBlueZ> attributes_;
56 }; 52 };
57 53
58 } // namespace bluez 54 } // namespace bluez
59 55
60 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_SERVICE_RECORD_BLUEZ_H_ 56 #endif // DEVICE_BLUETOOTH_BLUEZ_BLUETOOTH_SERVICE_RECORD_BLUEZ_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluez/bluetooth_remote_gatt_service_bluez.h ('k') | device/bluetooth/dbus/bluez_dbus_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698