OLD | NEW |
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 30 matching lines...) Expand all Loading... |
41 | 41 |
42 WebPresentationClient* client(); | 42 WebPresentationClient* client(); |
43 | 43 |
44 // Implementation of HeapSupplement. | 44 // Implementation of HeapSupplement. |
45 DECLARE_VIRTUAL_TRACE(); | 45 DECLARE_VIRTUAL_TRACE(); |
46 | 46 |
47 // Implementation of WebPresentationController. | 47 // Implementation of WebPresentationController. |
48 virtual void didStartDefaultSession(WebPresentationSessionClient*) override; | 48 virtual void didStartDefaultSession(WebPresentationSessionClient*) override; |
49 virtual void didChangeSessionState(WebPresentationSessionClient*, WebPresent
ationSessionState) override; | 49 virtual void didChangeSessionState(WebPresentationSessionClient*, WebPresent
ationSessionState) override; |
50 virtual void didReceiveSessionTextMessage(WebPresentationSessionClient*, con
st WebString&) override; | 50 virtual void didReceiveSessionTextMessage(WebPresentationSessionClient*, con
st WebString&) override; |
| 51 virtual void didReceiveSessionBinaryMessage(WebPresentationSessionClient*, c
onst uint8_t* data, size_t length) override; |
51 | 52 |
52 // Connects the |Presentation| object with this controller. | 53 // Connects the |Presentation| object with this controller. |
53 void setPresentation(Presentation*); | 54 void setPresentation(Presentation*); |
54 | 55 |
55 private: | 56 private: |
56 PresentationController(LocalFrame&, WebPresentationClient*); | 57 PresentationController(LocalFrame&, WebPresentationClient*); |
57 | 58 |
58 // Implementation of LocalFrameLifecycleObserver. | 59 // Implementation of LocalFrameLifecycleObserver. |
59 virtual void willDetachFrameHost() override; | 60 virtual void willDetachFrameHost() override; |
60 | 61 |
61 WebPresentationClient* m_client; | 62 WebPresentationClient* m_client; |
62 PersistentWillBeMember<Presentation> m_presentation; | 63 PersistentWillBeMember<Presentation> m_presentation; |
63 }; | 64 }; |
64 | 65 |
65 } // namespace blink | 66 } // namespace blink |
66 | 67 |
67 #endif // PresentationController_h | 68 #endif // PresentationController_h |
OLD | NEW |