diff options
Diffstat (limited to 'core/fpdfapi/parser/cpdf_encryptor.h')
-rw-r--r-- | core/fpdfapi/parser/cpdf_encryptor.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/core/fpdfapi/parser/cpdf_encryptor.h b/core/fpdfapi/parser/cpdf_encryptor.h index cea737afd..37f076322 100644 --- a/core/fpdfapi/parser/cpdf_encryptor.h +++ b/core/fpdfapi/parser/cpdf_encryptor.h @@ -1,4 +1,4 @@ -// Copyright 2017 PDFium Authors. All rights reserved. +// Copyright 2017 The PDFium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -9,8 +9,7 @@ #include <stdint.h> -#include <vector> - +#include "core/fxcrt/data_vector.h" #include "core/fxcrt/unowned_ptr.h" #include "third_party/base/span.h" @@ -18,13 +17,13 @@ class CPDF_CryptoHandler; class CPDF_Encryptor { public: - CPDF_Encryptor(CPDF_CryptoHandler* pHandler, int objnum); + CPDF_Encryptor(const CPDF_CryptoHandler* pHandler, int objnum); ~CPDF_Encryptor(); - std::vector<uint8_t> Encrypt(pdfium::span<const uint8_t> src_data) const; + DataVector<uint8_t> Encrypt(pdfium::span<const uint8_t> src_data) const; private: - UnownedPtr<CPDF_CryptoHandler> const m_pHandler; + UnownedPtr<const CPDF_CryptoHandler> const m_pHandler; const int m_ObjNum; }; |