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

Side by Side Diff: components/html_viewer/html_frame.cc

Issue 1585163002: Media Session: prepare for implicit activation of user created session (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Be clearer about session being a media_session Created 4 years, 11 months 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 #include "components/html_viewer/html_frame.h" 5 #include "components/html_viewer/html_frame.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <algorithm> 8 #include <algorithm>
9 #include <limits> 9 #include <limits>
10 #include <utility> 10 #include <utility>
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 mus::ScopedWindowPtr::DeleteWindowOrWindowManager(window_); 308 mus::ScopedWindowPtr::DeleteWindowOrWindowManager(window_);
309 } 309 }
310 } 310 }
311 311
312 blink::WebMediaPlayer* HTMLFrame::createMediaPlayer( 312 blink::WebMediaPlayer* HTMLFrame::createMediaPlayer(
313 blink::WebLocalFrame* frame, 313 blink::WebLocalFrame* frame,
314 const blink::WebURL& url, 314 const blink::WebURL& url,
315 blink::WebMediaPlayerClient* client, 315 blink::WebMediaPlayerClient* client,
316 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client, 316 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client,
317 blink::WebContentDecryptionModule* initial_cdm, 317 blink::WebContentDecryptionModule* initial_cdm,
318 const blink::WebString& sink_id) { 318 const blink::WebString& sink_id,
319 blink::WebMediaSession*) {
jochen (gone - plz use gerrit) 2016/01/25 11:34:54 same here
319 return global_state()->media_factory()->CreateMediaPlayer( 320 return global_state()->media_factory()->CreateMediaPlayer(
320 frame, url, client, encrypted_client, initial_cdm, GetApp()->shell()); 321 frame, url, client, encrypted_client, initial_cdm, GetApp()->shell());
321 } 322 }
322 323
323 blink::WebFrame* HTMLFrame::createChildFrame( 324 blink::WebFrame* HTMLFrame::createChildFrame(
324 blink::WebLocalFrame* parent, 325 blink::WebLocalFrame* parent,
325 blink::WebTreeScopeType scope, 326 blink::WebTreeScopeType scope,
326 const blink::WebString& frame_name, 327 const blink::WebString& frame_name,
327 blink::WebSandboxFlags sandbox_flags, 328 blink::WebSandboxFlags sandbox_flags,
328 const blink::WebFrameOwnerProperties& frame_owner_properties) { 329 const blink::WebFrameOwnerProperties& frame_owner_properties) {
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after
1039 1040
1040 if (!surface_layer_) 1041 if (!surface_layer_)
1041 return; 1042 return;
1042 1043
1043 surface_layer_->SetSurfaceId(cc::SurfaceId(owned_window_->window()->id()), 1044 surface_layer_->SetSurfaceId(cc::SurfaceId(owned_window_->window()->id()),
1044 global_state()->device_pixel_ratio(), 1045 global_state()->device_pixel_ratio(),
1045 owned_window_->window()->bounds().size()); 1046 owned_window_->window()->bounds().size());
1046 } 1047 }
1047 1048
1048 } // namespace mojo 1049 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698