0
Files
src/pdf/document_attachment_info.h
Stephan Hartmann 5ec376a5f7 IWYU: add stdint.h for uint32_t in chrome_pdf::DocumentAttachmentInfo
Bug: 957519
Change-Id: I8efc538b2ae901c7d5076fdf692a31250c16cbbe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4395997
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1126091}
2023-04-04 17:30:49 +00:00

44 lines
1.0 KiB
C++

// Copyright 2020 The Chromium Authors
// 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 <stdint.h>
#include <string>
namespace chrome_pdf {
struct DocumentAttachmentInfo {
DocumentAttachmentInfo();
DocumentAttachmentInfo(const DocumentAttachmentInfo& other);
~DocumentAttachmentInfo();
// The attachment's name.
std::u16string 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".
std::u16string creation_date;
// Last modified date of the attachment. It stores the arbitrary string saved
// in field "ModDate".
std::u16string modified_date;
// The flag that indicates whether the attachment can be retrieved
// successfully.
bool is_readable = false;
};
} // namespace chrome_pdf
#endif // PDF_DOCUMENT_ATTACHMENT_INFO_H_