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

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

Issue 1266153002: Oilpan: Fix compile after r199777. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef USBController_h 5 #ifndef USBController_h
6 #define USBController_h 6 #define USBController_h
7 7
8 #include "core/frame/LocalFrame.h" 8 #include "core/frame/LocalFrame.h"
9 #include "core/frame/LocalFrameLifecycleObserver.h" 9 #include "core/frame/LocalFrameLifecycleObserver.h"
10 #include "modules/ModulesExport.h" 10 #include "modules/ModulesExport.h"
11 #include "platform/heap/Handle.h" 11 #include "platform/heap/Handle.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class WebUSBClient; 15 class WebUSBClient;
16 16
17 class MODULES_EXPORT USBController final 17 class MODULES_EXPORT USBController final
18 : public NoBaseWillBeGarbageCollectedFinalized<USBController> 18 : public NoBaseWillBeGarbageCollectedFinalized<USBController>
19 , public WillBeHeapSupplement<LocalFrame> 19 , public WillBeHeapSupplement<LocalFrame>
20 , public LocalFrameLifecycleObserver { 20 , public LocalFrameLifecycleObserver {
21 WTF_MAKE_NONCOPYABLE(USBController); 21 WTF_MAKE_NONCOPYABLE(USBController);
22 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(USBController);
22 public: 23 public:
23 virtual ~USBController(); 24 virtual ~USBController();
24 25
25 WebUSBClient* client() { return m_client; } 26 WebUSBClient* client() { return m_client; }
26 27
27 static void provideTo(LocalFrame&, WebUSBClient*); 28 static void provideTo(LocalFrame&, WebUSBClient*);
28 static USBController& from(LocalFrame&); 29 static USBController& from(LocalFrame&);
29 static const char* supplementName(); 30 static const char* supplementName();
30 31
31 DECLARE_VIRTUAL_TRACE(); 32 DECLARE_VIRTUAL_TRACE();
32 33
33 private: 34 private:
34 USBController(LocalFrame&, WebUSBClient*); 35 USBController(LocalFrame&, WebUSBClient*);
35 36
36 // Inherited from LocalFrameLifecycleObserver. 37 // Inherited from LocalFrameLifecycleObserver.
37 void willDetachFrameHost() override; 38 void willDetachFrameHost() override;
38 39
39 WebUSBClient* m_client; 40 WebUSBClient* m_client;
40 }; 41 };
41 42
42 } // namespace blink 43 } // namespace blink
43 44
44 #endif // USBController_h 45 #endif // USBController_h
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698