Chromium Code Reviews| Index: chromecast/media/cdm/browser_cdm_cast.cc |
| diff --git a/chromecast/media/cdm/browser_cdm_cast.cc b/chromecast/media/cdm/browser_cdm_cast.cc |
| index ded9448892a3f797c188aea8bbac775be2a9d884..dde7fa2203cf68b401078044c3dba4baf5f2a96b 100644 |
| --- a/chromecast/media/cdm/browser_cdm_cast.cc |
| +++ b/chromecast/media/cdm/browser_cdm_cast.cc |
| @@ -57,6 +57,22 @@ void BrowserCdmCast::UnregisterPlayer(int registration_id) { |
| cdm_unset_callbacks_.erase(registration_id); |
| } |
| +void BrowserCdmCast::LoadSession( |
| + ::media::MediaKeys::SessionType session_type, |
| + const std::string& session_id, |
| + scoped_ptr<::media::NewSessionCdmPromise> promise) { |
| + NOTIMPLEMENTED() << "LoadSession not supported"; |
|
ddorwin
2015/03/05 20:59:57
I think maybe this should be a DCHECK. At least in
gunsch
2015/03/05 21:12:49
Changed to a NOTREACHED.
|
| + session_error_cb_.Run(session_id, |
| + ::media::MediaKeys::Exception::NOT_SUPPORTED_ERROR, |
| + 0, |
| + std::string()); |
| +} |
| + |
| +::media::CdmContext* BrowserCdmCast::GetCdmContext() { |
| + NOTREACHED(); |
|
ddorwin
2015/03/05 20:59:57
Are you sure this is not reachable? I thought this
xhwang
2015/03/05 21:12:39
This is okay and is actually what MediaDrmBridge i
gunsch
2015/03/05 21:12:49
MediaDrmBridge does the same:
https://code.google
|
| + return nullptr; |
| +} |
| + |
| void BrowserCdmCast::OnSessionMessage(const std::string& session_id, |
| const std::vector<uint8>& message, |
| const GURL& destination_url) { |