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 CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_ |
6 #define CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 // successfully. | 130 // successfully. |
131 // |error_cb|: Invoked with error reason, if joining failed. | 131 // |error_cb|: Invoked with error reason, if joining failed. |
132 virtual void JoinSession( | 132 virtual void JoinSession( |
133 int render_process_id, | 133 int render_process_id, |
134 int render_frame_id, | 134 int render_frame_id, |
135 const std::string& presentation_url, | 135 const std::string& presentation_url, |
136 const std::string& presentation_id, | 136 const std::string& presentation_id, |
137 const PresentationSessionStartedCallback& success_cb, | 137 const PresentationSessionStartedCallback& success_cb, |
138 const PresentationSessionErrorCallback& error_cb) = 0; | 138 const PresentationSessionErrorCallback& error_cb) = 0; |
139 | 139 |
140 // Closes an existing presentation session. | 140 // Closes an existing presentation connection. |
141 // |render_process_id|, |render_frame_id|: ID for originating frame. | 141 // |render_process_id|, |render_frame_id|: ID for originating frame. |
142 // |presentation_id|: The ID of the presentation to close. | 142 // |presentation_id|: The ID of the presentation to close. |
143 virtual void CloseSession(int render_process_id, | 143 virtual void CloseConnection(int render_process_id, |
144 int render_frame_id, | 144 int render_frame_id, |
145 const std::string& presentation_id) = 0; | 145 const std::string& presentation_id) = 0; |
146 | 146 |
147 // Terminates an existing presentation session. | 147 // Terminates an existing presentation. |
148 // |render_process_id|, |render_frame_id|: ID for originating frame. | 148 // |render_process_id|, |render_frame_id|: ID for originating frame. |
149 // |presentation_id|: The ID of the presentation to terminate. | 149 // |presentation_id|: The ID of the presentation to terminate. |
150 virtual void TerminateSession(int render_process_id, | 150 virtual void Terminate(int render_process_id, |
151 int render_frame_id, | 151 int render_frame_id, |
152 const std::string& presentation_id) = 0; | 152 const std::string& presentation_id) = 0; |
153 | 153 |
154 // Listens for messages for a presentation session. | 154 // Listens for messages for a presentation session. |
155 // |render_process_id|, |render_frame_id|: ID for originating frame. | 155 // |render_process_id|, |render_frame_id|: ID for originating frame. |
156 // |session|: URL and ID of presentation session to listen for messages. | 156 // |session|: URL and ID of presentation session to listen for messages. |
157 // |message_cb|: Invoked with a non-empty list of messages whenever there are | 157 // |message_cb|: Invoked with a non-empty list of messages whenever there are |
158 // messages. | 158 // messages. |
159 virtual void ListenForSessionMessages( | 159 virtual void ListenForSessionMessages( |
160 int render_process_id, | 160 int render_process_id, |
161 int render_frame_id, | 161 int render_frame_id, |
162 const content::PresentationSessionInfo& session, | 162 const content::PresentationSessionInfo& session, |
(...skipping 20 matching lines...) Expand all Loading... |
183 virtual void ListenForConnectionStateChange( | 183 virtual void ListenForConnectionStateChange( |
184 int render_process_id, | 184 int render_process_id, |
185 int render_frame_id, | 185 int render_frame_id, |
186 const PresentationSessionInfo& connection, | 186 const PresentationSessionInfo& connection, |
187 const PresentationConnectionStateChangedCallback& state_changed_cb) = 0; | 187 const PresentationConnectionStateChangedCallback& state_changed_cb) = 0; |
188 }; | 188 }; |
189 | 189 |
190 } // namespace content | 190 } // namespace content |
191 | 191 |
192 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_ | 192 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_ |
OLD | NEW |