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

Unified Diff: chrome/common/net/url_request_intercept_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/net/url_fetcher_unittest.cc ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/net/url_request_intercept_job.cc
diff --git a/chrome/common/net/url_request_intercept_job.cc b/chrome/common/net/url_request_intercept_job.cc
index 641a8e83ad6cf864f8cdaa1bc01ccd81c893da49..89b0c554659f0c7e8c1d17111f8f56ad86573192 100644
--- a/chrome/common/net/url_request_intercept_job.cc
+++ b/chrome/common/net/url_request_intercept_job.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
@@ -91,10 +91,11 @@ bool URLRequestInterceptJob::ReadRawData(net::IOBuffer* dest, int dest_size,
if (rv == CPERR_IO_PENDING) {
read_buffer_ = dest;
read_buffer_size_ = dest_size;
- SetStatus(URLRequestStatus(URLRequestStatus::IO_PENDING, 0));
+ SetStatus(net::URLRequestStatus(net::URLRequestStatus::IO_PENDING, 0));
} else {
// TODO(mpcomplete): better error code
- NotifyDone(URLRequestStatus(URLRequestStatus::FAILED, net::ERR_FAILED));
+ NotifyDone(net::URLRequestStatus(net::URLRequestStatus::FAILED,
+ net::ERR_FAILED));
}
return false;
@@ -208,8 +209,8 @@ void URLRequestInterceptJob::StartAsync() {
void URLRequestInterceptJob::OnStartCompleted(int result) {
if (result != CPERR_SUCCESS) {
- NotifyDone(URLRequestStatus(URLRequestStatus::FAILED,
- net::ERR_CONNECTION_FAILED));
+ NotifyDone(net::URLRequestStatus(net::URLRequestStatus::FAILED,
+ net::ERR_CONNECTION_FAILED));
return;
}
@@ -218,11 +219,12 @@ void URLRequestInterceptJob::OnStartCompleted(int result) {
void URLRequestInterceptJob::OnReadCompleted(int bytes_read) {
if (bytes_read < 0) {
- NotifyDone(URLRequestStatus(URLRequestStatus::FAILED, net::ERR_FAILED));
+ NotifyDone(net::URLRequestStatus(net::URLRequestStatus::FAILED,
+ net::ERR_FAILED));
return;
}
- SetStatus(URLRequestStatus()); // clear the async flag
+ SetStatus(net::URLRequestStatus()); // clear the async flag
NotifyReadComplete(bytes_read);
}
« no previous file with comments | « chrome/common/net/url_fetcher_unittest.cc ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698