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

Side by Side Diff: Source/modules/permissions/PermissionController.h

Issue 1003473003: Oilpan: fix build after r191721 (b3a40c954). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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
« 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 PermissionController_h 5 #ifndef PermissionController_h
6 #define PermissionController_h 6 #define PermissionController_h
7 7
8 #include "core/frame/FrameDestructionObserver.h" 8 #include "core/frame/FrameDestructionObserver.h"
9 #include "platform/Supplementable.h" 9 #include "platform/Supplementable.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class WebPermissionClient; 13 class WebPermissionClient;
14 14
15 class PermissionController final 15 class PermissionController final
16 : public WillBeHeapSupplement<LocalFrame> 16 : public NoBaseWillBeGarbageCollectedFinalized<PermissionController>
17 , public WillBeHeapSupplement<LocalFrame>
17 , public FrameDestructionObserver { 18 , public FrameDestructionObserver {
18 WTF_MAKE_NONCOPYABLE(PermissionController); 19 WTF_MAKE_NONCOPYABLE(PermissionController);
20 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PermissionController);
19 public: 21 public:
20 virtual ~PermissionController(); 22 virtual ~PermissionController();
21 23
22 static void provideTo(LocalFrame&, WebPermissionClient*); 24 static void provideTo(LocalFrame&, WebPermissionClient*);
23 static PermissionController* from(LocalFrame&); 25 static PermissionController* from(LocalFrame&);
24 static const char* supplementName(); 26 static const char* supplementName();
25 27
26 WebPermissionClient* client() const; 28 WebPermissionClient* client() const;
27 29
28 DECLARE_VIRTUAL_TRACE(); 30 DECLARE_VIRTUAL_TRACE();
29 31
30 private: 32 private:
31 PermissionController(LocalFrame&, WebPermissionClient*); 33 PermissionController(LocalFrame&, WebPermissionClient*);
32 34
33 // Inherited from FrameDestructionObserver. 35 // Inherited from FrameDestructionObserver.
34 virtual void willDetachFrameHost() override; 36 virtual void willDetachFrameHost() override;
35 37
36 WebPermissionClient* m_client; 38 WebPermissionClient* m_client;
37 }; 39 };
38 40
39 } // namespace blink 41 } // namespace blink
40 42
41 #endif // PermissionController_h 43 #endif // PermissionController_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