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

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: Created 5 years, 1 month 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // successfully. 131 // successfully.
132 // |error_cb|: Invoked with error reason, if joining failed. 132 // |error_cb|: Invoked with error reason, if joining failed.
133 virtual void JoinSession( 133 virtual void JoinSession(
134 int render_process_id, 134 int render_process_id,
135 int render_frame_id, 135 int render_frame_id,
136 const std::string& presentation_url, 136 const std::string& presentation_url,
137 const std::string& presentation_id, 137 const std::string& presentation_id,
138 const PresentationSessionStartedCallback& success_cb, 138 const PresentationSessionStartedCallback& success_cb,
139 const PresentationSessionErrorCallback& error_cb) = 0; 139 const PresentationSessionErrorCallback& error_cb) = 0;
140 140
141 // Close an existing presentation session. 141 // Closes an existing presentation session.
142 // |render_process_id|, |render_frame_id|: ID for originating frame. 142 // |render_process_id|, |render_frame_id|: ID for originating frame.
143 // |presentation_id|: The ID of the presentation to close. 143 // |presentation_id|: The ID of the presentation to close.
144 virtual void CloseSession(int render_process_id, 144 virtual void CloseSession(int render_process_id,
145 int render_frame_id, 145 int render_frame_id,
146 const std::string& presentation_id) = 0; 146 const std::string& presentation_id) = 0;
147 147
148 // Terminates an existing presentation session.
149 // |render_process_id|, |render_frame_id|: ID for originating frame.
150 // |presentation_id|: The ID of the presentation to terminate.
151 virtual void TerminateSession(int render_process_id,
152 int render_frame_id,
153 const std::string& presentation_id) = 0;
154
148 // Listen for messages for a presentation session. 155 // Listen for messages for a presentation session.
whywhat 2015/11/20 06:26:49 nit: should you add 's' to the leading verb here a
mlamouri (slow - plz ping) 2015/11/27 11:48:47 Done.
149 // |render_process_id|, |render_frame_id|: ID for originating frame. 156 // |render_process_id|, |render_frame_id|: ID for originating frame.
150 // |session|: URL and ID of presentation session to listen for messages. 157 // |session|: URL and ID of presentation session to listen for messages.
151 // |message_cb|: Invoked with a non-empty list of messages whenever there are 158 // |message_cb|: Invoked with a non-empty list of messages whenever there are
152 // messages. 159 // messages.
153 virtual void ListenForSessionMessages( 160 virtual void ListenForSessionMessages(
154 int render_process_id, 161 int render_process_id,
155 int render_frame_id, 162 int render_frame_id,
156 const content::PresentationSessionInfo& session, 163 const content::PresentationSessionInfo& session,
157 const PresentationSessionMessageCallback& message_cb) = 0; 164 const PresentationSessionMessageCallback& message_cb) = 0;
158 165
(...skipping 15 matching lines...) Expand all
174 // there is a state change. 181 // there is a state change.
175 virtual void ListenForSessionStateChange( 182 virtual void ListenForSessionStateChange(
176 int render_process_id, 183 int render_process_id,
177 int render_frame_id, 184 int render_frame_id,
178 const SessionStateChangedCallback& state_changed_cb) = 0; 185 const SessionStateChangedCallback& state_changed_cb) = 0;
179 }; 186 };
180 187
181 } // namespace content 188 } // namespace content
182 189
183 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_ 190 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698