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 #ifndef MEDIA_BASE_ANDROID_CDM_FACTORY_H_ |
| 6 #define MEDIA_BASE_ANDROID_CDM_FACTORY_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "media/base/media_keys.h" |
| 12 |
| 13 namespace media { |
| 14 |
| 15 // Creates a CDM for |key_system|. Returns NULL if the CDM cannot be created. |
| 16 scoped_ptr<MediaKeys> CreateCdm(const std::string& key_system, |
| 17 const SessionCreatedCB& session_created_cb, |
| 18 const SessionMessageCB& session_message_cb, |
| 19 const SessionReadyCB& session_ready_cb, |
| 20 const SessionClosedCB& session_closed_cb, |
| 21 const SessionErrorCB& session_error_cb); |
| 22 |
| 23 } // namespace media |
| 24 |
| 25 #endif // MEDIA_BASE_ANDROID_CDM_FACTORY_H_ |
OLD | NEW |