summaryrefslogtreecommitdiff
path: root/chromium/pdf/document_attachment_info.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/pdf/document_attachment_info.h')
-rw-r--r--chromium/pdf/document_attachment_info.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/chromium/pdf/document_attachment_info.h b/chromium/pdf/document_attachment_info.h
new file mode 100644
index 00000000000..9c36e1e0644
--- /dev/null
+++ b/chromium/pdf/document_attachment_info.h
@@ -0,0 +1,36 @@
+// Copyright 2020 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef PDF_DOCUMENT_ATTACHMENT_INFO_H_
+#define PDF_DOCUMENT_ATTACHMENT_INFO_H_
+
+#include "base/strings/string16.h"
+
+namespace chrome_pdf {
+
+struct DocumentAttachmentInfo {
+ DocumentAttachmentInfo();
+
+ DocumentAttachmentInfo(const DocumentAttachmentInfo& other);
+
+ ~DocumentAttachmentInfo();
+
+ // The attachment's name.
+ base::string16 name;
+
+ // The attachment's size in bytes.
+ uint32_t size_bytes = 0;
+
+ // The creation date of the attachment. It stores the arbitrary string saved
+ // in field "CreationDate".
+ base::string16 creation_date;
+
+ // Last modified date of the attachment. It stores the arbitrary string saved
+ // in field "ModDate".
+ base::string16 modified_date;
+};
+
+} // namespace chrome_pdf
+
+#endif // PDF_DOCUMENT_ATTACHMENT_INFO_H_