blob: 5ee211800d1a3b8915ba1819cf8dee0f10d44886 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
// Copyright 2021 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.Chromium file.
#ifndef PDF_UTIL_QT_H
#define PDF_UTIL_QT_H
namespace content {
class RenderFrameHost;
class WebContents;
} // namespace content
namespace url {
class Origin;
} // namespace url
namespace QtWebEngineCore {
// from chrome/common/pdf_util.cc:
constexpr char kPDFMimeType[] = "application/pdf";
bool IsPdfExtensionOrigin(const url::Origin &origin);
bool IsPdfInternalPluginAllowedOrigin(const url::Origin &origin);
// from chrome/browser/pdf/pdf_frame_util.cc:
content::RenderFrameHost *GetFullPagePlugin(content::WebContents *contents);
content::RenderFrameHost *FindPdfChildFrame(content::RenderFrameHost *rfh);
} // namespace QtWebEngineCore
#endif // PDF_UTIL_QT_H
|