(This is a merge of http://go/wvgerrit/14082) Previously, the CryptoFactory had special behavior to defer creation to Widevine Classic if no session ID was provided. This functionality has been deprecated, as MediaCodec Mode is no longer supported. This is necessary as part of supporting the new API for session ID changes because the expectation is that it is now legal to initialize a modular CryptoPlugin without a session ID. Bug: 19570317 Change-Id: Iad0cd01b6a8d2e66c94c5f53a8a60f5787bc02f8
32 lines
767 B
C++
32 lines
767 B
C++
//
|
|
// Copyright 2013 Google Inc. All Rights Reserved.
|
|
//
|
|
|
|
#ifndef WV_CRYPTO_FACTORY_H_
|
|
#define WV_CRYPTO_FACTORY_H_
|
|
|
|
#include "media/hardware/CryptoAPI.h"
|
|
#include "media/stagefright/foundation/ABase.h"
|
|
#include "utils/Errors.h"
|
|
|
|
namespace wvdrm {
|
|
|
|
class WVCryptoFactory : public android::CryptoFactory {
|
|
public:
|
|
WVCryptoFactory() {}
|
|
virtual ~WVCryptoFactory() {}
|
|
|
|
virtual bool isCryptoSchemeSupported(const uint8_t uuid[16]) const;
|
|
|
|
virtual android::status_t createPlugin(const uint8_t uuid[16],
|
|
const void* data, size_t size,
|
|
android::CryptoPlugin** plugin);
|
|
|
|
private:
|
|
DISALLOW_EVIL_CONSTRUCTORS(WVCryptoFactory);
|
|
};
|
|
|
|
} // namespace wvdrm
|
|
|
|
#endif // WV_CRYPTO_FACTORY_H_
|