diff options
author | Artem Strygin <art-snake@yandex-team.ru> | 2017-10-03 18:16:25 +0300 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-10-03 16:22:16 +0000 |
commit | e4289f69a28d26d14c94bcc0c0b8368dbc2f7e1c (patch) | |
tree | f7727344c28d4046ab14066758bccb905708f8bb /core/fpdfapi/parser/cpdf_security_handler.h | |
parent | 6caef3028fd5ce9751fb246b084ad0e139aa9c77 (diff) | |
download | pdfium-e4289f69a28d26d14c94bcc0c0b8368dbc2f7e1c.tar.xz |
Remove the parser from the CPDF_SecurityHandler .
Change-Id: I9fb651285c158e0f61d19e1aaf0d8bcfd302a22f
Reviewed-on: https://pdfium-review.googlesource.com/15290
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Art Snake <art-snake@yandex-team.ru>
Diffstat (limited to 'core/fpdfapi/parser/cpdf_security_handler.h')
-rw-r--r-- | core/fpdfapi/parser/cpdf_security_handler.h | 7 |
1 files changed, 5 insertions, 2 deletions
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<CPDF_Parser> m_pParser; UnownedPtr<CPDF_Dictionary> m_pEncryptDict; + UnownedPtr<const CPDF_Array> m_pIdArray; + ByteString m_Password; uint32_t m_Permissions; int m_Cipher; uint8_t m_EncryptKey[32]; |