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

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

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/bluetooth_message_filter.cc ('k') | content/child/bluetooth/web_bluetooth_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/bluetooth/web_bluetooth_impl.h
diff --git a/content/child/bluetooth/web_bluetooth_impl.h b/content/child/bluetooth/web_bluetooth_impl.h
deleted file mode 100644
index 5eede0ef3d6a00291d5e140f2cd16c53fc9b80b0..0000000000000000000000000000000000000000
--- a/content/child/bluetooth/web_bluetooth_impl.h
+++ /dev/null
@@ -1,58 +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.
-
-#ifndef CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_
-#define CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_
-
-#include <string>
-
-#include "base/compiler_specific.h"
-#include "base/memory/ref_counted.h"
-#include "content/common/content_export.h"
-#include "third_party/WebKit/public/platform/modules/bluetooth/WebBluetooth.h"
-
-namespace content {
-
-class BluetoothDispatcher;
-class ThreadSafeSender;
-
-// Implementation of blink::WebBluetooth. Passes calls through to the thread
-// specific BluetoothDispatcher.
-class CONTENT_EXPORT WebBluetoothImpl
- : NON_EXPORTED_BASE(public blink::WebBluetooth) {
- public:
- explicit WebBluetoothImpl(ThreadSafeSender* thread_safe_sender);
- ~WebBluetoothImpl();
-
- // blink::WebBluetooth interface:
- void requestDevice(
- const blink::WebRequestDeviceOptions& options,
- blink::WebBluetoothRequestDeviceCallbacks* callbacks) override;
- void connectGATT(const blink::WebString& device_instance_id,
- blink::WebBluetoothConnectGATTCallbacks* callbacks) override;
- void getPrimaryService(
- const blink::WebString& device_instance_id,
- const blink::WebString& service_uuid,
- blink::WebBluetoothGetPrimaryServiceCallbacks* callbacks) override;
- void getCharacteristic(
- const blink::WebString& service_instance_id,
- const blink::WebString& characteristic_uuid,
- blink::WebBluetoothGetCharacteristicCallbacks* callbacks) override;
- void readValue(const blink::WebString& characteristic_instance_id,
- blink::WebBluetoothReadValueCallbacks* callbacks) override;
- void writeValue(const blink::WebString& characteristic_instance_id,
- const std::vector<uint8_t>& value,
- blink::WebBluetoothWriteValueCallbacks*) override;
-
- private:
- BluetoothDispatcher* GetDispatcher();
-
- scoped_refptr<ThreadSafeSender> thread_safe_sender_;
-
- DISALLOW_COPY_AND_ASSIGN(WebBluetoothImpl);
-};
-
-} // namespace content
-
-#endif // CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_
« no previous file with comments | « content/child/bluetooth/bluetooth_message_filter.cc ('k') | content/child/bluetooth/web_bluetooth_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698