| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "media/remoting/remoting_cdm_factory.h" | 5 #include "media/remoting/remoting_cdm_factory.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/memory/ptr_util.h" |
| 8 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
| 9 #include "media/base/cdm_config.h" | 10 #include "media/base/cdm_config.h" |
| 10 #include "media/remoting/remoting_cdm.h" | 11 #include "media/remoting/remoting_cdm.h" |
| 11 | 12 |
| 12 namespace media { | 13 namespace media { |
| 13 | 14 |
| 14 RemotingCdmFactory::RemotingCdmFactory( | 15 RemotingCdmFactory::RemotingCdmFactory( |
| 15 std::unique_ptr<CdmFactory> default_cdm_factory, | 16 std::unique_ptr<CdmFactory> default_cdm_factory, |
| 16 mojom::RemoterFactory* remoter_factory, | 17 mojom::RemoterFactory* remoter_factory, |
| 17 std::unique_ptr<RemotingSinkObserver> sink_observer) | 18 std::unique_ptr<RemotingSinkObserver> sink_observer) |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 } else { | 94 } else { |
| 94 VLOG(1) << "Create default CDM."; | 95 VLOG(1) << "Create default CDM."; |
| 95 default_cdm_factory_->Create(key_system, security_origin, cdm_config, | 96 default_cdm_factory_->Create(key_system, security_origin, cdm_config, |
| 96 session_message_cb, session_closed_cb, | 97 session_message_cb, session_closed_cb, |
| 97 session_keys_change_cb, | 98 session_keys_change_cb, |
| 98 session_expiration_update_cb, cdm_created_cb); | 99 session_expiration_update_cb, cdm_created_cb); |
| 99 } | 100 } |
| 100 } | 101 } |
| 101 | 102 |
| 102 } // namespace media | 103 } // namespace media |
| OLD | NEW |