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

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

Issue 1026253002: Rename FrameDestructionObserver to LocalFrameLifecycleObserver. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased 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 | Annotate | Revision Log
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/FrameDestructionObserver.h" 8 #include "core/frame/LocalFrameLifecycleObserver.h"
9 #include "modules/presentation/Presentation.h" 9 #include "modules/presentation/Presentation.h"
10 #include "platform/Supplementable.h" 10 #include "platform/Supplementable.h"
11 #include "platform/heap/Handle.h" 11 #include "platform/heap/Handle.h"
12 #include "public/platform/modules/presentation/WebPresentationClient.h" 12 #include "public/platform/modules/presentation/WebPresentationClient.h"
13 #include "public/platform/modules/presentation/WebPresentationController.h" 13 #include "public/platform/modules/presentation/WebPresentationController.h"
14 14
15 namespace blink { 15 namespace blink {
16 16
17 class LocalFrame; 17 class LocalFrame;
18 class WebPresentationSessionClient; 18 class WebPresentationSessionClient;
19 19
20 // The coordinator between the various page exposed properties and the content 20 // The coordinator between the various page exposed properties and the content
21 // layer represented via |WebPresentationClient|. 21 // layer represented via |WebPresentationClient|.
22 class PresentationController final 22 class PresentationController final
23 : public NoBaseWillBeGarbageCollectedFinalized<PresentationController> 23 : public NoBaseWillBeGarbageCollectedFinalized<PresentationController>
24 , public WillBeHeapSupplement<LocalFrame> 24 , public WillBeHeapSupplement<LocalFrame>
25 , public FrameDestructionObserver 25 , public LocalFrameLifecycleObserver
26 , public WebPresentationController { 26 , public WebPresentationController {
27 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PresentationController); 27 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PresentationController);
28 WTF_MAKE_NONCOPYABLE(PresentationController); 28 WTF_MAKE_NONCOPYABLE(PresentationController);
29 public: 29 public:
30 virtual ~PresentationController(); 30 virtual ~PresentationController();
31 31
32 static PassOwnPtrWillBeRawPtr<PresentationController> create(LocalFrame&, We bPresentationClient*); 32 static PassOwnPtrWillBeRawPtr<PresentationController> create(LocalFrame&, We bPresentationClient*);
33 33
34 static const char* supplementName(); 34 static const char* supplementName();
35 static PresentationController* from(LocalFrame&); 35 static PresentationController* from(LocalFrame&);
(...skipping 20 matching lines...) Expand all
56 56
57 // Called when the frame wants to close an existing presentation. 57 // Called when the frame wants to close an existing presentation.
58 void closeSession(const String& url, const String& presentationId); 58 void closeSession(const String& url, const String& presentationId);
59 59
60 // Connects the |Presentation| object with this controller. 60 // Connects the |Presentation| object with this controller.
61 void setPresentation(Presentation*); 61 void setPresentation(Presentation*);
62 62
63 private: 63 private:
64 PresentationController(LocalFrame&, WebPresentationClient*); 64 PresentationController(LocalFrame&, WebPresentationClient*);
65 65
66 // Implementation of FrameDestructionObserver. 66 // Implementation of LocalFrameLifecycleObserver.
67 virtual void willDetachFrameHost() override; 67 virtual void willDetachFrameHost() override;
68 68
69 WebPresentationClient* m_client; 69 WebPresentationClient* m_client;
70 PersistentWillBeMember<Presentation> m_presentation; 70 PersistentWillBeMember<Presentation> m_presentation;
71 }; 71 };
72 72
73 } // namespace blink 73 } // namespace blink
74 74
75 #endif // PresentationController_h 75 #endif // PresentationController_h
OLDNEW
« no previous file with comments | « Source/modules/plugins/DOMPlugin.cpp ('k') | Source/modules/presentation/PresentationController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698