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

Side by Side Diff: content/browser/bluetooth/bluetooth_dispatcher_host.h

Issue 1611443002: bluetooth: Update BluetoothGATTCharacteristic.value on writeValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@useDataview
Patch Set: Created 4 years, 11 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 // Callbacks for BluetoothGattCharacteristic::ReadRemoteCharacteristic. 175 // Callbacks for BluetoothGattCharacteristic::ReadRemoteCharacteristic.
176 void OnCharacteristicValueRead(int thread_id, 176 void OnCharacteristicValueRead(int thread_id,
177 int request_id, 177 int request_id,
178 const std::vector<uint8_t>& value); 178 const std::vector<uint8_t>& value);
179 void OnCharacteristicReadValueError( 179 void OnCharacteristicReadValueError(
180 int thread_id, 180 int thread_id,
181 int request_id, 181 int request_id,
182 device::BluetoothGattService::GattErrorCode); 182 device::BluetoothGattService::GattErrorCode);
183 183
184 // Callbacks for BluetoothGattCharacteristic::WriteRemoteCharacteristic. 184 // Callbacks for BluetoothGattCharacteristic::WriteRemoteCharacteristic.
185 void OnWriteValueSuccess(int thread_id, int request_id); 185 void OnWriteValueSuccess(int thread_id,
186 int request_id,
187 const std::vector<uint8_t>& value);
186 void OnWriteValueFailed(int thread_id, 188 void OnWriteValueFailed(int thread_id,
187 int request_id, 189 int request_id,
188 device::BluetoothGattService::GattErrorCode); 190 device::BluetoothGattService::GattErrorCode);
189 191
190 // Callbacks for BluetoothGattCharacteristic::StartNotifySession. 192 // Callbacks for BluetoothGattCharacteristic::StartNotifySession.
191 void OnStartNotifySessionSuccess( 193 void OnStartNotifySessionSuccess(
192 int thread_id, 194 int thread_id,
193 int request_id, 195 int request_id,
194 scoped_ptr<device::BluetoothGattNotifySession> notify_session); 196 scoped_ptr<device::BluetoothGattNotifySession> notify_session);
195 void OnStartNotifySessionFailed( 197 void OnStartNotifySessionFailed(
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 // copies verify they are also used on the UI thread. 297 // copies verify they are also used on the UI thread.
296 base::WeakPtr<BluetoothDispatcherHost> weak_ptr_on_ui_thread_; 298 base::WeakPtr<BluetoothDispatcherHost> weak_ptr_on_ui_thread_;
297 base::WeakPtrFactory<BluetoothDispatcherHost> weak_ptr_factory_; 299 base::WeakPtrFactory<BluetoothDispatcherHost> weak_ptr_factory_;
298 300
299 DISALLOW_COPY_AND_ASSIGN(BluetoothDispatcherHost); 301 DISALLOW_COPY_AND_ASSIGN(BluetoothDispatcherHost);
300 }; 302 };
301 303
302 } // namespace content 304 } // namespace content
303 305
304 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_ 306 #endif // CONTENT_BROWSER_BLUETOOTH_BLUETOOTH_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698