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

Side by Side Diff: chrome/browser/net/url_request_mock_net_error_job.cc

Issue 6166010: net: Remove typedef net::URLRequestStatus URLRequestStatus; (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/browser/net/url_request_mock_net_error_job.h" 5 #include "chrome/browser/net/url_request_mock_net_error_job.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/file_util.h" 10 #include "base/file_util.h"
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 URLRequestMockHTTPJob::Start(); 102 URLRequestMockHTTPJob::Start();
103 } else { 103 } else {
104 int error = errors_[0]; 104 int error = errors_[0];
105 errors_.erase(errors_.begin()); 105 errors_.erase(errors_.begin());
106 106
107 if (net::IsCertificateError(error)) { 107 if (net::IsCertificateError(error)) {
108 DCHECK(ssl_cert_); 108 DCHECK(ssl_cert_);
109 request_->delegate()->OnSSLCertificateError(request_, error, 109 request_->delegate()->OnSSLCertificateError(request_, error,
110 ssl_cert_.get()); 110 ssl_cert_.get());
111 } else { 111 } else {
112 NotifyStartError(URLRequestStatus(URLRequestStatus::FAILED, error)); 112 NotifyStartError(net::URLRequestStatus(net::URLRequestStatus::FAILED,
113 error));
113 } 114 }
114 } 115 }
115 } 116 }
116 117
117 void URLRequestMockNetErrorJob::ContinueDespiteLastError() { 118 void URLRequestMockNetErrorJob::ContinueDespiteLastError() {
118 Start(); 119 Start();
119 } 120 }
OLDNEW
« no previous file with comments | « chrome/browser/net/url_request_failed_dns_job.cc ('k') | chrome/browser/net/url_request_slow_download_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698