OLD | NEW |
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 "content/renderer/media/webcontentdecryptionmodulesession_impl.h" | 5 #include "content/renderer/media/webcontentdecryptionmodulesession_impl.h" |
6 | 6 |
7 #include "base/callback_helpers.h" | 7 #include "base/callback_helpers.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "content/renderer/media/cdm_session_adapter.h" | 10 #include "content/renderer/media/cdm_session_adapter.h" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 void WebContentDecryptionModuleSessionImpl::OnSessionReady() { | 79 void WebContentDecryptionModuleSessionImpl::OnSessionReady() { |
80 client_->ready(); | 80 client_->ready(); |
81 } | 81 } |
82 | 82 |
83 void WebContentDecryptionModuleSessionImpl::OnSessionClosed() { | 83 void WebContentDecryptionModuleSessionImpl::OnSessionClosed() { |
84 client_->close(); | 84 client_->close(); |
85 } | 85 } |
86 | 86 |
87 void WebContentDecryptionModuleSessionImpl::OnSessionError( | 87 void WebContentDecryptionModuleSessionImpl::OnSessionError( |
88 media::MediaKeys::KeyError error_code, | 88 media::MediaKeys::KeyError error_code, |
89 int system_code) { | 89 uint32 system_code) { |
90 client_->error(static_cast<Client::MediaKeyErrorCode>(error_code), | 90 client_->error(static_cast<Client::MediaKeyErrorCode>(error_code), |
91 system_code); | 91 system_code); |
92 } | 92 } |
93 | 93 |
94 } // namespace content | 94 } // namespace content |
OLD | NEW |