| OLD | NEW |
| 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_CHILD_BLUETOOTH_BLUETOOTH_DISPATCHER_H_ | 5 #ifndef CONTENT_CHILD_BLUETOOTH_BLUETOOTH_DISPATCHER_H_ |
| 6 #define CONTENT_CHILD_BLUETOOTH_BLUETOOTH_DISPATCHER_H_ | 6 #define CONTENT_CHILD_BLUETOOTH_BLUETOOTH_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 uint32_t characteristic_properties); | 184 uint32_t characteristic_properties); |
| 185 void OnGetCharacteristicError(int thread_id, | 185 void OnGetCharacteristicError(int thread_id, |
| 186 int request_id, | 186 int request_id, |
| 187 blink::WebBluetoothError error); | 187 blink::WebBluetoothError error); |
| 188 void OnReadValueSuccess(int thread_id, | 188 void OnReadValueSuccess(int thread_id, |
| 189 int request_id, | 189 int request_id, |
| 190 const std::vector<uint8_t>& value); | 190 const std::vector<uint8_t>& value); |
| 191 void OnReadValueError(int thread_id, | 191 void OnReadValueError(int thread_id, |
| 192 int request_id, | 192 int request_id, |
| 193 blink::WebBluetoothError error); | 193 blink::WebBluetoothError error); |
| 194 void OnWriteValueSuccess(int thread_id, int request_id); | 194 void OnWriteValueSuccess(int thread_id, |
| 195 int request_id, |
| 196 const std::vector<uint8_t>& value); |
| 195 void OnWriteValueError(int thread_id, | 197 void OnWriteValueError(int thread_id, |
| 196 int request_id, | 198 int request_id, |
| 197 blink::WebBluetoothError error); | 199 blink::WebBluetoothError error); |
| 198 void OnStartNotificationsSuccess(int thread_id, int request_id); | 200 void OnStartNotificationsSuccess(int thread_id, int request_id); |
| 199 void OnStartNotificationsError(int thread_id, | 201 void OnStartNotificationsError(int thread_id, |
| 200 int request_id, | 202 int request_id, |
| 201 blink::WebBluetoothError error); | 203 blink::WebBluetoothError error); |
| 202 void OnStopNotificationsSuccess(int thread_id, int request_id); | 204 void OnStopNotificationsSuccess(int thread_id, int request_id); |
| 203 void OnCharacteristicValueChanged( | 205 void OnCharacteristicValueChanged( |
| 204 int thread_id, | 206 int thread_id, |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 // http://crbug.com/541388 | 251 // http://crbug.com/541388 |
| 250 std::map<std::string, blink::WebBluetoothGATTCharacteristic*> | 252 std::map<std::string, blink::WebBluetoothGATTCharacteristic*> |
| 251 active_characteristics_; | 253 active_characteristics_; |
| 252 | 254 |
| 253 DISALLOW_COPY_AND_ASSIGN(BluetoothDispatcher); | 255 DISALLOW_COPY_AND_ASSIGN(BluetoothDispatcher); |
| 254 }; | 256 }; |
| 255 | 257 |
| 256 } // namespace content | 258 } // namespace content |
| 257 | 259 |
| 258 #endif // CONTENT_CHILD_BLUETOOTH_BLUETOOTH_DISPATCHER_H_ | 260 #endif // CONTENT_CHILD_BLUETOOTH_BLUETOOTH_DISPATCHER_H_ |
| OLD | NEW |