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

Unified Diff: content/child/bluetooth/web_bluetooth_impl.cc

Issue 1234413006: Move the Web Bluetooth implementation from child/ to renderer/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Rebase Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/bluetooth/web_bluetooth_impl.h ('k') | content/child/child_thread_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/bluetooth/web_bluetooth_impl.cc
diff --git a/content/child/bluetooth/web_bluetooth_impl.cc b/content/child/bluetooth/web_bluetooth_impl.cc
deleted file mode 100644
index c307461a5345fe98d311dd38defbf9fbe3c55ba8..0000000000000000000000000000000000000000
--- a/content/child/bluetooth/web_bluetooth_impl.cc
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/child/bluetooth/web_bluetooth_impl.h"
-
-#include "content/child/bluetooth/bluetooth_dispatcher.h"
-#include "content/child/thread_safe_sender.h"
-
-namespace content {
-
-WebBluetoothImpl::WebBluetoothImpl(ThreadSafeSender* thread_safe_sender)
- : thread_safe_sender_(thread_safe_sender) {
-}
-
-WebBluetoothImpl::~WebBluetoothImpl() {
-}
-
-void WebBluetoothImpl::requestDevice(
- const blink::WebRequestDeviceOptions& options,
- blink::WebBluetoothRequestDeviceCallbacks* callbacks) {
- GetDispatcher()->requestDevice(options, callbacks);
-}
-
-void WebBluetoothImpl::connectGATT(const blink::WebString& device_instance_id,
- blink::WebBluetoothConnectGATTCallbacks* callbacks) {
- GetDispatcher()->connectGATT(device_instance_id, callbacks);
-}
-
-void WebBluetoothImpl::getPrimaryService(
- const blink::WebString& device_instance_id,
- const blink::WebString& service_uuid,
- blink::WebBluetoothGetPrimaryServiceCallbacks* callbacks) {
- GetDispatcher()->getPrimaryService(device_instance_id, service_uuid,
- callbacks);
-}
-
-void WebBluetoothImpl::getCharacteristic(
- const blink::WebString& service_instance_id,
- const blink::WebString& characteristic_uuid,
- blink::WebBluetoothGetCharacteristicCallbacks* callbacks) {
- GetDispatcher()->getCharacteristic(service_instance_id, characteristic_uuid,
- callbacks);
-}
-
-void WebBluetoothImpl::readValue(
- const blink::WebString& characteristic_instance_id,
- blink::WebBluetoothReadValueCallbacks* callbacks) {
- GetDispatcher()->readValue(characteristic_instance_id, callbacks);
-}
-
-void WebBluetoothImpl::writeValue(
- const blink::WebString& characteristic_instance_id,
- const std::vector<uint8_t>& value,
- blink::WebBluetoothWriteValueCallbacks* callbacks) {
- GetDispatcher()->writeValue(characteristic_instance_id, value, callbacks);
-}
-
-BluetoothDispatcher* WebBluetoothImpl::GetDispatcher() {
- return BluetoothDispatcher::GetOrCreateThreadSpecificInstance(
- thread_safe_sender_.get());
-}
-
-} // namespace content
« no previous file with comments | « content/child/bluetooth/web_bluetooth_impl.h ('k') | content/child/child_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698