Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "media/cdm/default_cdm_factory.h" | |
| 6 | |
| 7 #include "media/base/key_systems.h" | |
| 8 #include "media/cdm/aes_decryptor.h" | |
| 9 | |
| 10 namespace media { | |
| 11 | |
| 12 DefaultCdmFactory::DefaultCdmFactory() { | |
| 13 } | |
| 14 | |
| 15 DefaultCdmFactory::~DefaultCdmFactory() { | |
| 16 } | |
| 17 | |
| 18 scoped_ptr<MediaKeys> DefaultCdmFactory::Create( | |
| 19 const std::string& key_system, | |
| 20 const GURL& security_origin, | |
| 21 const SessionMessageCB& session_message_cb, | |
| 22 const SessionReadyCB& session_ready_cb, | |
|
ddorwin
2014/12/19 18:16:56
You or John will have to deal with a conflict on t
xhwang
2014/12/19 19:18:30
Acknowledged.
| |
| 23 const SessionClosedCB& session_closed_cb, | |
| 24 const SessionErrorCB& session_error_cb, | |
| 25 const SessionKeysChangeCB& session_keys_change_cb, | |
| 26 const SessionExpirationUpdateCB& session_expiration_update_cb) { | |
| 27 if (CanUseAesDecryptor(key_system)) { | |
| 28 return make_scoped_ptr(new AesDecryptor( | |
| 29 session_message_cb, session_closed_cb, session_keys_change_cb)); | |
| 30 } | |
| 31 | |
| 32 return nullptr; | |
| 33 } | |
| 34 | |
| 35 } // namespace media | |
| OLD | NEW |