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

Side by Side Diff: media/blink/webmediaplayer_impl.cc

Issue 594713002: Pass initial CDM to CreateMediaPlayer() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes for android + mojo Created 6 years, 3 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
« no previous file with comments | « media/blink/webmediaplayer_impl.h ('k') | media/blink/webmediaplayer_params.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "media/blink/webmediaplayer_impl.h" 5 #include "media/blink/webmediaplayer_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 } 672 }
673 673
674 void WebMediaPlayerImpl::setContentDecryptionModule( 674 void WebMediaPlayerImpl::setContentDecryptionModule(
675 blink::WebContentDecryptionModule* cdm, 675 blink::WebContentDecryptionModule* cdm,
676 blink::WebContentDecryptionModuleResult result) { 676 blink::WebContentDecryptionModuleResult result) {
677 DCHECK(main_task_runner_->BelongsToCurrentThread()); 677 DCHECK(main_task_runner_->BelongsToCurrentThread());
678 678
679 encrypted_media_support_->SetContentDecryptionModule(cdm, result); 679 encrypted_media_support_->SetContentDecryptionModule(cdm, result);
680 } 680 }
681 681
682 void WebMediaPlayerImpl::setContentDecryptionModuleSync(
683 blink::WebContentDecryptionModule* cdm) {
684 DCHECK(main_task_runner_->BelongsToCurrentThread());
685
686 encrypted_media_support_->SetContentDecryptionModuleSync(cdm);
687 }
688
689 void WebMediaPlayerImpl::OnPipelineSeeked(bool time_changed, 682 void WebMediaPlayerImpl::OnPipelineSeeked(bool time_changed,
690 PipelineStatus status) { 683 PipelineStatus status) {
691 DVLOG(1) << __FUNCTION__ << "(" << time_changed << ", " << status << ")"; 684 DVLOG(1) << __FUNCTION__ << "(" << time_changed << ", " << status << ")";
692 DCHECK(main_task_runner_->BelongsToCurrentThread()); 685 DCHECK(main_task_runner_->BelongsToCurrentThread());
693 seeking_ = false; 686 seeking_ = false;
694 if (pending_seek_) { 687 if (pending_seek_) {
695 pending_seek_ = false; 688 pending_seek_ = false;
696 seek(pending_seek_seconds_); 689 seek(pending_seek_seconds_);
697 return; 690 return;
698 } 691 }
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
1029 compositor_task_runner_->PostTask(FROM_HERE, 1022 compositor_task_runner_->PostTask(FROM_HERE,
1030 base::Bind(&GetCurrentFrameAndSignal, 1023 base::Bind(&GetCurrentFrameAndSignal,
1031 base::Unretained(compositor_), 1024 base::Unretained(compositor_),
1032 &video_frame, 1025 &video_frame,
1033 &event)); 1026 &event));
1034 event.Wait(); 1027 event.Wait();
1035 return video_frame; 1028 return video_frame;
1036 } 1029 }
1037 1030
1038 } // namespace media 1031 } // namespace media
OLDNEW
« no previous file with comments | « media/blink/webmediaplayer_impl.h ('k') | media/blink/webmediaplayer_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698