#include "chrome/browser/ui/pdf/chrome_pdf_document_helper_client.h"
#include "chrome/browser/download/download_stats.h"
#include "chrome/browser/pdf/pdf_viewer_stream_manager.h"
#include "chrome/browser/ui/tab_contents/core_tab_helper.h"
#include "chrome/common/content_restriction.h"
#include "components/pdf/browser/pdf_frame_util.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents.h"
#include "extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.h"
#include "pdf/pdf_features.h"
namespace {
content::WebContents* GetWebContentsToUse(
content::RenderFrameHost* render_frame_host) { … }
}
ChromePDFDocumentHelperClient::ChromePDFDocumentHelperClient() = default;
ChromePDFDocumentHelperClient::~ChromePDFDocumentHelperClient() = default;
void ChromePDFDocumentHelperClient::UpdateContentRestrictions(
content::RenderFrameHost* render_frame_host,
int content_restrictions) { … }
void ChromePDFDocumentHelperClient::OnPDFHasUnsupportedFeature(
content::WebContents* contents) { … }
void ChromePDFDocumentHelperClient::OnSaveURL(content::WebContents* contents) { … }
void ChromePDFDocumentHelperClient::SetPluginCanSave(
content::RenderFrameHost* render_frame_host,
bool can_save) { … }