chromium/chrome/browser/ui/android/pdf/java/src/org/chromium/chrome/browser/pdf/PdfInfo.java

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

package org.chromium.chrome.browser.pdf;

/** Simple object representing important information of a pdf native page. */
public class PdfInfo {
    public final String filename;
    public final String filepath;
    public final boolean isDownloadSafe;

    public PdfInfo(String filename, String filepath, boolean isDownloadSafe) {
        this.filename = filename;
        this.filepath = filepath;
        this.isDownloadSafe = isDownloadSafe;
    }

    public PdfInfo() {
        filename = null;
        filepath = null;
        isDownloadSafe = true;
    }
}