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

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

Issue 2471263003: [Presentation API] (4th)(1-UA blink side) Add WebPresentationConnection and WebPresentationConnecti… (Closed)
Patch Set: resolve code review comments from mlamouri Created 3 years, 11 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/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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698