blob: 05493f7c51553f599ff3ab112a13c1a66a0193c5 [file] [log] [blame]
// 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 file.
#ifndef CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_COMMON_H_
#define CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_COMMON_H_
namespace content {
class RenderFrameHost;
struct Referrer;
} // namespace content
class GURL;
// Shared code between PluginObserver and PluginObserverAndroid.
// Only sets `referrer` on success.
bool CanOpenPdfUrl(content::RenderFrameHost* render_frame_host,
const GURL& url,
const GURL& last_committed_url,
content::Referrer* referrer);
#endif // CHROME_BROWSER_PLUGINS_PLUGIN_OBSERVER_COMMON_H_