summaryrefslogtreecommitdiff
path: root/core/fpdfapi/parser/cpdf_security_handler.h
diff options
context:
space:
mode:
authorArtem Strygin <art-snake@yandex-team.ru>2017-10-03 21:47:34 +0300
committerChromium commit bot <commit-bot@chromium.org>2017-10-03 19:17:25 +0000
commit609d1fd4a4360e2592c5c59d60758ac67a1cb4ee (patch)
tree7b9502134165d50d486d925ed472226aabd4abb0 /core/fpdfapi/parser/cpdf_security_handler.h
parentdf3d229b592d1ebc7019797e0015dd2219fa3d0c (diff)
downloadpdfium-609d1fd4a4360e2592c5c59d60758ac67a1cb4ee.tar.xz
Improve CPDF_SecurityHandler code style.
Make m_pEncryptDict as constant value. Change-Id: I4f65578e936eae5bd6afe9bfed20da3ab8e20de3 Reviewed-on: https://pdfium-review.googlesource.com/15350 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.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/fpdfapi/parser/cpdf_security_handler.h b/core/fpdfapi/parser/cpdf_security_handler.h
index c92dc46862..15be505705 100644
--- a/core/fpdfapi/parser/cpdf_security_handler.h
+++ b/core/fpdfapi/parser/cpdf_security_handler.h
@@ -29,7 +29,7 @@ class CPDF_SecurityHandler {
CPDF_SecurityHandler();
~CPDF_SecurityHandler();
- bool OnInit(CPDF_Dictionary* pEncryptDict,
+ bool OnInit(const CPDF_Dictionary* pEncryptDict,
const CPDF_Array* pIdArray,
const ByteString& password);
uint32_t GetPermissions();
@@ -57,8 +57,8 @@ class CPDF_SecurityHandler {
}
private:
- bool LoadDict(CPDF_Dictionary* pEncryptDict);
- bool LoadDict(CPDF_Dictionary* pEncryptDict,
+ bool LoadDict(const CPDF_Dictionary* pEncryptDict);
+ bool LoadDict(const CPDF_Dictionary* pEncryptDict,
uint32_t type,
int& cipher,
int& key_len);
@@ -94,7 +94,7 @@ class CPDF_SecurityHandler {
int m_Version;
int m_Revision;
- UnownedPtr<CPDF_Dictionary> m_pEncryptDict;
+ UnownedPtr<const CPDF_Dictionary> m_pEncryptDict;
UnownedPtr<const CPDF_Array> m_pIdArray;
uint32_t m_Permissions;
int m_Cipher;