| 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..b8f45e0ce7908b2670e7b7c61d2c88acd6f99687
|
| --- /dev/null
|
| +++ b/media/base/android/cdm_factory.h
|
| @@ -0,0 +1,25 @@
|
| +// 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_keys.h"
|
| +
|
| +namespace media {
|
| +
|
| +// Creates a CDM for |key_system|. Returns NULL if the CDM cannot be created.
|
| +scoped_ptr<MediaKeys> CreateCdm(const std::string& key_system,
|
| + 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_
|
|
|