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

Side by Side Diff: third_party/WebKit/Source/modules/webusb/USBController.h

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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 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.
4
5 #ifndef USBController_h
6 #define USBController_h
7
8 #include "core/frame/LocalFrame.h"
9 #include "core/frame/LocalFrameLifecycleObserver.h"
10 #include "modules/ModulesExport.h"
11 #include "platform/heap/Handle.h"
12
13 namespace blink {
14
15 class WebUSBClient;
16
17 class MODULES_EXPORT USBController final
18 : public GarbageCollectedFinalized<USBController>
19 , public Supplement<LocalFrame>
20 , public LocalFrameLifecycleObserver {
21 WTF_MAKE_NONCOPYABLE(USBController);
22 USING_GARBAGE_COLLECTED_MIXIN(USBController);
23 public:
24 virtual ~USBController();
25
26 WebUSBClient* client() { return m_client; }
27
28 static void provideTo(LocalFrame&, WebUSBClient*);
29 static USBController& from(LocalFrame&);
30 static const char* supplementName();
31
32 DECLARE_VIRTUAL_TRACE();
33
34 private:
35 USBController(LocalFrame&, WebUSBClient*);
36
37 // Inherited from LocalFrameLifecycleObserver.
38 void willDetachFrameHost() override;
39
40 WebUSBClient* m_client;
41 };
42
43 } // namespace blink
44
45 #endif // USBController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698