From e4289f69a28d26d14c94bcc0c0b8368dbc2f7e1c Mon Sep 17 00:00:00 2001 From: Artem Strygin Date: Tue, 3 Oct 2017 18:16:25 +0300 Subject: Remove the parser from the CPDF_SecurityHandler . Change-Id: I9fb651285c158e0f61d19e1aaf0d8bcfd302a22f Reviewed-on: https://pdfium-review.googlesource.com/15290 Reviewed-by: dsinclair Commit-Queue: Art Snake --- core/fpdfapi/parser/cpdf_security_handler.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'core/fpdfapi/parser/cpdf_security_handler.h') diff --git a/core/fpdfapi/parser/cpdf_security_handler.h b/core/fpdfapi/parser/cpdf_security_handler.h index 656aba0058..8b55fa21a7 100644 --- a/core/fpdfapi/parser/cpdf_security_handler.h +++ b/core/fpdfapi/parser/cpdf_security_handler.h @@ -27,7 +27,9 @@ class CPDF_SecurityHandler { CPDF_SecurityHandler(); ~CPDF_SecurityHandler(); - bool OnInit(CPDF_Parser* pParser, CPDF_Dictionary* pEncryptDict); + bool OnInit(CPDF_Dictionary* pEncryptDict, + const CPDF_Array* pIdArray, + const ByteString& password); uint32_t GetPermissions(); bool GetCryptInfo(int& cipher, const uint8_t*& buffer, int& keylen); bool IsMetadataEncrypted() const; @@ -97,8 +99,9 @@ class CPDF_SecurityHandler { int m_Version; int m_Revision; - UnownedPtr m_pParser; UnownedPtr m_pEncryptDict; + UnownedPtr m_pIdArray; + ByteString m_Password; uint32_t m_Permissions; int m_Cipher; uint8_t m_EncryptKey[32]; -- cgit v1.2.3