chromium/ios/chrome/browser/web/model/error_page_util.h

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef IOS_CHROME_BROWSER_WEB_MODEL_ERROR_PAGE_UTIL_H_
#define IOS_CHROME_BROWSER_WEB_MODEL_ERROR_PAGE_UTIL_H_

class GURL;
@class NSError;
@class NSString;

// Returns error page HTML to display in WebState if the page load has failed.
NSString* GetErrorPage(const GURL& url,
                       NSError* error,
                       bool is_post,
                       bool is_off_the_record);

#endif  // IOS_CHROME_BROWSER_WEB_MODEL_ERROR_PAGE_UTIL_H_