Fix link in German terms of service.
[chromium-blink-merge.git] / content / child / bluetooth / web_bluetooth_impl.cc
blob46a08e2c9f30f21f3f21073734deaf89084caf8b
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
3 // found in the LICENSE file.
5 #include "content/child/bluetooth/web_bluetooth_impl.h"
7 #include "content/child/bluetooth/bluetooth_dispatcher.h"
8 #include "content/child/thread_safe_sender.h"
10 namespace content {
12 WebBluetoothImpl::WebBluetoothImpl(ThreadSafeSender* thread_safe_sender)
13 : thread_safe_sender_(thread_safe_sender) {
16 WebBluetoothImpl::~WebBluetoothImpl() {
19 void WebBluetoothImpl::requestDevice(
20 blink::WebBluetoothRequestDeviceCallbacks* callbacks) {
21 GetDispatcher()->requestDevice(callbacks);
24 void WebBluetoothImpl::connectGATT(const blink::WebString& device_instance_id,
25 blink::WebBluetoothConnectGATTCallbacks* callbacks) {
26 GetDispatcher()->connectGATT(device_instance_id, callbacks);
29 BluetoothDispatcher* WebBluetoothImpl::GetDispatcher() {
30 return BluetoothDispatcher::GetOrCreateThreadSpecificInstance(
31 thread_safe_sender_.get());
34 } // namespace content