| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_BLUETOOTH_LE_ADVERTISING_MANAGER_CLIENT_H_ | 5 #ifndef DEVICE_BLUETOOTH_DBUS_BLUETOOTH_LE_ADVERTISING_MANAGER_CLIENT_H_ |
| 6 #define DEVICE_BLUETOOTH_DBUS_BLUETOOTH_LE_ADVERTISING_MANAGER_CLIENT_H_ | 6 #define DEVICE_BLUETOOTH_DBUS_BLUETOOTH_LE_ADVERTISING_MANAGER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <cstdint> |
| 8 #include <memory> | 9 #include <memory> |
| 9 #include <string> | 10 #include <string> |
| 10 #include <vector> | 11 #include <vector> |
| 11 | 12 |
| 12 #include "base/callback.h" | 13 #include "base/callback.h" |
| 13 #include "base/macros.h" | 14 #include "base/macros.h" |
| 14 #include "base/values.h" | 15 #include "base/values.h" |
| 15 #include "dbus/object_path.h" | 16 #include "dbus/object_path.h" |
| 16 #include "device/bluetooth/bluetooth_export.h" | 17 #include "device/bluetooth/bluetooth_export.h" |
| 17 #include "device/bluetooth/dbus/bluez_dbus_client.h" | 18 #include "device/bluetooth/dbus/bluez_dbus_client.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 const ErrorCallback& error_callback) = 0; | 61 const ErrorCallback& error_callback) = 0; |
| 61 | 62 |
| 62 // Unregisters an advertisement with the DBus object path | 63 // Unregisters an advertisement with the DBus object path |
| 63 // |advertisement_object_path| with BlueZ's advertising manager. | 64 // |advertisement_object_path| with BlueZ's advertising manager. |
| 64 virtual void UnregisterAdvertisement( | 65 virtual void UnregisterAdvertisement( |
| 65 const dbus::ObjectPath& manager_object_path, | 66 const dbus::ObjectPath& manager_object_path, |
| 66 const dbus::ObjectPath& advertisement_object_path, | 67 const dbus::ObjectPath& advertisement_object_path, |
| 67 const base::Closure& callback, | 68 const base::Closure& callback, |
| 68 const ErrorCallback& error_callback) = 0; | 69 const ErrorCallback& error_callback) = 0; |
| 69 | 70 |
| 71 // Set's the advertising interval. |
| 72 virtual void SetAdvertisingInterval( |
| 73 const dbus::ObjectPath& manager_object_path, |
| 74 uint16_t min_interval_ms, |
| 75 uint16_t max_interval_ms, |
| 76 const base::Closure& callback, |
| 77 const ErrorCallback& error_callback) = 0; |
| 78 |
| 70 // Creates the instance. | 79 // Creates the instance. |
| 71 static BluetoothLEAdvertisingManagerClient* Create(); | 80 static BluetoothLEAdvertisingManagerClient* Create(); |
| 72 | 81 |
| 73 // Constants used to indicate exceptional error conditions. | 82 // Constants used to indicate exceptional error conditions. |
| 74 static const char kNoResponseError[]; | 83 static const char kNoResponseError[]; |
| 75 | 84 |
| 76 protected: | 85 protected: |
| 77 BluetoothLEAdvertisingManagerClient(); | 86 BluetoothLEAdvertisingManagerClient(); |
| 78 | 87 |
| 79 private: | 88 private: |
| 80 DISALLOW_COPY_AND_ASSIGN(BluetoothLEAdvertisingManagerClient); | 89 DISALLOW_COPY_AND_ASSIGN(BluetoothLEAdvertisingManagerClient); |
| 81 }; | 90 }; |
| 82 | 91 |
| 83 } // namespace bluez | 92 } // namespace bluez |
| 84 | 93 |
| 85 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_LE_ADVERTISING_MANAGER_CLIENT_H_ | 94 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_LE_ADVERTISING_MANAGER_CLIENT_H_ |
| OLD | NEW |