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

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

Issue 2166143002: arc: bluetooth: Implement socket opening (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 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 <map> 10 #include <map>
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 mojom::BluetoothGattIDPtr char_id, 185 mojom::BluetoothGattIDPtr char_id,
186 const RegisterForGattNotificationCallback& callback) override; 186 const RegisterForGattNotificationCallback& callback) override;
187 void DeregisterForGattNotification( 187 void DeregisterForGattNotification(
188 mojom::BluetoothAddressPtr remote_addr, 188 mojom::BluetoothAddressPtr remote_addr,
189 mojom::BluetoothGattServiceIDPtr service_id, 189 mojom::BluetoothGattServiceIDPtr service_id,
190 mojom::BluetoothGattIDPtr char_id, 190 mojom::BluetoothGattIDPtr char_id,
191 const DeregisterForGattNotificationCallback& callback) override; 191 const DeregisterForGattNotificationCallback& callback) override;
192 void ReadRemoteRssi(mojom::BluetoothAddressPtr remote_addr, 192 void ReadRemoteRssi(mojom::BluetoothAddressPtr remote_addr,
193 const ReadRemoteRssiCallback& callback) override; 193 const ReadRemoteRssiCallback& callback) override;
194 194
195 void OpenBluetoothSocket(
196 const OpenBluetoothSocketCallback& callback) override;
197
195 // Chrome observer callbacks 198 // Chrome observer callbacks
196 void OnPoweredOn( 199 void OnPoweredOn(
197 const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const; 200 const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const;
198 void OnPoweredOff( 201 void OnPoweredOff(
199 const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const; 202 const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const;
200 void OnPoweredError( 203 void OnPoweredError(
201 const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const; 204 const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const;
202 void OnDiscoveryStarted( 205 void OnDiscoveryStarted(
203 std::unique_ptr<device::BluetoothDiscoverySession> session); 206 std::unique_ptr<device::BluetoothDiscoverySession> session);
204 void OnDiscoveryStopped(); 207 void OnDiscoveryStopped();
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 298
296 // WeakPtrFactory to use for callbacks. 299 // WeakPtrFactory to use for callbacks.
297 base::WeakPtrFactory<ArcBluetoothBridge> weak_factory_; 300 base::WeakPtrFactory<ArcBluetoothBridge> weak_factory_;
298 301
299 DISALLOW_COPY_AND_ASSIGN(ArcBluetoothBridge); 302 DISALLOW_COPY_AND_ASSIGN(ArcBluetoothBridge);
300 }; 303 };
301 304
302 } // namespace arc 305 } // namespace arc
303 306
304 #endif // COMPONENTS_ARC_BLUETOOTH_ARC_BLUETOOTH_BRIDGE_H_ 307 #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