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

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

Issue 2471573005: [Presentation API] (5th) (1-UA) integrate controller and receiver side for 1-UA messaging (Closed)
Patch Set: split renderer related changes into 4th patch Created 4 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 <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 int render_process_id, 212 int render_process_id,
213 int render_frame_id, 213 int render_frame_id,
214 const PresentationSessionInfo& connection, 214 const PresentationSessionInfo& connection,
215 const PresentationConnectionStateChangedCallback& state_changed_cb) = 0; 215 const PresentationConnectionStateChangedCallback& state_changed_cb) = 0;
216 216
217 // Connect |connection| owned by the controlling frame to the offscreen 217 // Connect |connection| owned by the controlling frame to the offscreen
218 // presentation represented by |session|. 218 // presentation represented by |session|.
219 // |render_process_id|, |render_frame_id|: ID of originating frame. 219 // |render_process_id|, |render_frame_id|: ID of originating frame.
220 // |connection|: Pointer to controller's presentation connection, 220 // |connection|: Pointer to controller's presentation connection,
221 // ownership passed from controlling frame to the offscreen presentation. 221 // ownership passed from controlling frame to the offscreen presentation.
222 virtual void ConnectToOffscreenPresentation( 222 virtual void ConnectToPresentation(int render_process_id,
223 int render_process_id, 223 int render_frame_id,
224 int render_frame_id, 224 const PresentationSessionInfo& session,
225 const PresentationSessionInfo& session, 225 PresentationConnectionPtr connection) = 0;
226 PresentationConnectionPtr connection) = 0;
227 }; 226 };
228 227
229 // An interface implemented by embedders to handle 228 // An interface implemented by embedders to handle
230 // PresentationService calls from a presentation receiver. 229 // PresentationService calls from a presentation receiver.
231 class CONTENT_EXPORT ReceiverPresentationServiceDelegate 230 class CONTENT_EXPORT ReceiverPresentationServiceDelegate
232 : public PresentationServiceDelegateBase { 231 : public PresentationServiceDelegateBase {
233 public: 232 public:
234 // Registers a callback from the embedder when an offscreeen presentation has 233 // Registers a callback from the embedder when an offscreeen presentation has
235 // been successfully started. 234 // been successfully started.
236 // |receiver_available_callback|: Invoked when successfully starting a 235 // |receiver_available_callback|: Invoked when successfully starting a
237 // offscreen presentation session. 236 // offscreen presentation session.
238 virtual void RegisterReceiverConnectionAvailableCallback( 237 virtual void RegisterReceiverConnectionAvailableCallback(
239 const content::ReceiverConnectionAvailableCallback& 238 const content::ReceiverConnectionAvailableCallback&
240 receiver_available_callback) = 0; 239 receiver_available_callback) = 0;
241 }; 240 };
242 241
243 } // namespace content 242 } // namespace content
244 243
245 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_ 244 #endif // CONTENT_PUBLIC_BROWSER_PRESENTATION_SERVICE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698