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> | 7 #include <stddef.h> |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 bool is_finished_loading; | 467 bool is_finished_loading; |
468 | 468 |
469 // True if the auto-reload timer has fired and a reload is or has been in | 469 // True if the auto-reload timer has fired and a reload is or has been in |
470 // flight. | 470 // flight. |
471 bool auto_reload_triggered; | 471 bool auto_reload_triggered; |
472 }; | 472 }; |
473 | 473 |
474 NetErrorHelperCore::NavigationCorrectionParams::NavigationCorrectionParams() { | 474 NetErrorHelperCore::NavigationCorrectionParams::NavigationCorrectionParams() { |
475 } | 475 } |
476 | 476 |
| 477 NetErrorHelperCore::NavigationCorrectionParams::NavigationCorrectionParams( |
| 478 const NavigationCorrectionParams& other) = default; |
| 479 |
477 NetErrorHelperCore::NavigationCorrectionParams::~NavigationCorrectionParams() { | 480 NetErrorHelperCore::NavigationCorrectionParams::~NavigationCorrectionParams() { |
478 } | 481 } |
479 | 482 |
480 bool NetErrorHelperCore::IsReloadableError( | 483 bool NetErrorHelperCore::IsReloadableError( |
481 const NetErrorHelperCore::ErrorPageInfo& info) { | 484 const NetErrorHelperCore::ErrorPageInfo& info) { |
482 GURL url = info.error.unreachableURL; | 485 GURL url = info.error.unreachableURL; |
483 return info.error.domain.utf8() == net::kErrorDomain && | 486 return info.error.domain.utf8() == net::kErrorDomain && |
484 info.error.reason != net::ERR_ABORTED && | 487 info.error.reason != net::ERR_ABORTED && |
485 // For now, net::ERR_UNKNOWN_URL_SCHEME is only being displayed on | 488 // For now, net::ERR_UNKNOWN_URL_SCHEME is only being displayed on |
486 // Chrome for Android. | 489 // Chrome for Android. |
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1076 | 1079 |
1077 OfflinePageStatus NetErrorHelperCore::GetOfflinePageStatus() const { | 1080 OfflinePageStatus NetErrorHelperCore::GetOfflinePageStatus() const { |
1078 #if defined(OS_ANDROID) | 1081 #if defined(OS_ANDROID) |
1079 return offline_page_status_; | 1082 return offline_page_status_; |
1080 #else | 1083 #else |
1081 return OfflinePageStatus::NONE; | 1084 return OfflinePageStatus::NONE; |
1082 #endif // defined(OS_ANDROID) | 1085 #endif // defined(OS_ANDROID) |
1083 } | 1086 } |
1084 | 1087 |
1085 } // namespace error_page | 1088 } // namespace error_page |
OLD | NEW |