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

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

Issue 2861533004: Implement chrome.bluetoothLowEnergy.resetAdvertising(). (Closed)
Patch Set: Implement chrome.bluetoothLowEnergy.resetAllAdvertisements(). Created 3 years, 6 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 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 <cstdint>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 const ErrorCallback& error_callback) = 0; 69 const ErrorCallback& error_callback) = 0;
70 70
71 // Set's the advertising interval. 71 // Set's the advertising interval.
72 virtual void SetAdvertisingInterval( 72 virtual void SetAdvertisingInterval(
73 const dbus::ObjectPath& manager_object_path, 73 const dbus::ObjectPath& manager_object_path,
74 uint16_t min_interval_ms, 74 uint16_t min_interval_ms,
75 uint16_t max_interval_ms, 75 uint16_t max_interval_ms,
76 const base::Closure& callback, 76 const base::Closure& callback,
77 const ErrorCallback& error_callback) = 0; 77 const ErrorCallback& error_callback) = 0;
78 78
79 // Resets advertising.
80 virtual void ResetAdvertising(const dbus::ObjectPath& manager_object_path,
rkc 2017/06/13 19:02:31 This method isn't getting tested from anywhere. Ca
Sonny Sasaka 2017/06/15 23:19:12 Actually I wrote a browser test that triggers Rese
81 const base::Closure& callback,
82 const ErrorCallback& error_callback) = 0;
83
79 // Creates the instance. 84 // Creates the instance.
80 static BluetoothLEAdvertisingManagerClient* Create(); 85 static BluetoothLEAdvertisingManagerClient* Create();
81 86
82 // Constants used to indicate exceptional error conditions. 87 // Constants used to indicate exceptional error conditions.
83 static const char kNoResponseError[]; 88 static const char kNoResponseError[];
84 89
85 protected: 90 protected:
86 BluetoothLEAdvertisingManagerClient(); 91 BluetoothLEAdvertisingManagerClient();
87 92
88 private: 93 private:
89 DISALLOW_COPY_AND_ASSIGN(BluetoothLEAdvertisingManagerClient); 94 DISALLOW_COPY_AND_ASSIGN(BluetoothLEAdvertisingManagerClient);
90 }; 95 };
91 96
92 } // namespace bluez 97 } // namespace bluez
93 98
94 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_LE_ADVERTISING_MANAGER_CLIENT_H_ 99 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_LE_ADVERTISING_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluez/bluetooth_adapter_bluez.cc ('k') | device/bluetooth/dbus/bluetooth_le_advertising_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698