There were some mistakes in previous merges from pi-dev to master in whitespace and copyright notices. This fixes them. Test: tested as part of http://go/ag/4674759 Change-Id: Iae46c121de59233b62925a4d8c97f2b370e3e7f1
50 lines
1.5 KiB
C++
50 lines
1.5 KiB
C++
//
|
|
// Copyright 2018 Google LLC. All Rights Reserved. This file and proprietary
|
|
// source code may only be used and distributed under the Widevine Master
|
|
// License Agreement.
|
|
//
|
|
#ifndef WIDEVINE_VENDOR_VTS_MODULE
|
|
#define WIDEVINE_VENDOR_VTS_MODULE
|
|
|
|
#include <utils/Log.h>
|
|
|
|
#include "drm_hal_vendor_module_api.h"
|
|
|
|
using std::vector;
|
|
|
|
/**
|
|
* Define the DrmHalVTSVendorModule_V1 for Widevine. Refer to
|
|
* drm_hal_vendor_module_api.h for more details.
|
|
*/
|
|
namespace widevine_vts {
|
|
|
|
class WidevineVTSVendorModule_V1 : public DrmHalVTSVendorModule_V1 {
|
|
public:
|
|
WidevineVTSVendorModule_V1() {}
|
|
virtual ~WidevineVTSVendorModule_V1() {}
|
|
|
|
virtual vector<uint8_t> getUUID() const;
|
|
|
|
virtual vector<uint8_t> handleProvisioningRequest(const vector<uint8_t>&
|
|
provisioningRequest, const std::string& url);
|
|
|
|
virtual vector<uint8_t> handleKeyRequest(const vector<uint8_t>&
|
|
keyRequest, const std::string& serverUrl);
|
|
|
|
virtual std::vector<ContentConfiguration>
|
|
getContentConfigurations() const;
|
|
|
|
virtual std::string getServiceName() const {return "widevine";}
|
|
|
|
private:
|
|
WidevineVTSVendorModule_V1(const WidevineVTSVendorModule_V1&) = delete;
|
|
void operator=(const WidevineVTSVendorModule_V1&) = delete;
|
|
|
|
std::string toString(std::vector<uint8_t> vector) {
|
|
return std::string(vector.begin(), vector.end());
|
|
}
|
|
};
|
|
}; // namespace widevine_vts
|
|
|
|
#endif //WIDEVINE_VENDOR_VTS_MODULE
|