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

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

Issue 2552343009: [Presentation API] Adds DOMString[] constructor to PresentationRequest. (Closed)
Patch Set: resolve code review comments from foolip 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 size_t length) override; 58 size_t length) override;
59 59
60 // Called by the Presentation object to advertize itself to the controller. 60 // Called by the Presentation object to advertize itself to the controller.
61 // The Presentation object is kept as a WeakMember in order to avoid keeping 61 // The Presentation object is kept as a WeakMember in order to avoid keeping
62 // it alive when it is no longer in the tree. 62 // it alive when it is no longer in the tree.
63 void setPresentation(Presentation*); 63 void setPresentation(Presentation*);
64 64
65 // Called by the Presentation object when the default request is updated 65 // Called by the Presentation object when the default request is updated
66 // in order to notify the client about the change of default presentation 66 // in order to notify the client about the change of default presentation
67 // url. 67 // url.
68 void setDefaultRequestUrl(const KURL&); 68 void setDefaultRequestUrl(const WTF::Vector<KURL>&);
69 69
70 // Handling of running connections. 70 // Handling of running connections.
71 void registerConnection(PresentationConnection*); 71 void registerConnection(PresentationConnection*);
72 72
73 // Return a connection in |m_connections| with id equals to |presentationId|, 73 // Return a connection in |m_connections| with id equals to |presentationId|,
74 // url equals to one of |presentationUrls|, and state is not terminated. 74 // url equals to one of |presentationUrls|, and state is not terminated.
75 // Return null if such a connection does not exist. 75 // Return null if such a connection does not exist.
76 PresentationConnection* findExistingConnection( 76 PresentationConnection* findExistingConnection(
77 const blink::WebVector<blink::WebURL>& presentationUrls, 77 const blink::WebVector<blink::WebURL>& presentationUrls,
78 const blink::WebString& presentationId); 78 const blink::WebString& presentationId);
(...skipping 21 matching lines...) Expand all
100 // The presentation connections associated with that frame. 100 // The presentation connections associated with that frame.
101 // TODO(mlamouri): the PresentationController will keep any created 101 // TODO(mlamouri): the PresentationController will keep any created
102 // connections alive until the frame is detached. These should be weak ptr 102 // connections alive until the frame is detached. These should be weak ptr
103 // so that the connection can be GC'd. 103 // so that the connection can be GC'd.
104 HeapHashSet<Member<PresentationConnection>> m_connections; 104 HeapHashSet<Member<PresentationConnection>> m_connections;
105 }; 105 };
106 106
107 } // namespace blink 107 } // namespace blink
108 108
109 #endif // PresentationController_h 109 #endif // PresentationController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698