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

Side by Side Diff: chrome/renderer/net/net_error_helper_core.cc

Issue 138513002: Plumb network stack information about existence of cached copy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporated comments from Matt & Ricardo. Created 6 years, 11 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 | Annotate | Revision Log
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 "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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698