Adds support and tests for the new isContentTypeSupported API to the Widevine DrmEngine. Bug: 10244066 Merge of https://widevine-internal-review.googlesource.com/#/c/7321/ from the Widevine CDM repo. Change-Id: I4f606de7897a49da745ff76faceeb358f8ac9073
36 lines
830 B
C++
36 lines
830 B
C++
//
|
|
// Copyright 2013 Google Inc. All Rights Reserved.
|
|
//
|
|
|
|
#ifndef WV_DRM_FACTORY_H_
|
|
#define WV_DRM_FACTORY_H_
|
|
|
|
#include "media/drm/DrmAPI.h"
|
|
#include "media/stagefright/foundation/ABase.h"
|
|
#include "utils/Errors.h"
|
|
#include "WVGenericCryptoInterface.h"
|
|
|
|
namespace wvdrm {
|
|
|
|
class WVDrmFactory : public android::DrmFactory {
|
|
public:
|
|
WVDrmFactory() {};
|
|
virtual ~WVDrmFactory() {};
|
|
|
|
virtual bool isCryptoSchemeSupported(const uint8_t uuid[16]);
|
|
|
|
virtual bool isContentTypeSupported(const android::String8 &mimeType);
|
|
|
|
virtual android::status_t createDrmPlugin(const uint8_t uuid[16],
|
|
android::DrmPlugin** plugin);
|
|
|
|
private:
|
|
DISALLOW_EVIL_CONSTRUCTORS(WVDrmFactory);
|
|
|
|
static WVGenericCryptoInterface sOemCryptoInterface;
|
|
};
|
|
|
|
} // namespace wvdrm
|
|
|
|
#endif // WV_DRM_FACTORY_H_
|