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

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

Issue 5863001: net: Add namespace net to URLRequestErrorJob. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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
« no previous file with comments | « net/url_request/url_request_error_job.h ('k') | net/url_request/url_request_job_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "net/url_request/url_request_status.h"
10 10
11 URLRequestErrorJob::URLRequestErrorJob(net::URLRequest* request, int error) 11 namespace net {
12 : net::URLRequestJob(request), error_(error) { 12
13 URLRequestErrorJob::URLRequestErrorJob(URLRequest* request, int error)
14 : URLRequestJob(request), error_(error) {
13 } 15 }
14 16
15 void URLRequestErrorJob::Start() { 17 void URLRequestErrorJob::Start() {
16 MessageLoop::current()->PostTask(FROM_HERE, NewRunnableMethod( 18 MessageLoop::current()->PostTask(FROM_HERE, NewRunnableMethod(
17 this, &URLRequestErrorJob::StartAsync)); 19 this, &URLRequestErrorJob::StartAsync));
18 } 20 }
19 21
20 void URLRequestErrorJob::StartAsync() { 22 void URLRequestErrorJob::StartAsync() {
21 NotifyStartError(URLRequestStatus(URLRequestStatus::FAILED, error_)); 23 NotifyStartError(URLRequestStatus(URLRequestStatus::FAILED, error_));
22 } 24 }
25
26 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/url_request_error_job.h ('k') | net/url_request/url_request_job_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698