1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_RENDERER_PRINTING_CHROME_PRINT_WEB_VIEW_HELPER_DELEGATE_H_
6 #define CHROME_RENDERER_PRINTING_CHROME_PRINT_WEB_VIEW_HELPER_DELEGATE_H_
8 #include "components/printing/renderer/print_web_view_helper.h"
10 class ChromePrintWebViewHelperDelegate
11 : public printing::PrintWebViewHelper::Delegate
{
13 ~ChromePrintWebViewHelperDelegate() override
;
15 bool CancelPrerender(content::RenderView
* render_view
,
16 int routing_id
) override
;
18 blink::WebElement
GetPdfElement(blink::WebLocalFrame
* frame
) override
;
20 bool IsOutOfProcessPdfEnabled() override
;
22 bool IsPrintPreviewEnabled() override
;
24 bool OverridePrint(blink::WebLocalFrame
* frame
) override
;
25 }; // class ChromePrintWebViewHelperDelegate
27 #endif // CHROME_RENDERER_PRINTING_CHROME_PRINT_WEB_VIEW_HELPER_DELEGATE_H_