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_
13 namespace chrome_pdf {
15 struct DocumentAttachmentInfo {
16 DocumentAttachmentInfo();
18 DocumentAttachmentInfo(const DocumentAttachmentInfo& other);
20 ~DocumentAttachmentInfo();
22 // The attachment's name.
25 // The attachment's size in bytes.
26 uint32_t size_bytes = 0;
28 // The creation date of the attachment. It stores the arbitrary string saved
29 // in field "CreationDate".
30 std::u16string creation_date;
32 // Last modified date of the attachment. It stores the arbitrary string saved
33 // in field "ModDate".
34 std::u16string modified_date;
36 // The flag that indicates whether the attachment can be retrieved
38 bool is_readable = false;
41 } // namespace chrome_pdf
43 #endif // PDF_DOCUMENT_ATTACHMENT_INFO_H_