diff options
Diffstat (limited to 'core/fpdfapi/edit/cpdf_encryptor.h')
-rw-r--r-- | core/fpdfapi/edit/cpdf_encryptor.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/fpdfapi/edit/cpdf_encryptor.h b/core/fpdfapi/edit/cpdf_encryptor.h index 67fd5c4f9b..5486c4f248 100644 --- a/core/fpdfapi/edit/cpdf_encryptor.h +++ b/core/fpdfapi/edit/cpdf_encryptor.h @@ -9,25 +9,25 @@ #include <stdint.h> +#include <memory> #include <vector> #include "core/fxcrt/fx_memory.h" +#include "core/fxcrt/unowned_ptr.h" #include "third_party/base/span.h" class CPDF_CryptoHandler; class CPDF_Encryptor { public: - CPDF_Encryptor(CPDF_CryptoHandler* pHandler, - int objnum, - pdfium::span<const uint8_t> src_data); + CPDF_Encryptor(CPDF_CryptoHandler* pHandler, int objnum); ~CPDF_Encryptor(); - pdfium::span<const uint8_t> GetSpan() const { return m_Span; } + std::vector<uint8_t> Encrypt(pdfium::span<const uint8_t> src_data) const; private: - std::vector<uint8_t> m_NewBuf; - pdfium::span<const uint8_t> m_Span; + UnownedPtr<CPDF_CryptoHandler> const m_pHandler; + const int m_ObjNum; }; #endif // CORE_FPDFAPI_EDIT_CPDF_ENCRYPTOR_H_ |