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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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"
11 #include "modules/presentation/PresentationRequest.h" 11 #include "modules/presentation/PresentationRequest.h"
12 #include "platform/Supplementable.h" 12 #include "platform/Supplementable.h"
13 #include "platform/heap/Handle.h" 13 #include "platform/heap/Handle.h"
14 #include "public/platform/modules/presentation/WebPresentationClient.h" 14 #include "public/platform/modules/presentation/WebPresentationClient.h"
15 #include "public/platform/modules/presentation/WebPresentationController.h" 15 #include "public/platform/modules/presentation/WebPresentationController.h"
16 16
17 namespace blink { 17 namespace blink {
18 18
19 class LocalFrame; 19 class LocalFrame;
20 class PresentationConnection; 20 class PresentationConnection;
21 class WebPresentationAvailabilityCallback; 21 class WebPresentationAvailabilityCallback;
22 class WebPresentationConnectionClient; 22 class WebPresentationConnectionClient;
23 enum class WebPresentationConnectionState; 23 enum class WebPresentationConnectionState;
24 24
25 // The coordinator between the various page exposed properties and the content 25 // The coordinator between the various page exposed properties and the content
26 // layer represented via |WebPresentationClient|. 26 // layer represented via |WebPresentationClient|.
27 class MODULES_EXPORT PresentationController final 27 class MODULES_EXPORT PresentationController final
28 : public NoBaseWillBeGarbageCollectedFinalized<PresentationController> 28 : public GarbageCollectedFinalized<PresentationController>
29 , public WillBeHeapSupplement<LocalFrame> 29 , public HeapSupplement<LocalFrame>
30 , public LocalFrameLifecycleObserver 30 , public LocalFrameLifecycleObserver
31 , public WebPresentationController { 31 , public WebPresentationController {
32 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PresentationController); 32 USING_GARBAGE_COLLECTED_MIXIN(PresentationController);
33 USING_FAST_MALLOC_WILL_BE_REMOVED(PresentationController);
34 WTF_MAKE_NONCOPYABLE(PresentationController); 33 WTF_MAKE_NONCOPYABLE(PresentationController);
35 public: 34 public:
36 ~PresentationController() override; 35 ~PresentationController() override;
37 36
38 static PassOwnPtrWillBeRawPtr<PresentationController> create(LocalFrame&, We bPresentationClient*); 37 static RawPtr<PresentationController> create(LocalFrame&, WebPresentationCli ent*);
39 38
40 static const char* supplementName(); 39 static const char* supplementName();
41 static PresentationController* from(LocalFrame&); 40 static PresentationController* from(LocalFrame&);
42 41
43 static void provideTo(LocalFrame&, WebPresentationClient*); 42 static void provideTo(LocalFrame&, WebPresentationClient*);
44 43
45 WebPresentationClient* client(); 44 WebPresentationClient* client();
46 45
47 // Implementation of HeapSupplement. 46 // Implementation of HeapSupplement.
48 DECLARE_VIRTUAL_TRACE(); 47 DECLARE_VIRTUAL_TRACE();
(...skipping 27 matching lines...) Expand all
76 // null if it doesn't exist. 75 // null if it doesn't exist.
77 PresentationConnection* findConnection(WebPresentationConnectionClient*); 76 PresentationConnection* findConnection(WebPresentationConnectionClient*);
78 77
79 // The WebPresentationClient which allows communicating with the embedder. 78 // The WebPresentationClient which allows communicating with the embedder.
80 // It is not owned by the PresentationController but the controller will 79 // It is not owned by the PresentationController but the controller will
81 // set it to null when the LocalFrame will be detached at which point the 80 // set it to null when the LocalFrame will be detached at which point the
82 // client can't be used. 81 // client can't be used.
83 WebPresentationClient* m_client; 82 WebPresentationClient* m_client;
84 83
85 // Default PresentationRequest used by the embedder. 84 // Default PresentationRequest used by the embedder.
86 // PersistentWillBeMember<PresentationRequest> m_defaultRequest; 85 // Member<PresentationRequest> m_defaultRequest;
87 WeakMember<Presentation> m_presentation; 86 WeakMember<Presentation> m_presentation;
88 87
89 // The presentation connections associated with that frame. 88 // The presentation connections associated with that frame.
90 // TODO(mlamouri): the PresentationController will keep any created 89 // TODO(mlamouri): the PresentationController will keep any created
91 // connections alive until the frame is detached. These should be weak ptr 90 // connections alive until the frame is detached. These should be weak ptr
92 // so that the connection can be GC'd. 91 // so that the connection can be GC'd.
93 PersistentHeapHashSetWillBeHeapHashSet<Member<PresentationConnection>> m_con nections; 92 HeapHashSet<Member<PresentationConnection>> m_connections;
94 }; 93 };
95 94
96 } // namespace blink 95 } // namespace blink
97 96
98 #endif // PresentationController_h 97 #endif // PresentationController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698