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

Unified Diff: third_party/WebKit/Source/modules/webusb/USBController.cpp

Issue 1850023002: Consume Mojo services directly in Blink's WebUSB implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't do assignments in if statements. Created 4 years, 8 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/webusb/USBController.cpp
diff --git a/third_party/WebKit/Source/modules/webusb/USBController.cpp b/third_party/WebKit/Source/modules/webusb/USBController.cpp
deleted file mode 100644
index 68f21c52d135a9b13652fb2bf650c76f1b129c03..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/modules/webusb/USBController.cpp
+++ /dev/null
@@ -1,51 +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.
-
-#include "modules/webusb/USBController.h"
-
-#include "platform/RuntimeEnabledFeatures.h"
-#include "public/platform/modules/webusb/WebUSBClient.h"
-
-namespace blink {
-
-USBController::~USBController()
-{
-}
-
-void USBController::provideTo(LocalFrame& frame, WebUSBClient* client)
-{
- USBController* controller = new USBController(frame, client);
- Supplement<LocalFrame>::provideTo(frame, supplementName(), controller);
-}
-
-USBController& USBController::from(LocalFrame& frame)
-{
- USBController* controller = static_cast<USBController*>(Supplement<LocalFrame>::from(frame, supplementName()));
- ASSERT(controller);
- return *controller;
-}
-
-const char* USBController::supplementName()
-{
- return "USBController";
-}
-
-USBController::USBController(LocalFrame& frame, WebUSBClient* client)
- : LocalFrameLifecycleObserver(&frame)
- , m_client(client)
-{
-}
-
-void USBController::willDetachFrameHost()
-{
- m_client = nullptr;
-}
-
-DEFINE_TRACE(USBController)
-{
- Supplement<LocalFrame>::trace(visitor);
- LocalFrameLifecycleObserver::trace(visitor);
-}
-
-} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/modules/webusb/USBController.h ('k') | third_party/WebKit/Source/modules/webusb/USBDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698