From 06c81c67d259101fba4e068ca198121a55614bd9 Mon Sep 17 00:00:00 2001 From: Lu Chen Date: Tue, 15 Sep 2020 09:57:43 -0700 Subject: [PATCH] Add EMMG to carry fingerprinting and service blocking info --- common/default_device_security_profile_list.h | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 common/default_device_security_profile_list.h diff --git a/common/default_device_security_profile_list.h b/common/default_device_security_profile_list.h new file mode 100644 index 0000000..e5dad24 --- /dev/null +++ b/common/default_device_security_profile_list.h @@ -0,0 +1,33 @@ +// Copyright 2020 Google LLC. All rights reserved. +// +// Description: +// Container of Widevine default security profiless. + +#ifndef VIDEO_WIDEVINE_EXPORT_COMMON_DEFAULT_DEVICE_SECURITY_PROFILE_LIST_H_ +#define VIDEO_WIDEVINE_EXPORT_COMMON_DEFAULT_DEVICE_SECURITY_PROFILE_LIST_H_ + +#include "video/widevine/export/common/security_profile_list.h" + +namespace video_widevine { + +class DefaultDeviceSecurityProfileList : public SecurityProfileList { + public: + DefaultDeviceSecurityProfileList(); + ~DefaultDeviceSecurityProfileList() override {} + + // Initialize the security profile list. The list is initially empty, this + // function will populate the list with default profiles. The size of the + // list is returned. + int Init() override; + + private: + // Initialize the list with Widevine default profiles. The size of the + // profile list after the additions is returned. + virtual int AddDefaultProfiles(); + virtual int GetDefaultProfileStrings( + std::vector* default_profile_strings) const; +}; + +} // namespace video_widevine + +#endif // VIDEO_WIDEVINE_EXPORT_COMMON_DEFAULT_DEVICE_SECURITY_PROFILE_LIST_H_