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

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

Issue 2861533004: Implement chrome.bluetoothLowEnergy.resetAdvertising(). (Closed)
Patch Set: Implement chrome.bluetoothLowEnergy.resetAllAdvertisements(). Created 3 years, 5 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_FAKE_BLUETOOTH_LE_ADVERTISING_MANAGER_CLIENT_H_ 5 #ifndef DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_LE_ADVERTISING_MANAGER_CLIENT_H_
6 #define DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_LE_ADVERTISING_MANAGER_CLIENT_H_ 6 #define DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_LE_ADVERTISING_MANAGER_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 const dbus::ObjectPath& advertisement_object_path, 46 const dbus::ObjectPath& advertisement_object_path,
47 const base::Closure& callback, 47 const base::Closure& callback,
48 const ErrorCallback& error_callback) override; 48 const ErrorCallback& error_callback) override;
49 49
50 void SetAdvertisingInterval(const dbus::ObjectPath& manager_object_path, 50 void SetAdvertisingInterval(const dbus::ObjectPath& manager_object_path,
51 uint16_t min_interval_ms, 51 uint16_t min_interval_ms,
52 uint16_t max_interval_ms, 52 uint16_t max_interval_ms,
53 const base::Closure& callback, 53 const base::Closure& callback,
54 const ErrorCallback& error_callback) override; 54 const ErrorCallback& error_callback) override;
55 55
56 void ResetAdvertising(const dbus::ObjectPath& manager_object_path,
57 const base::Closure& callback,
58 const ErrorCallback& error_callback) override;
59
56 // Register, unregister and retrieve pointers to profile server providers. 60 // Register, unregister and retrieve pointers to profile server providers.
57 void RegisterAdvertisementServiceProvider( 61 void RegisterAdvertisementServiceProvider(
58 FakeBluetoothLEAdvertisementServiceProvider* service_provider); 62 FakeBluetoothLEAdvertisementServiceProvider* service_provider);
59 void UnregisterAdvertisementServiceProvider( 63 void UnregisterAdvertisementServiceProvider(
60 FakeBluetoothLEAdvertisementServiceProvider* service_provider); 64 FakeBluetoothLEAdvertisementServiceProvider* service_provider);
61 FakeBluetoothLEAdvertisementServiceProvider* GetAdvertisementServiceProvider( 65 FakeBluetoothLEAdvertisementServiceProvider* GetAdvertisementServiceProvider(
62 const std::string& uuid); 66 const std::string& uuid);
63 67
64 int currently_registered() { return currently_registered_.size(); } 68 int currently_registered() { return currently_registered_.size(); }
65 69
(...skipping 11 matching lines...) Expand all
77 81
78 // Holds currently registered advertisements. 82 // Holds currently registered advertisements.
79 std::vector<dbus::ObjectPath> currently_registered_; 83 std::vector<dbus::ObjectPath> currently_registered_;
80 84
81 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothLEAdvertisingManagerClient); 85 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothLEAdvertisingManagerClient);
82 }; 86 };
83 87
84 } // namespace bluez 88 } // namespace bluez
85 89
86 #endif // DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_LE_ADVERTISING_MANAGER_CLIENT_H_ 90 #endif // DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_LE_ADVERTISING_MANAGER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698