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

Side by Side Diff: device/bluetooth/dbus/fake_bluetooth_gatt_descriptor_client.h

Issue 1542163002: Switch to standard integer types in device/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win Created 4 years, 12 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_DBUS_FAKE_BLUETOOTH_GATT_DESCRIPTOR_CLIENT_H_ 5 #ifndef DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_GATT_DESCRIPTOR_CLIENT_H_
6 #define DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_GATT_DESCRIPTOR_CLIENT_H_ 6 #define DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_GATT_DESCRIPTOR_CLIENT_H_
7 7
8 #include <stdint.h>
9
8 #include <map> 10 #include <map>
9 #include <string> 11 #include <string>
10 12
11 #include "base/macros.h" 13 #include "base/macros.h"
12 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
13 #include "base/observer_list.h" 15 #include "base/observer_list.h"
14 #include "dbus/object_path.h" 16 #include "dbus/object_path.h"
15 #include "device/bluetooth/bluetooth_export.h" 17 #include "device/bluetooth/bluetooth_export.h"
16 #include "device/bluetooth/dbus/bluetooth_gatt_descriptor_client.h" 18 #include "device/bluetooth/dbus/bluetooth_gatt_descriptor_client.h"
17 19
(...skipping 25 matching lines...) Expand all
43 45
44 // BluetoothGattDescriptorClient overrides. 46 // BluetoothGattDescriptorClient overrides.
45 void AddObserver(Observer* observer) override; 47 void AddObserver(Observer* observer) override;
46 void RemoveObserver(Observer* observer) override; 48 void RemoveObserver(Observer* observer) override;
47 std::vector<dbus::ObjectPath> GetDescriptors() override; 49 std::vector<dbus::ObjectPath> GetDescriptors() override;
48 Properties* GetProperties(const dbus::ObjectPath& object_path) override; 50 Properties* GetProperties(const dbus::ObjectPath& object_path) override;
49 void ReadValue(const dbus::ObjectPath& object_path, 51 void ReadValue(const dbus::ObjectPath& object_path,
50 const ValueCallback& callback, 52 const ValueCallback& callback,
51 const ErrorCallback& error_callback) override; 53 const ErrorCallback& error_callback) override;
52 void WriteValue(const dbus::ObjectPath& object_path, 54 void WriteValue(const dbus::ObjectPath& object_path,
53 const std::vector<uint8>& value, 55 const std::vector<uint8_t>& value,
54 const base::Closure& callback, 56 const base::Closure& callback,
55 const ErrorCallback& error_callback) override; 57 const ErrorCallback& error_callback) override;
56 58
57 // Makes the descriptor with the UUID |uuid| visible under the characteristic 59 // Makes the descriptor with the UUID |uuid| visible under the characteristic
58 // with object path |characteristic_path|. Descriptor object paths are 60 // with object path |characteristic_path|. Descriptor object paths are
59 // hierarchical to their characteristics. |uuid| must belong to a descriptor 61 // hierarchical to their characteristics. |uuid| must belong to a descriptor
60 // for which there is a constant defined below, otherwise this method has no 62 // for which there is a constant defined below, otherwise this method has no
61 // effect. Returns the object path of the created descriptor. In the no-op 63 // effect. Returns the object path of the created descriptor. In the no-op
62 // case, returns an invalid path. 64 // case, returns an invalid path.
63 dbus::ObjectPath ExposeDescriptor(const dbus::ObjectPath& characteristic_path, 65 dbus::ObjectPath ExposeDescriptor(const dbus::ObjectPath& characteristic_path,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // Note: This should remain the last member so it'll be destroyed and 97 // Note: This should remain the last member so it'll be destroyed and
96 // invalidate its weak pointers before any other members are destroyed. 98 // invalidate its weak pointers before any other members are destroyed.
97 base::WeakPtrFactory<FakeBluetoothGattDescriptorClient> weak_ptr_factory_; 99 base::WeakPtrFactory<FakeBluetoothGattDescriptorClient> weak_ptr_factory_;
98 100
99 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothGattDescriptorClient); 101 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothGattDescriptorClient);
100 }; 102 };
101 103
102 } // namespace bluez 104 } // namespace bluez
103 105
104 #endif // DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_GATT_DESCRIPTOR_CLIENT_H_ 106 #endif // DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_GATT_DESCRIPTOR_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698