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 #include "content/child/bluetooth/web_bluetooth_impl.h" | 5 #include "content/renderer/bluetooth/web_bluetooth_impl.h" |
6 | 6 |
7 #include "content/child/bluetooth/bluetooth_dispatcher.h" | |
8 #include "content/child/thread_safe_sender.h" | 7 #include "content/child/thread_safe_sender.h" |
| 8 #include "content/renderer/bluetooth/bluetooth_dispatcher.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
11 | 11 |
12 WebBluetoothImpl::WebBluetoothImpl(ThreadSafeSender* thread_safe_sender) | 12 WebBluetoothImpl::WebBluetoothImpl(ThreadSafeSender* thread_safe_sender) |
13 : thread_safe_sender_(thread_safe_sender) { | 13 : thread_safe_sender_(thread_safe_sender) { |
14 } | 14 } |
15 | 15 |
16 WebBluetoothImpl::~WebBluetoothImpl() { | 16 WebBluetoothImpl::~WebBluetoothImpl() { |
17 } | 17 } |
18 | 18 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 blink::WebBluetoothWriteValueCallbacks* callbacks) { | 55 blink::WebBluetoothWriteValueCallbacks* callbacks) { |
56 GetDispatcher()->writeValue(characteristic_instance_id, value, callbacks); | 56 GetDispatcher()->writeValue(characteristic_instance_id, value, callbacks); |
57 } | 57 } |
58 | 58 |
59 BluetoothDispatcher* WebBluetoothImpl::GetDispatcher() { | 59 BluetoothDispatcher* WebBluetoothImpl::GetDispatcher() { |
60 return BluetoothDispatcher::GetOrCreateThreadSpecificInstance( | 60 return BluetoothDispatcher::GetOrCreateThreadSpecificInstance( |
61 thread_safe_sender_.get()); | 61 thread_safe_sender_.get()); |
62 } | 62 } |
63 | 63 |
64 } // namespace content | 64 } // namespace content |
OLD | NEW |