1 // Copyright 2020 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef PDF_DOCUMENT_ATTACHMENT_INFO_H_
6 #define PDF_DOCUMENT_ATTACHMENT_INFO_H_
11 namespace chrome_pdf {
13 struct DocumentAttachmentInfo {
14 DocumentAttachmentInfo();
16 DocumentAttachmentInfo(const DocumentAttachmentInfo& other);
18 ~DocumentAttachmentInfo();
20 // The attachment's name.
23 // The attachment's size in bytes.
24 uint32_t size_bytes = 0;
26 // The creation date of the attachment. It stores the arbitrary string saved
27 // in field "CreationDate".
28 std::u16string creation_date;
30 // Last modified date of the attachment. It stores the arbitrary string saved
31 // in field "ModDate".
32 std::u16string modified_date;
34 // The flag that indicates whether the attachment can be retrieved
36 bool is_readable = false;
39 } // namespace chrome_pdf
41 #endif // PDF_DOCUMENT_ATTACHMENT_INFO_H_