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

Side by Side Diff: webkit/media/android/media_source_delegate.cc

Issue 15772012: Separate MediaKeys interface from Decryptor interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « webkit/media/android/media_source_delegate.h ('k') | webkit/media/crypto/ppapi/clear_key_cdm.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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "webkit/media/android/media_source_delegate.h" 5 #include "webkit/media/android/media_source_delegate.h"
6 6
7 #include "base/message_loop_proxy.h" 7 #include "base/message_loop_proxy.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "media/base/android/demuxer_stream_player_params.h" 9 #include "media/base/android/demuxer_stream_player_params.h"
10 #include "media/base/bind_to_loop.h" 10 #include "media/base/bind_to_loop.h"
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 void MediaSourceDelegate::OnDemuxerOpened() { 440 void MediaSourceDelegate::OnDemuxerOpened() {
441 if (!media_source_) 441 if (!media_source_)
442 return; 442 return;
443 443
444 media_source_->open(new WebMediaSourceClientImpl( 444 media_source_->open(new WebMediaSourceClientImpl(
445 chunk_demuxer_.get(), base::Bind(&LogMediaSourceError, media_log_))); 445 chunk_demuxer_.get(), base::Bind(&LogMediaSourceError, media_log_)));
446 } 446 }
447 447
448 void MediaSourceDelegate::OnKeyError(const std::string& key_system, 448 void MediaSourceDelegate::OnKeyError(const std::string& key_system,
449 const std::string& session_id, 449 const std::string& session_id,
450 media::Decryptor::KeyError error_code, 450 media::MediaKeys::KeyError error_code,
451 int system_code) { 451 int system_code) {
452 if (!client_) 452 if (!client_)
453 return; 453 return;
454 454
455 client_->keyError( 455 client_->keyError(
456 WebString::fromUTF8(key_system), 456 WebString::fromUTF8(key_system),
457 WebString::fromUTF8(session_id), 457 WebString::fromUTF8(session_id),
458 static_cast<WebKit::WebMediaPlayerClient::MediaKeyErrorCode>(error_code), 458 static_cast<WebKit::WebMediaPlayerClient::MediaKeyErrorCode>(error_code),
459 system_code); 459 system_code);
460 } 460 }
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 void MediaSourceDelegate::OnDecryptorReady(media::Decryptor* decryptor) {} 511 void MediaSourceDelegate::OnDecryptorReady(media::Decryptor* decryptor) {}
512 512
513 scoped_ptr<media::TextTrack> MediaSourceDelegate::OnAddTextTrack( 513 scoped_ptr<media::TextTrack> MediaSourceDelegate::OnAddTextTrack(
514 media::TextKind kind, 514 media::TextKind kind,
515 const std::string& label, 515 const std::string& label,
516 const std::string& language) { 516 const std::string& language) {
517 return scoped_ptr<media::TextTrack>(); 517 return scoped_ptr<media::TextTrack>();
518 } 518 }
519 519
520 } // namespace webkit_media 520 } // namespace webkit_media
OLDNEW
« no previous file with comments | « webkit/media/android/media_source_delegate.h ('k') | webkit/media/crypto/ppapi/clear_key_cdm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698