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

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

Issue 2319953002: arc: bluetooth: Implement socket opening (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
« no previous file with comments | « no previous file | components/arc/bluetooth/arc_bluetooth_bridge.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 // Delete a local service. 255 // Delete a local service.
256 void DeleteService(int32_t service_handle, 256 void DeleteService(int32_t service_handle,
257 const DeleteServiceCallback& callback) override; 257 const DeleteServiceCallback& callback) override;
258 // Send value indication to a remote device. 258 // Send value indication to a remote device.
259 void SendIndication(int32_t attribute_handle, 259 void SendIndication(int32_t attribute_handle,
260 mojom::BluetoothAddressPtr address, 260 mojom::BluetoothAddressPtr address,
261 bool confirm, 261 bool confirm,
262 mojo::Array<uint8_t> value, 262 mojo::Array<uint8_t> value,
263 const SendIndicationCallback& callback) override; 263 const SendIndicationCallback& callback) override;
264 264
265 void OpenBluetoothSocket(
266 const OpenBluetoothSocketCallback& callback) override;
267
265 // Chrome observer callbacks 268 // Chrome observer callbacks
266 void OnPoweredOn( 269 void OnPoweredOn(
267 const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const; 270 const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const;
268 void OnPoweredOff( 271 void OnPoweredOff(
269 const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const; 272 const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const;
270 void OnPoweredError( 273 void OnPoweredError(
271 const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const; 274 const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const;
272 void OnDiscoveryStarted( 275 void OnDiscoveryStarted(
273 std::unique_ptr<device::BluetoothDiscoverySession> session); 276 std::unique_ptr<device::BluetoothDiscoverySession> session);
274 void OnDiscoveryStopped(); 277 void OnDiscoveryStopped();
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 384
382 // WeakPtrFactory to use for callbacks. 385 // WeakPtrFactory to use for callbacks.
383 base::WeakPtrFactory<ArcBluetoothBridge> weak_factory_; 386 base::WeakPtrFactory<ArcBluetoothBridge> weak_factory_;
384 387
385 DISALLOW_COPY_AND_ASSIGN(ArcBluetoothBridge); 388 DISALLOW_COPY_AND_ASSIGN(ArcBluetoothBridge);
386 }; 389 };
387 390
388 } // namespace arc 391 } // namespace arc
389 392
390 #endif // COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_ 393 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698