| 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 <map> | 8 #include <map> |
| 9 #include <queue> | 9 #include <queue> |
| 10 | 10 |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 const std::string& message); | 168 const std::string& message); |
| 169 void OnConnectGATTError(int thread_id, | 169 void OnConnectGATTError(int thread_id, |
| 170 int request_id, | 170 int request_id, |
| 171 blink::WebBluetoothError error); | 171 blink::WebBluetoothError error); |
| 172 void OnGetPrimaryServiceSuccess(int thread_id, | 172 void OnGetPrimaryServiceSuccess(int thread_id, |
| 173 int request_id, | 173 int request_id, |
| 174 const std::string& service_instance_id); | 174 const std::string& service_instance_id); |
| 175 void OnGetPrimaryServiceError(int thread_id, | 175 void OnGetPrimaryServiceError(int thread_id, |
| 176 int request_id, | 176 int request_id, |
| 177 blink::WebBluetoothError error); | 177 blink::WebBluetoothError error); |
| 178 void OnGetCharacteristicSuccess( | 178 void OnGetCharacteristicSuccess(int thread_id, |
| 179 int thread_id, | 179 int request_id, |
| 180 int request_id, | 180 const std::string& characteristic_instance_id, |
| 181 const std::string& characteristic_instance_id); | 181 uint32 characteristic_properties); |
| 182 void OnGetCharacteristicError(int thread_id, | 182 void OnGetCharacteristicError(int thread_id, |
| 183 int request_id, | 183 int request_id, |
| 184 blink::WebBluetoothError error); | 184 blink::WebBluetoothError error); |
| 185 void OnReadValueSuccess(int thread_id, | 185 void OnReadValueSuccess(int thread_id, |
| 186 int request_id, | 186 int request_id, |
| 187 const std::vector<uint8_t>& value); | 187 const std::vector<uint8_t>& value); |
| 188 void OnReadValueError(int thread_id, | 188 void OnReadValueError(int thread_id, |
| 189 int request_id, | 189 int request_id, |
| 190 blink::WebBluetoothError error); | 190 blink::WebBluetoothError error); |
| 191 void OnWriteValueSuccess(int thread_id, int request_id); | 191 void OnWriteValueSuccess(int thread_id, int request_id); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 // http://crbug.com/541388 | 246 // http://crbug.com/541388 |
| 247 std::map<std::string, blink::WebBluetoothGATTCharacteristic*> | 247 std::map<std::string, blink::WebBluetoothGATTCharacteristic*> |
| 248 active_characteristics_; | 248 active_characteristics_; |
| 249 | 249 |
| 250 DISALLOW_COPY_AND_ASSIGN(BluetoothDispatcher); | 250 DISALLOW_COPY_AND_ASSIGN(BluetoothDispatcher); |
| 251 }; | 251 }; |
| 252 | 252 |
| 253 } // namespace content | 253 } // namespace content |
| 254 | 254 |
| 255 #endif // CONTENT_CHILD_BLUETOOTH_BLUETOOTH_DISPATCHER_H_ | 255 #endif // CONTENT_CHILD_BLUETOOTH_BLUETOOTH_DISPATCHER_H_ |
| OLD | NEW |