document_attachment_info.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // Copyright 2020 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef PDF_DOCUMENT_ATTACHMENT_INFO_H_
  5. #define PDF_DOCUMENT_ATTACHMENT_INFO_H_
  6. #include <string>
  7. namespace chrome_pdf {
  8. struct DocumentAttachmentInfo {
  9. DocumentAttachmentInfo();
  10. DocumentAttachmentInfo(const DocumentAttachmentInfo& other);
  11. ~DocumentAttachmentInfo();
  12. // The attachment's name.
  13. std::u16string name;
  14. // The attachment's size in bytes.
  15. uint32_t size_bytes = 0;
  16. // The creation date of the attachment. It stores the arbitrary string saved
  17. // in field "CreationDate".
  18. std::u16string creation_date;
  19. // Last modified date of the attachment. It stores the arbitrary string saved
  20. // in field "ModDate".
  21. std::u16string modified_date;
  22. // The flag that indicates whether the attachment can be retrieved
  23. // successfully.
  24. bool is_readable = false;
  25. };
  26. } // namespace chrome_pdf
  27. #endif // PDF_DOCUMENT_ATTACHMENT_INFO_H_