Merge latest oemcrypto-v17 change
No-Typo-Check: Not related to this change. Bug: 161477208 Change-Id: I99e4780f6855b7045aa0cd5a49c13d2d0d51ed64
This commit is contained in:
committed by
Fred Gylys-Colwell
parent
c924960962
commit
642965c678
@@ -96,14 +96,14 @@ class CdmEngine {
|
||||
// (c) accept a release response and release an offline license or secure
|
||||
// stop.
|
||||
// (d) accept a service certificate and cache that information for the
|
||||
// the lifetime of the session.
|
||||
// lifetime of the session.
|
||||
//
|
||||
// |session_id| identifies the session that generated the request and can
|
||||
// process the response. Should be empty if a release response.
|
||||
// |key_data| is the license, renewal, release response or service
|
||||
// certificate response.
|
||||
// |license_type| must not be null. If the result is KEY_ADDED, this out
|
||||
// parameter indicates the type of license containd in
|
||||
// parameter indicates the type of license contained in
|
||||
// key_data. For any other return code, no value is provided.
|
||||
// |key_set_id| should be non-null and specified if license release.
|
||||
// If offline license or streaming license associated with
|
||||
@@ -197,6 +197,12 @@ class CdmEngine {
|
||||
// (origin-specific) file system.
|
||||
virtual bool IsProvisioned(CdmSecurityLevel security_level);
|
||||
|
||||
// Retrieves the current provisioning status based on whether a DRM
|
||||
// certificate or an OEM certificate (in provisioning 4) exists the current
|
||||
// (origin-specific) file system.
|
||||
virtual CdmProvisioningStatus GetProvisioningStatus(
|
||||
CdmSecurityLevel security_level);
|
||||
|
||||
// Remove device DRM certificate from the current (origin-specific) file
|
||||
// system. This will force the device to reprovision itself.
|
||||
virtual CdmResponseType Unprovision(CdmSecurityLevel security_level);
|
||||
@@ -379,7 +385,7 @@ class CdmEngine {
|
||||
protected:
|
||||
friend class CdmEngineFactory;
|
||||
|
||||
CdmEngine(FileSystem* file_system,
|
||||
CdmEngine(wvutil::FileSystem* file_system,
|
||||
std::shared_ptr<metrics::EngineMetrics> metrics);
|
||||
|
||||
private:
|
||||
@@ -423,8 +429,8 @@ class CdmEngine {
|
||||
CdmSessionMap session_map_;
|
||||
CdmReleaseKeySetMap release_key_sets_;
|
||||
std::unique_ptr<CertificateProvisioning> cert_provisioning_;
|
||||
FileSystem* file_system_;
|
||||
Clock clock_;
|
||||
wvutil::FileSystem* file_system_;
|
||||
wvutil::Clock clock_;
|
||||
std::string spoid_;
|
||||
uint32_t user_id_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user