error_page_populator.h 766 B

1234567891011121314151617181920212223
  1. // Copyright 2020 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.
  4. #ifndef COMPONENTS_ANDROID_SYSTEM_ERROR_PAGE_ERROR_PAGE_POPULATOR_H_
  5. #define COMPONENTS_ANDROID_SYSTEM_ERROR_PAGE_ERROR_PAGE_POPULATOR_H_
  6. #include <string>
  7. namespace blink {
  8. struct WebURLError;
  9. }
  10. namespace android_system_error_page {
  11. // Populates |error_html| to display an error page with an Android system feel
  12. // for |error|. Does nothing if |error_html| is null.
  13. void PopulateErrorPageHtml(const blink::WebURLError& error,
  14. std::string* error_html);
  15. } // namespace android_system_error_page
  16. #endif // COMPONENTS_ANDROID_SYSTEM_ERROR_PAGE_ERROR_PAGE_POPULATOR_H_