OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // This class simulates what wininet does when a dns lookup fails. | 4 // This class simulates what wininet does when a dns lookup fails. |
5 | 5 |
6 #ifndef CHROME_BROWSER_AUTOMATION_URL_REQUEST_AUTOMATION_JOB_H_ | 6 #ifndef CHROME_BROWSER_AUTOMATION_URL_REQUEST_AUTOMATION_JOB_H_ |
7 #define CHROME_BROWSER_AUTOMATION_URL_REQUEST_AUTOMATION_JOB_H_ | 7 #define CHROME_BROWSER_AUTOMATION_URL_REQUEST_AUTOMATION_JOB_H_ |
8 #pragma once | 8 #pragma once |
9 | 9 |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
11 #include "base/task.h" | |
12 #include "chrome/common/ref_counted_util.h" | 11 #include "chrome/common/ref_counted_util.h" |
13 #include "net/url_request/url_request.h" | 12 #include "net/url_request/url_request.h" |
14 #include "net/url_request/url_request_job.h" | 13 #include "net/url_request/url_request_job.h" |
15 | 14 |
16 class AutomationResourceMessageFilter; | 15 class AutomationResourceMessageFilter; |
17 struct AutomationURLResponse; | 16 struct AutomationURLResponse; |
18 | 17 |
19 namespace net { | 18 namespace net { |
20 class HttpResponseHeaders; | 19 class HttpResponseHeaders; |
21 class HttpResponseInfo; | 20 class HttpResponseInfo; |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 127 |
129 // Contains the ip address and port of the destination host. | 128 // Contains the ip address and port of the destination host. |
130 net::HostPortPair socket_address_; | 129 net::HostPortPair socket_address_; |
131 | 130 |
132 base::WeakPtrFactory<URLRequestAutomationJob> weak_factory_; | 131 base::WeakPtrFactory<URLRequestAutomationJob> weak_factory_; |
133 | 132 |
134 DISALLOW_COPY_AND_ASSIGN(URLRequestAutomationJob); | 133 DISALLOW_COPY_AND_ASSIGN(URLRequestAutomationJob); |
135 }; | 134 }; |
136 | 135 |
137 #endif // CHROME_BROWSER_AUTOMATION_URL_REQUEST_AUTOMATION_JOB_H_ | 136 #endif // CHROME_BROWSER_AUTOMATION_URL_REQUEST_AUTOMATION_JOB_H_ |
OLD | NEW |