summaryrefslogtreecommitdiff
path: root/core/fpdfapi/edit/cpdf_creator.h
diff options
context:
space:
mode:
authorArtem Strygin <art-snake@yandex-team.ru>2017-10-03 19:10:04 +0300
committerChromium commit bot <commit-bot@chromium.org>2017-10-03 18:16:55 +0000
commitb7fe3c6e8c9d332fc6d3ca55ec9f852ce162c5a1 (patch)
treeab4bd11602c77223192796230e785873061d8b6b /core/fpdfapi/edit/cpdf_creator.h
parente4289f69a28d26d14c94bcc0c0b8368dbc2f7e1c (diff)
downloadpdfium-b7fe3c6e8c9d332fc6d3ca55ec9f852ce162c5a1.tar.xz
Move the CryptoHandler into the SecurityHandler
Change-Id: Idb5928e65833641d0443d955e4f2866d0f94cf5f Reviewed-on: https://pdfium-review.googlesource.com/15291 Commit-Queue: Art Snake <art-snake@yandex-team.ru> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi/edit/cpdf_creator.h')
-rw-r--r--core/fpdfapi/edit/cpdf_creator.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/fpdfapi/edit/cpdf_creator.h b/core/fpdfapi/edit/cpdf_creator.h
index 4e8f9e8dbe..4c1d0f1800 100644
--- a/core/fpdfapi/edit/cpdf_creator.h
+++ b/core/fpdfapi/edit/cpdf_creator.h
@@ -18,6 +18,7 @@
class CPDF_Array;
class CPDF_CryptoHandler;
+class CPDF_SecurityHandler;
class CPDF_Dictionary;
class CPDF_Document;
class CPDF_Object;
@@ -41,7 +42,7 @@ class CPDF_Creator {
uint32_t GetNextObjectNumber() { return ++m_dwLastObjNum; }
uint32_t GetLastObjectNumber() const { return m_dwLastObjNum; }
- CPDF_CryptoHandler* GetCryptoHandler() { return m_pCryptoHandler.Get(); }
+ CPDF_CryptoHandler* GetCryptoHandler();
CPDF_Document* GetDocument() const { return m_pDocument.Get(); }
CPDF_Array* GetIDArray() const { return m_pIDArray.get(); }
CPDF_Dictionary* GetEncryptDict() const { return m_pEncryptDict.Get(); }
@@ -86,7 +87,7 @@ class CPDF_Creator {
bool m_bSecurityChanged;
UnownedPtr<CPDF_Dictionary> m_pEncryptDict;
uint32_t m_dwEncryptObjNum;
- fxcrt::MaybeOwned<CPDF_CryptoHandler> m_pCryptoHandler;
+ fxcrt::MaybeOwned<CPDF_SecurityHandler> m_pSecurityHandler;
UnownedPtr<CPDF_Object> m_pMetadata;
uint32_t m_dwLastObjNum;
std::unique_ptr<IFX_ArchiveStream> m_Archive;