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 "chrome/renderer/net/net_error_helper_core.h" | 5 #include "chrome/renderer/net/net_error_helper_core.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
10 #include "chrome/common/localized_error.h" | 10 #include "chrome/common/localized_error.h" |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 last_probe_status_ == | 306 last_probe_status_ == |
307 chrome_common_net::DNS_PROBE_FINISHED_INCONCLUSIVE) { | 307 chrome_common_net::DNS_PROBE_FINISHED_INCONCLUSIVE) { |
308 return error; | 308 return error; |
309 } | 309 } |
310 | 310 |
311 blink::WebURLError updated_error; | 311 blink::WebURLError updated_error; |
312 updated_error.domain = blink::WebString::fromUTF8( | 312 updated_error.domain = blink::WebString::fromUTF8( |
313 chrome_common_net::kDnsProbeErrorDomain); | 313 chrome_common_net::kDnsProbeErrorDomain); |
314 updated_error.reason = last_probe_status_; | 314 updated_error.reason = last_probe_status_; |
315 updated_error.unreachableURL = error.unreachableURL; | 315 updated_error.unreachableURL = error.unreachableURL; |
| 316 updated_error.staleCopyInCache = error.staleCopyInCache; |
316 | 317 |
317 return updated_error; | 318 return updated_error; |
318 } | 319 } |
OLD | NEW |