| 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/webcontentdecryptionmodule_impl.h" | 5 #include "content/renderer/media/webcontentdecryptionmodule_impl.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 session_id, | 203 session_id, |
| 204 media_keys_.get(), | 204 media_keys_.get(), |
| 205 client, | 205 client, |
| 206 base::Bind(&WebContentDecryptionModuleImpl::OnSessionClosed, | 206 base::Bind(&WebContentDecryptionModuleImpl::OnSessionClosed, |
| 207 base::Unretained(this))); | 207 base::Unretained(this))); |
| 208 | 208 |
| 209 adapter_->AddSession(session_id, session); | 209 adapter_->AddSession(session_id, session); |
| 210 return session; | 210 return session; |
| 211 } | 211 } |
| 212 | 212 |
| 213 media::Decryptor* WebContentDecryptionModuleImpl::GetDecryptor() { |
| 214 return media_keys_->GetDecryptor(); |
| 215 } |
| 216 |
| 213 void WebContentDecryptionModuleImpl::OnSessionClosed(uint32 session_id) { | 217 void WebContentDecryptionModuleImpl::OnSessionClosed(uint32 session_id) { |
| 214 adapter_->RemoveSession(session_id); | 218 adapter_->RemoveSession(session_id); |
| 215 } | 219 } |
| 216 | 220 |
| 217 } // namespace content | 221 } // namespace content |
| OLD | NEW |