Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1074)

Side by Side Diff: components/error_page/renderer/net_error_helper_core.cc

Issue 1728033002: components: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698