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

Side by Side Diff: content/public/browser/presentation_service_delegate.h

Issue 1466573002: Presentation API: implement renderer side of PresentationConnection.close(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years 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 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
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 // Close an existing presentation session. 140 // Closes an existing presentation session.
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 CloseSession(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 // Listen for messages for a presentation session. 147 // Terminates an existing presentation session.
148 // |render_process_id|, |render_frame_id|: ID for originating frame.
149 // |presentation_id|: The ID of the presentation to terminate.
150 virtual void TerminateSession(int render_process_id,
151 int render_frame_id,
152 const std::string& presentation_id) = 0;
153
154 // Listens for messages for a presentation session.
148 // |render_process_id|, |render_frame_id|: ID for originating frame. 155 // |render_process_id|, |render_frame_id|: ID for originating frame.
149 // |session|: URL and ID of presentation session to listen for messages. 156 // |session|: URL and ID of presentation session to listen for messages.
150 // |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
151 // messages. 158 // messages.
152 virtual void ListenForSessionMessages( 159 virtual void ListenForSessionMessages(
153 int render_process_id, 160 int render_process_id,
154 int render_frame_id, 161 int render_frame_id,
155 const content::PresentationSessionInfo& session, 162 const content::PresentationSessionInfo& session,
156 const PresentationSessionMessageCallback& message_cb) = 0; 163 const PresentationSessionMessageCallback& message_cb) = 0;
157 164
(...skipping 18 matching lines...) Expand all
176 virtual void ListenForConnectionStateChange( 183 virtual void ListenForConnectionStateChange(
177 int render_process_id, 184 int render_process_id,
178 int render_frame_id, 185 int render_frame_id,
179 const PresentationSessionInfo& connection, 186 const PresentationSessionInfo& connection,
180 const PresentationConnectionStateChangedCallback& state_changed_cb) = 0; 187 const PresentationConnectionStateChangedCallback& state_changed_cb) = 0;
181 }; 188 };
182 189
183 } // namespace content 190 } // namespace content
184 191
185 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_ 192 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/common/presentation/presentation_service.mojom ('k') | content/renderer/presentation/presentation_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698