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

Side by Side Diff: third_party/WebKit/Source/modules/presentation/PresentationController.h

Issue 1864243004: Remove RawPtr from Source/modules Part 2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 PresentationController_h 5 #ifndef PresentationController_h
6 #define PresentationController_h 6 #define PresentationController_h
7 7
8 #include "core/frame/LocalFrameLifecycleObserver.h" 8 #include "core/frame/LocalFrameLifecycleObserver.h"
9 #include "modules/ModulesExport.h" 9 #include "modules/ModulesExport.h"
10 #include "modules/presentation/Presentation.h" 10 #include "modules/presentation/Presentation.h"
(...skipping 17 matching lines...) Expand all
28 class MODULES_EXPORT PresentationController final 28 class MODULES_EXPORT PresentationController final
29 : public GarbageCollectedFinalized<PresentationController> 29 : public GarbageCollectedFinalized<PresentationController>
30 , public Supplement<LocalFrame> 30 , public Supplement<LocalFrame>
31 , public LocalFrameLifecycleObserver 31 , public LocalFrameLifecycleObserver
32 , public WebPresentationController { 32 , public WebPresentationController {
33 USING_GARBAGE_COLLECTED_MIXIN(PresentationController); 33 USING_GARBAGE_COLLECTED_MIXIN(PresentationController);
34 WTF_MAKE_NONCOPYABLE(PresentationController); 34 WTF_MAKE_NONCOPYABLE(PresentationController);
35 public: 35 public:
36 ~PresentationController() override; 36 ~PresentationController() override;
37 37
38 static RawPtr<PresentationController> create(LocalFrame&, WebPresentationCli ent*); 38 static PresentationController* create(LocalFrame&, WebPresentationClient*);
39 39
40 static const char* supplementName(); 40 static const char* supplementName();
41 static PresentationController* from(LocalFrame&); 41 static PresentationController* from(LocalFrame&);
42 42
43 static void provideTo(LocalFrame&, WebPresentationClient*); 43 static void provideTo(LocalFrame&, WebPresentationClient*);
44 44
45 WebPresentationClient* client(); 45 WebPresentationClient* client();
46 46
47 // Implementation of Supplement. 47 // Implementation of Supplement.
48 DECLARE_VIRTUAL_TRACE(); 48 DECLARE_VIRTUAL_TRACE();
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // The presentation connections associated with that frame. 90 // The presentation connections associated with that frame.
91 // TODO(mlamouri): the PresentationController will keep any created 91 // TODO(mlamouri): the PresentationController will keep any created
92 // connections alive until the frame is detached. These should be weak ptr 92 // connections alive until the frame is detached. These should be weak ptr
93 // so that the connection can be GC'd. 93 // so that the connection can be GC'd.
94 HeapHashSet<Member<PresentationConnection>> m_connections; 94 HeapHashSet<Member<PresentationConnection>> m_connections;
95 }; 95 };
96 96
97 } // namespace blink 97 } // namespace blink
98 98
99 #endif // PresentationController_h 99 #endif // PresentationController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698