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

Side by Side Diff: net/url_request/url_request_error_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_error_job.h" 5 #include "net/url_request/url_request_error_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 URLRequestErrorJob::URLRequestErrorJob(URLRequest* request, int error) 11 URLRequestErrorJob::URLRequestErrorJob(URLRequest* request, int error)
11 : URLRequestJob(request), error_(error) { 12 : URLRequestJob(request), error_(error) {
12 } 13 }
13 14
14 void URLRequestErrorJob::Start() { 15 void URLRequestErrorJob::Start() {
15 MessageLoop::current()->PostTask(FROM_HERE, NewRunnableMethod( 16 MessageLoop::current()->PostTask(FROM_HERE, NewRunnableMethod(
16 this, &URLRequestErrorJob::StartAsync)); 17 this, &URLRequestErrorJob::StartAsync));
17 } 18 }
18 19
19 void URLRequestErrorJob::StartAsync() { 20 void URLRequestErrorJob::StartAsync() {
20 NotifyStartError(URLRequestStatus(URLRequestStatus::FAILED, error_)); 21 NotifyStartError(URLRequestStatus(URLRequestStatus::FAILED, error_));
21 } 22 }
22 23
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698