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

Side by Side Diff: content/child/bluetooth/web_bluetooth_impl.cc

Issue 1149883011: bluetooth: Browser-side implementation of readValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-get-characteristic-initial
Patch Set: Fix merge conflicts Created 5 years, 6 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 #include "content/child/bluetooth/web_bluetooth_impl.h" 5 #include "content/child/bluetooth/web_bluetooth_impl.h"
6 6
7 #include "content/child/bluetooth/bluetooth_dispatcher.h" 7 #include "content/child/bluetooth/bluetooth_dispatcher.h"
8 #include "content/child/thread_safe_sender.h" 8 #include "content/child/thread_safe_sender.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 24 matching lines...) Expand all
35 } 35 }
36 36
37 void WebBluetoothImpl::getCharacteristic( 37 void WebBluetoothImpl::getCharacteristic(
38 const blink::WebString& service_instance_id, 38 const blink::WebString& service_instance_id,
39 const blink::WebString& characteristic_uuid, 39 const blink::WebString& characteristic_uuid,
40 blink::WebBluetoothGetCharacteristicCallbacks* callbacks) { 40 blink::WebBluetoothGetCharacteristicCallbacks* callbacks) {
41 GetDispatcher()->getCharacteristic(service_instance_id, characteristic_uuid, 41 GetDispatcher()->getCharacteristic(service_instance_id, characteristic_uuid,
42 callbacks); 42 callbacks);
43 } 43 }
44 44
45 void WebBluetoothImpl::readValue(
46 const blink::WebString& characteristic_instance_id,
47 blink::WebBluetoothReadValueCallbacks* callbacks) {
48 GetDispatcher()->readValue(characteristic_instance_id, callbacks);
49 }
50
45 BluetoothDispatcher* WebBluetoothImpl::GetDispatcher() { 51 BluetoothDispatcher* WebBluetoothImpl::GetDispatcher() {
46 return BluetoothDispatcher::GetOrCreateThreadSpecificInstance( 52 return BluetoothDispatcher::GetOrCreateThreadSpecificInstance(
47 thread_safe_sender_.get()); 53 thread_safe_sender_.get());
48 } 54 }
49 55
50 } // namespace content 56 } // namespace content
OLDNEW
« no previous file with comments | « content/child/bluetooth/web_bluetooth_impl.h ('k') | content/common/bluetooth/bluetooth_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698