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/dom/ContextLifecycleObserver.h" | 8 #include "core/dom/ContextLifecycleObserver.h" |
9 #include "core/frame/LocalFrame.h" | 9 #include "core/frame/LocalFrame.h" |
10 #include "modules/ModulesExport.h" | 10 #include "modules/ModulesExport.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 static PresentationController* from(LocalFrame&); | 38 static PresentationController* from(LocalFrame&); |
39 | 39 |
40 static void provideTo(LocalFrame&, WebPresentationClient*); | 40 static void provideTo(LocalFrame&, WebPresentationClient*); |
41 | 41 |
42 WebPresentationClient* client(); | 42 WebPresentationClient* client(); |
43 | 43 |
44 // Implementation of Supplement. | 44 // Implementation of Supplement. |
45 DECLARE_VIRTUAL_TRACE(); | 45 DECLARE_VIRTUAL_TRACE(); |
46 | 46 |
47 // Implementation of WebPresentationController. | 47 // Implementation of WebPresentationController. |
48 void didStartDefaultSession(const WebPresentationSessionInfo&) override; | 48 WebPresentationConnection* didStartDefaultSession( |
| 49 const WebPresentationSessionInfo&) override; |
49 void didChangeSessionState(const WebPresentationSessionInfo&, | 50 void didChangeSessionState(const WebPresentationSessionInfo&, |
50 WebPresentationConnectionState) override; | 51 WebPresentationConnectionState) override; |
51 void didCloseConnection(const WebPresentationSessionInfo&, | 52 void didCloseConnection(const WebPresentationSessionInfo&, |
52 WebPresentationConnectionCloseReason, | 53 WebPresentationConnectionCloseReason, |
53 const WebString& message) override; | 54 const WebString& message) override; |
54 void didReceiveSessionTextMessage(const WebPresentationSessionInfo&, | 55 void didReceiveSessionTextMessage(const WebPresentationSessionInfo&, |
55 const WebString&) override; | 56 const WebString&) override; |
56 void didReceiveSessionBinaryMessage(const WebPresentationSessionInfo&, | 57 void didReceiveSessionBinaryMessage(const WebPresentationSessionInfo&, |
57 const uint8_t* data, | 58 const uint8_t* data, |
58 size_t length) override; | 59 size_t length) override; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 // The presentation connections associated with that frame. | 101 // The presentation connections associated with that frame. |
101 // TODO(mlamouri): the PresentationController will keep any created | 102 // TODO(mlamouri): the PresentationController will keep any created |
102 // connections alive until the frame is detached. These should be weak ptr | 103 // connections alive until the frame is detached. These should be weak ptr |
103 // so that the connection can be GC'd. | 104 // so that the connection can be GC'd. |
104 HeapHashSet<Member<PresentationConnection>> m_connections; | 105 HeapHashSet<Member<PresentationConnection>> m_connections; |
105 }; | 106 }; |
106 | 107 |
107 } // namespace blink | 108 } // namespace blink |
108 | 109 |
109 #endif // PresentationController_h | 110 #endif // PresentationController_h |
OLD | NEW |