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

Side by Side Diff: net/url_request/url_request_job.cc

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "net/url_request/url_request_job.h" 5 #include "net/url_request/url_request_job.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "googleurl/src/gurl.h" 9 #include "googleurl/src/gurl.h"
10 #include "net/base/auth.h" 10 #include "net/base/auth.h"
11 #include "net/base/net_errors.h" 11 #include "net/base/net_errors.h"
12 #include "net/url_request/url_request.h" 12 #include "net/url_request/url_request.h"
13 #include "net/url_request/url_request_job_metrics.h" 13 #include "net/url_request/url_request_job_metrics.h"
14 #include "net/url_request/url_request_job_tracker.h" 14 #include "net/url_request/url_request_job_tracker.h"
15 15
16 using base::Time;
17 using base::TimeTicks;
18
16 // Buffer size allocated when de-compressing data. 19 // Buffer size allocated when de-compressing data.
17 static const int kFilterBufSize = 32 * 1024; 20 static const int kFilterBufSize = 32 * 1024;
18 21
19 URLRequestJob::URLRequestJob(URLRequest* request) 22 URLRequestJob::URLRequestJob(URLRequest* request)
20 : request_(request), 23 : request_(request),
21 done_(false), 24 done_(false),
22 read_buffer_(NULL), 25 read_buffer_(NULL),
23 read_buffer_len_(0), 26 read_buffer_len_(0),
24 has_handled_response_(false), 27 has_handled_response_(false),
25 expected_content_size_(-1) { 28 expected_content_size_(-1) {
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 return request_->status(); 494 return request_->status();
492 // If the request is gone, we must be cancelled. 495 // If the request is gone, we must be cancelled.
493 return URLRequestStatus(URLRequestStatus::CANCELED, 496 return URLRequestStatus(URLRequestStatus::CANCELED,
494 net::ERR_ABORTED); 497 net::ERR_ABORTED);
495 } 498 }
496 499
497 void URLRequestJob::SetStatus(const URLRequestStatus &status) { 500 void URLRequestJob::SetStatus(const URLRequestStatus &status) {
498 if (request_) 501 if (request_)
499 request_->set_status(status); 502 request_->set_status(status);
500 } 503 }
501
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698