Chromium Code Reviews| Index: media/base/android/cdm_factory.h |
| diff --git a/media/base/android/cdm_factory.h b/media/base/android/cdm_factory.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..98cf5cb278792de0206ac0f8dc5c0047c8693561 |
| --- /dev/null |
| +++ b/media/base/android/cdm_factory.h |
| @@ -0,0 +1,27 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef MEDIA_BASE_ANDROID_CDM_FACTORY_H_ |
| +#define MEDIA_BASE_ANDROID_CDM_FACTORY_H_ |
| + |
| +#include <string> |
| + |
| +#include "base/memory/scoped_ptr.h" |
| +#include "media/base/media_export.h" |
| +#include "media/base/media_keys.h" |
| + |
| +namespace media { |
| + |
| +// Creates a CDM for |key_system|. Returns NULL if the CDM cannot be created. |
| +scoped_ptr<MediaKeys> MEDIA_EXPORT |
| + CreateCdm(const std::string& key_system, |
|
ddorwin
2014/05/13 00:59:38
This name could conflict with other code in media.
damienv1
2014/05/13 17:07:07
This is a static function that is invoked to creat
ddorwin
2014/05/13 17:17:37
If it's only used for platform-based (browser proc
xhwang
2014/05/14 16:42:06
Done.
|
| + const SessionCreatedCB& session_created_cb, |
| + const SessionMessageCB& session_message_cb, |
| + const SessionReadyCB& session_ready_cb, |
| + const SessionClosedCB& session_closed_cb, |
| + const SessionErrorCB& session_error_cb); |
| + |
| +} // namespace media |
| + |
| +#endif // MEDIA_BASE_ANDROID_CDM_FACTORY_H_ |
|
damienv1
2014/05/12 23:14:26
This file could already be part of media/base/ (at
xhwang
2014/05/14 16:42:06
Good point. Done.
|