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

Side by Side Diff: components/arc/bluetooth/arc_bluetooth_bridge.h

Issue 2297903002: arc: bluetooth: Implement set discoverable state (Closed)
Patch Set: Created 4 years, 3 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 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 COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_ 5 #ifndef COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_
6 #define COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_ 6 #define COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 void OnStopLEListenDone(const StopLEListenCallback& callback); 304 void OnStopLEListenDone(const StopLEListenCallback& callback);
305 void OnStopLEListenError( 305 void OnStopLEListenError(
306 const StopLEListenCallback& callback, 306 const StopLEListenCallback& callback,
307 device::BluetoothAdvertisement::ErrorCode error_code); 307 device::BluetoothAdvertisement::ErrorCode error_code);
308 308
309 void OnGattNotifyStartDone( 309 void OnGattNotifyStartDone(
310 const RegisterForGattNotificationCallback& callback, 310 const RegisterForGattNotificationCallback& callback,
311 const std::string char_string_id, 311 const std::string char_string_id,
312 std::unique_ptr<device::BluetoothGattNotifySession> notify_session); 312 std::unique_ptr<device::BluetoothGattNotifySession> notify_session);
313 313
314 void OnAdapterPropertySuccess(
315 mojo::Array<mojom::BluetoothPropertyPtr> properties) const;
316 void OnAdapterPropertyError(mojom::BluetoothStatus status) const;
317
314 private: 318 private:
315 mojo::Array<mojom::BluetoothPropertyPtr> GetDeviceProperties( 319 mojo::Array<mojom::BluetoothPropertyPtr> GetDeviceProperties(
316 mojom::BluetoothPropertyType type, 320 mojom::BluetoothPropertyType type,
317 device::BluetoothDevice* device) const; 321 device::BluetoothDevice* device) const;
318 mojo::Array<mojom::BluetoothPropertyPtr> GetAdapterProperties( 322 mojo::Array<mojom::BluetoothPropertyPtr> GetAdapterProperties(
319 mojom::BluetoothPropertyType type) const; 323 mojom::BluetoothPropertyType type) const;
320 mojo::Array<mojom::BluetoothAdvertisingDataPtr> GetAdvertisingData( 324 mojo::Array<mojom::BluetoothAdvertisingDataPtr> GetAdvertisingData(
321 device::BluetoothDevice* device) const; 325 device::BluetoothDevice* device) const;
322 326
323 void SendCachedDevicesFound() const; 327 void SendCachedDevicesFound() const;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 389
386 // WeakPtrFactory to use for callbacks. 390 // WeakPtrFactory to use for callbacks.
387 base::WeakPtrFactory<ArcBluetoothBridge> weak_factory_; 391 base::WeakPtrFactory<ArcBluetoothBridge> weak_factory_;
388 392
389 DISALLOW_COPY_AND_ASSIGN(ArcBluetoothBridge); 393 DISALLOW_COPY_AND_ASSIGN(ArcBluetoothBridge);
390 }; 394 };
391 395
392 } // namespace arc 396 } // namespace arc
393 397
394 #endif // COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_ 398 #endif // COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_
OLDNEW
« no previous file with comments | « no previous file | components/arc/bluetooth/arc_bluetooth_bridge.cc » ('j') | components/arc/bluetooth/arc_bluetooth_bridge.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698