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

Side by Side Diff: chrome/browser/media/router/presentation_service_delegate_impl.h

Issue 2471883002: [Presentation API] (1st) (1-UA) Add is_offscreen_presentation attribute to MediaRouter (Closed)
Patch Set: merge with master Created 4 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 CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_ 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_
6 #define CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_ 6 #define CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 explicit PresentationServiceDelegateImpl(content::WebContents* web_contents); 176 explicit PresentationServiceDelegateImpl(content::WebContents* web_contents);
177 177
178 // Returns |listener|'s presentation URL as a MediaSource. If |listener| does 178 // Returns |listener|'s presentation URL as a MediaSource. If |listener| does
179 // not have a persentation URL, returns the tab mirroring MediaSource. 179 // not have a persentation URL, returns the tab mirroring MediaSource.
180 MediaSource GetMediaSourceFromListener( 180 MediaSource GetMediaSourceFromListener(
181 content::PresentationScreenAvailabilityListener* listener); 181 content::PresentationScreenAvailabilityListener* listener);
182 182
183 void OnJoinRouteResponse( 183 void OnJoinRouteResponse(
184 int render_process_id, 184 int render_process_id,
185 int render_frame_id, 185 int render_frame_id,
186 const content::PresentationSessionInfo& session, 186 const GURL& presentation_url,
187 const std::string& presentation_id,
187 const content::PresentationSessionStartedCallback& success_cb, 188 const content::PresentationSessionStartedCallback& success_cb,
188 const content::PresentationSessionErrorCallback& error_cb, 189 const content::PresentationSessionErrorCallback& error_cb,
189 const RouteRequestResult& result); 190 const RouteRequestResult& result);
190 191
191 void OnStartSessionSucceeded( 192 void OnStartSessionSucceeded(
192 int render_process_id, 193 int render_process_id,
193 int render_frame_id, 194 int render_frame_id,
194 const content::PresentationSessionStartedCallback& success_cb, 195 const content::PresentationSessionStartedCallback& success_cb,
195 const content::PresentationSessionInfo& new_session, 196 const content::PresentationSessionInfo& new_session,
196 const MediaRoute::Id& route_id); 197 const MediaRoute& route);
197 198
198 // References to the WebContents that owns this instance, and associated 199 // References to the WebContents that owns this instance, and associated
199 // browser profile's MediaRouter instance. 200 // browser profile's MediaRouter instance.
200 content::WebContents* const web_contents_; 201 content::WebContents* const web_contents_;
201 MediaRouter* router_; 202 MediaRouter* router_;
202 203
203 std::unique_ptr<PresentationFrameManager> frame_manager_; 204 std::unique_ptr<PresentationFrameManager> frame_manager_;
204 205
205 base::WeakPtrFactory<PresentationServiceDelegateImpl> weak_factory_; 206 base::WeakPtrFactory<PresentationServiceDelegateImpl> weak_factory_;
206 207
207 DISALLOW_COPY_AND_ASSIGN(PresentationServiceDelegateImpl); 208 DISALLOW_COPY_AND_ASSIGN(PresentationServiceDelegateImpl);
208 }; 209 };
209 210
210 } // namespace media_router 211 } // namespace media_router
211 212
212 #endif // CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_ 213 #endif // CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698