[M108 Migration][HBBTV] Implement ewk_context_register_jsplugin_mime_types API
[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 <string>
9
10
11 namespace chrome_pdf {
12
13 struct DocumentAttachmentInfo {
14   DocumentAttachmentInfo();
15
16   DocumentAttachmentInfo(const DocumentAttachmentInfo& other);
17
18   ~DocumentAttachmentInfo();
19
20   // The attachment's name.
21   std::u16string name;
22
23   // The attachment's size in bytes.
24   uint32_t size_bytes = 0;
25
26   // The creation date of the attachment. It stores the arbitrary string saved
27   // in field "CreationDate".
28   std::u16string creation_date;
29
30   // Last modified date of the attachment. It stores the arbitrary string saved
31   // in field "ModDate".
32   std::u16string modified_date;
33
34   // The flag that indicates whether the attachment can be retrieved
35   // successfully.
36   bool is_readable = false;
37 };
38
39 }  // namespace chrome_pdf
40
41 #endif  // PDF_DOCUMENT_ATTACHMENT_INFO_H_