2015-07-16 23:40:01 +02:00
|
|
|
// Copyright 2014 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 CEF_LIBCEF_BROWSER_EXTENSIONS_PDF_WEB_CONTENTS_HELPER_CLIENT_H_
|
|
|
|
#define CEF_LIBCEF_BROWSER_EXTENSIONS_PDF_WEB_CONTENTS_HELPER_CLIENT_H_
|
|
|
|
|
|
|
|
#include "base/macros.h"
|
|
|
|
#include "components/pdf/browser/pdf_web_contents_helper_client.h"
|
|
|
|
|
|
|
|
namespace extensions {
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
class CefPDFWebContentsHelperClient : public pdf::PDFWebContentsHelperClient {
|
2015-07-16 23:40:01 +02:00
|
|
|
public:
|
|
|
|
CefPDFWebContentsHelperClient();
|
|
|
|
~CefPDFWebContentsHelperClient() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
// pdf::PDFWebContentsHelperClient:
|
|
|
|
void UpdateContentRestrictions(content::WebContents* contents,
|
|
|
|
int content_restrictions) override;
|
|
|
|
void OnPDFHasUnsupportedFeature(content::WebContents* contents) override;
|
|
|
|
void OnSaveURL(content::WebContents* contents) override;
|
2019-03-13 22:27:37 +01:00
|
|
|
void SetPluginCanSave(content::WebContents* contents, bool can_save) override;
|
2015-07-16 23:40:01 +02:00
|
|
|
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(CefPDFWebContentsHelperClient);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace extensions
|
|
|
|
|
|
|
|
#endif // CEF_LIBCEF_BROWSER_EXTENSIONS_PDF_WEB_CONTENTS_HELPER_CLIENT_H_
|