| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/error_page/renderer/net_error_helper_core.h" | 5 #include "components/error_page/renderer/net_error_helper_core.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <set> | 9 #include <set> |
| 8 #include <string> | 10 #include <string> |
| 9 #include <vector> | 11 #include <vector> |
| 10 | 12 |
| 11 #include "base/bind.h" | 13 #include "base/bind.h" |
| 12 #include "base/callback.h" | 14 #include "base/callback.h" |
| 13 #include "base/i18n/rtl.h" | 15 #include "base/i18n/rtl.h" |
| 14 #include "base/json/json_reader.h" | 16 #include "base/json/json_reader.h" |
| 15 #include "base/json/json_value_converter.h" | 17 #include "base/json/json_value_converter.h" |
| 16 #include "base/json/json_writer.h" | 18 #include "base/json/json_writer.h" |
| 17 #include "base/location.h" | 19 #include "base/location.h" |
| 18 #include "base/logging.h" | 20 #include "base/logging.h" |
| 21 #include "base/macros.h" |
| 19 #include "base/memory/scoped_vector.h" | 22 #include "base/memory/scoped_vector.h" |
| 20 #include "base/metrics/histogram_macros.h" | 23 #include "base/metrics/histogram_macros.h" |
| 21 #include "base/metrics/sparse_histogram.h" | 24 #include "base/metrics/sparse_histogram.h" |
| 22 #include "base/strings/string16.h" | 25 #include "base/strings/string16.h" |
| 23 #include "base/strings/string_util.h" | 26 #include "base/strings/string_util.h" |
| 24 #include "base/values.h" | 27 #include "base/values.h" |
| 28 #include "build/build_config.h" |
| 25 #include "components/error_page/common/error_page_params.h" | 29 #include "components/error_page/common/error_page_params.h" |
| 26 #include "components/url_formatter/url_formatter.h" | 30 #include "components/url_formatter/url_formatter.h" |
| 27 #include "content/public/common/url_constants.h" | 31 #include "content/public/common/url_constants.h" |
| 28 #include "grit/components_strings.h" | 32 #include "grit/components_strings.h" |
| 29 #include "net/base/escape.h" | 33 #include "net/base/escape.h" |
| 30 #include "net/base/net_errors.h" | 34 #include "net/base/net_errors.h" |
| 31 #include "third_party/WebKit/public/platform/WebString.h" | 35 #include "third_party/WebKit/public/platform/WebString.h" |
| 32 #include "third_party/WebKit/public/platform/WebURLError.h" | 36 #include "third_party/WebKit/public/platform/WebURLError.h" |
| 33 #include "ui/base/l10n/l10n_util.h" | 37 #include "ui/base/l10n/l10n_util.h" |
| 34 #include "url/gurl.h" | 38 #include "url/gurl.h" |
| (...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1074 | 1078 |
| 1075 OfflinePageStatus NetErrorHelperCore::GetOfflinePageStatus() const { | 1079 OfflinePageStatus NetErrorHelperCore::GetOfflinePageStatus() const { |
| 1076 #if defined(OS_ANDROID) | 1080 #if defined(OS_ANDROID) |
| 1077 return offline_page_status_; | 1081 return offline_page_status_; |
| 1078 #else | 1082 #else |
| 1079 return OfflinePageStatus::NONE; | 1083 return OfflinePageStatus::NONE; |
| 1080 #endif // defined(OS_ANDROID) | 1084 #endif // defined(OS_ANDROID) |
| 1081 } | 1085 } |
| 1082 | 1086 |
| 1083 } // namespace error_page | 1087 } // namespace error_page |
| OLD | NEW |