blob: 628a7f858e333ebf12784a44f8ebc4dbb40eeea4 [file] [log] [blame]
// Copyright 2019 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.
#import <Foundation/Foundation.h>
#import <WebKit/WebKit.h>
#include "base/callback.h"
namespace web {
// Returns true if workaround for loading restricted URLs should be applied.
// TODO( Remove this workaround when iOS 12 is dropped.
// is fixed.
bool RequiresContentFilterBlockingWorkaround();
// Returns true if this iOS version is known to have
// WebKit bug.
// TODO( Remove this workaround when WebKit bug is fixed.
bool RequiresProvisionalNavigationFailureWorkaround();
// Generates a PDF of the entire content of a |web_view| and invokes the
// |callback| with the NSData of the PDF.
void CreateFullPagePdf(WKWebView* web_view,
base::OnceCallback<void(NSData*)> callback);
} // namespace web