| OLD | NEW |
| 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 // Invalid URLs go through this URLRequestJob class rather than being passed | 5 // Invalid URLs go through this URLRequestJob class rather than being passed |
| 6 // to the default job handler. | 6 // to the default job handler. |
| 7 | 7 |
| 8 #ifndef NET_URL_REQUEST_URL_REQUEST_ERROR_JOB_H_ | 8 #ifndef NET_URL_REQUEST_URL_REQUEST_ERROR_JOB_H_ |
| 9 #define NET_URL_REQUEST_URL_REQUEST_ERROR_JOB_H_ | 9 #define NET_URL_REQUEST_URL_REQUEST_ERROR_JOB_H_ |
| 10 | 10 |
| 11 #include "net/url_request/url_request_job.h" | 11 #include "net/url_request/url_request_job.h" |
| 12 | 12 |
| 13 class URLRequestErrorJob : public URLRequestJob { | 13 class URLRequestErrorJob : public URLRequestJob { |
| 14 public: | 14 public: |
| 15 URLRequestErrorJob(URLRequest* request, int error); | 15 URLRequestErrorJob(URLRequest* request, int error); |
| 16 | 16 |
| 17 virtual void Start(); | 17 virtual void Start(); |
| 18 | 18 |
| 19 private: | 19 private: |
| 20 ~URLRequestErrorJob() {} |
| 21 |
| 20 int error_; | 22 int error_; |
| 21 void StartAsync(); | 23 void StartAsync(); |
| 22 }; | 24 }; |
| 23 | 25 |
| 24 #endif // NET_URL_REQUEST_URL_REQUEST_ERROR_JOB_H_ | 26 #endif // NET_URL_REQUEST_URL_REQUEST_ERROR_JOB_H_ |
| OLD | NEW |