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

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

Issue 20378: Reduce the amount of included header files. Vast change like in "Oh God! This... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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_simple_job.h" 5 #include "net/url_request/url_request_simple_job.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "net/base/net_errors.h" 8 #include "net/base/net_errors.h"
9 #include "net/url_request/url_request_status.h"
9 10
10 URLRequestSimpleJob::URLRequestSimpleJob(URLRequest* request) 11 URLRequestSimpleJob::URLRequestSimpleJob(URLRequest* request)
11 : URLRequestJob(request), 12 : URLRequestJob(request),
12 data_offset_(0) { 13 data_offset_(0) {
13 } 14 }
14 15
15 void URLRequestSimpleJob::Start() { 16 void URLRequestSimpleJob::Start() {
16 // Start reading asynchronously so that all error reporting and data 17 // Start reading asynchronously so that all error reporting and data
17 // callbacks happen as they would for network requests. 18 // callbacks happen as they would for network requests.
18 MessageLoop::current()->PostTask(FROM_HERE, NewRunnableMethod( 19 MessageLoop::current()->PostTask(FROM_HERE, NewRunnableMethod(
(...skipping 29 matching lines...) Expand all
48 if (GetData(&mime_type_, &charset_, &data_)) { 49 if (GetData(&mime_type_, &charset_, &data_)) {
49 // Notify that the headers are complete 50 // Notify that the headers are complete
50 NotifyHeadersComplete(); 51 NotifyHeadersComplete();
51 } else { 52 } else {
52 // what should the error code be? 53 // what should the error code be?
53 NotifyStartError(URLRequestStatus(URLRequestStatus::FAILED, 54 NotifyStartError(URLRequestStatus(URLRequestStatus::FAILED,
54 net::ERR_INVALID_URL)); 55 net::ERR_INVALID_URL));
55 } 56 }
56 } 57 }
57 58
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698