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

Unified Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.h

Issue 2565913002: [Onion Soup] Move WebBluetoothImpl from //content/renderer/bluetooth to Blink's bluetooth module (Closed)
Patch Set: renamed BluetoothUUID.typemap to Bluetooth.typemap Created 3 years, 12 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
Index: third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.h
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.h b/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.h
deleted file mode 100644
index 7b35058753dd4c700569a84a50a26f3ca43d7f2e..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothSupplement.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2015 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 BluetoothSupplement_h
-#define BluetoothSupplement_h
-
-#include "core/frame/LocalFrame.h"
-
-namespace blink {
-
-class WebBluetooth;
-
-// This class is attached to a LocalFrame in WebLocalFrameImpl::setCoreFrame, to
-// pass WebFrameClient::bluetooth() (accessible by web/ only) to the Bluetooth
-// code in modules/.
-class BLINK_EXPORT BluetoothSupplement
- : public GarbageCollected<BluetoothSupplement>,
- public Supplement<LocalFrame> {
- WTF_MAKE_NONCOPYABLE(BluetoothSupplement);
- USING_GARBAGE_COLLECTED_MIXIN(BluetoothSupplement);
-
- public:
- static const char* supplementName();
-
- static void provideTo(LocalFrame&, WebBluetooth*);
-
- // Returns the WebBluetooth attached to the frame.
- static WebBluetooth* from(LocalFrame*);
-
- // Returns the WebBluetooth attached to the frame if the frame exists.
- // Otherwise returns nullptr.
- static WebBluetooth* fromScriptState(ScriptState*);
- // Returns the WebBluetooth attached to the execution context.
- static WebBluetooth* fromExecutionContext(ExecutionContext*);
-
- DECLARE_VIRTUAL_TRACE();
-
- private:
- explicit BluetoothSupplement(WebBluetooth*);
-
- WebBluetooth* m_bluetooth;
-};
-
-} // namespace blink
-
-#endif // BluetoothRoutingId_h

Powered by Google App Engine
This is Rietveld 408576698