fixup! [M120 Migration][NaCl][PPFWK] Upgradable pepper plugin requirement
[platform/framework/web/chromium-efl.git] / pdf / document_attachment_info.h
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.
4
5 #ifndef PDF_DOCUMENT_ATTACHMENT_INFO_H_
6 #define PDF_DOCUMENT_ATTACHMENT_INFO_H_
7
8 #include <stdint.h>
9
10 #include <string>
11
12
13 namespace chrome_pdf {
14
15 struct DocumentAttachmentInfo {
16   DocumentAttachmentInfo();
17
18   DocumentAttachmentInfo(const DocumentAttachmentInfo& other);
19
20   ~DocumentAttachmentInfo();
21
22   // The attachment's name.
23   std::u16string name;
24
25   // The attachment's size in bytes.
26   uint32_t size_bytes = 0;
27
28   // The creation date of the attachment. It stores the arbitrary string saved
29   // in field "CreationDate".
30   std::u16string creation_date;
31
32   // Last modified date of the attachment. It stores the arbitrary string saved
33   // in field "ModDate".
34   std::u16string modified_date;
35
36   // The flag that indicates whether the attachment can be retrieved
37   // successfully.
38   bool is_readable = false;
39 };
40
41 }  // namespace chrome_pdf
42
43 #endif  // PDF_DOCUMENT_ATTACHMENT_INFO_H_