| 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> |
| 9 |
| 8 #include <map> | 10 #include <map> |
| 9 #include <queue> | 11 #include <queue> |
| 10 | 12 |
| 11 #include "base/id_map.h" | 13 #include "base/id_map.h" |
| 14 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 13 #include "content/common/bluetooth/bluetooth_device.h" | 16 #include "content/common/bluetooth/bluetooth_device.h" |
| 14 #include "content/public/child/worker_thread.h" | 17 #include "content/public/child/worker_thread.h" |
| 15 #include "third_party/WebKit/public/platform/modules/bluetooth/WebBluetooth.h" | 18 #include "third_party/WebKit/public/platform/modules/bluetooth/WebBluetooth.h" |
| 16 #include "third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothError
.h" | 19 #include "third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothError
.h" |
| 17 | 20 |
| 18 namespace base { | 21 namespace base { |
| 19 class MessageLoop; | 22 class MessageLoop; |
| 20 class TaskRunner; | 23 class TaskRunner; |
| 21 } | 24 } |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 blink::WebBluetoothError error); | 174 blink::WebBluetoothError error); |
| 172 void OnGetPrimaryServiceSuccess(int thread_id, | 175 void OnGetPrimaryServiceSuccess(int thread_id, |
| 173 int request_id, | 176 int request_id, |
| 174 const std::string& service_instance_id); | 177 const std::string& service_instance_id); |
| 175 void OnGetPrimaryServiceError(int thread_id, | 178 void OnGetPrimaryServiceError(int thread_id, |
| 176 int request_id, | 179 int request_id, |
| 177 blink::WebBluetoothError error); | 180 blink::WebBluetoothError error); |
| 178 void OnGetCharacteristicSuccess(int thread_id, | 181 void OnGetCharacteristicSuccess(int thread_id, |
| 179 int request_id, | 182 int request_id, |
| 180 const std::string& characteristic_instance_id, | 183 const std::string& characteristic_instance_id, |
| 181 uint32 characteristic_properties); | 184 uint32_t characteristic_properties); |
| 182 void OnGetCharacteristicError(int thread_id, | 185 void OnGetCharacteristicError(int thread_id, |
| 183 int request_id, | 186 int request_id, |
| 184 blink::WebBluetoothError error); | 187 blink::WebBluetoothError error); |
| 185 void OnReadValueSuccess(int thread_id, | 188 void OnReadValueSuccess(int thread_id, |
| 186 int request_id, | 189 int request_id, |
| 187 const std::vector<uint8_t>& value); | 190 const std::vector<uint8_t>& value); |
| 188 void OnReadValueError(int thread_id, | 191 void OnReadValueError(int thread_id, |
| 189 int request_id, | 192 int request_id, |
| 190 blink::WebBluetoothError error); | 193 blink::WebBluetoothError error); |
| 191 void OnWriteValueSuccess(int thread_id, int request_id); | 194 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 | 249 // http://crbug.com/541388 |
| 247 std::map<std::string, blink::WebBluetoothGATTCharacteristic*> | 250 std::map<std::string, blink::WebBluetoothGATTCharacteristic*> |
| 248 active_characteristics_; | 251 active_characteristics_; |
| 249 | 252 |
| 250 DISALLOW_COPY_AND_ASSIGN(BluetoothDispatcher); | 253 DISALLOW_COPY_AND_ASSIGN(BluetoothDispatcher); |
| 251 }; | 254 }; |
| 252 | 255 |
| 253 } // namespace content | 256 } // namespace content |
| 254 | 257 |
| 255 #endif // CONTENT_CHILD_BLUETOOTH_BLUETOOTH_DISPATCHER_H_ | 258 #endif // CONTENT_CHILD_BLUETOOTH_BLUETOOTH_DISPATCHER_H_ |
| OLD | NEW |