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/mojo/services/mojo_cdm_factory_service.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 #include "media/mojo/services/mojo_cdm_service_context.h" |
| 9 |
| 10 namespace media { |
| 11 |
| 12 MojoCdmFactoryService::MojoCdmFactoryService(MojoCdmServiceContext* context) |
| 13 : context_(context) { |
| 14 DCHECK(context_); |
| 15 } |
| 16 |
| 17 MojoCdmFactoryService::~MojoCdmFactoryService() { |
| 18 } |
| 19 |
| 20 void MojoCdmFactoryService::Create( |
| 21 const mojo::String& key_system, |
| 22 const mojo::String& security_origin, |
| 23 int32_t cdm_id, |
| 24 mojo::InterfaceRequest<mojo::ContentDecryptionModule> cdm) { |
| 25 DVLOG(1) << __FUNCTION__ << ": " << key_system; |
| 26 MojoCdmService* cdm_service = |
| 27 context_->Create(key_system, security_origin, cdm_id); |
| 28 mojo::WeakBindToRequest(cdm_service, &cdm); |
| 29 } |
| 30 |
| 31 } // namespace media |
OLD | NEW |