| 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 | 4 |
| 5 #ifndef NET_URL_REQUEST_URL_REQUEST_JOB_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_JOB_H_ |
| 6 #define NET_URL_REQUEST_URL_REQUEST_JOB_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_JOB_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 // These methods are not applicable to all connections. | 180 // These methods are not applicable to all connections. |
| 181 virtual bool GetMimeType(std::string* mime_type) const; | 181 virtual bool GetMimeType(std::string* mime_type) const; |
| 182 virtual int GetResponseCode() const; | 182 virtual int GetResponseCode() const; |
| 183 | 183 |
| 184 // Returns the socket address for the connection. | 184 // Returns the socket address for the connection. |
| 185 // See url_request.h for details. | 185 // See url_request.h for details. |
| 186 virtual HostPortPair GetSocketAddress() const; | 186 virtual HostPortPair GetSocketAddress() const; |
| 187 | 187 |
| 188 // base::SystemMonitor::PowerObserver methods: | 188 // base::SystemMonitor::PowerObserver methods: |
| 189 // We invoke URLRequestJob::Kill on suspend (crbug.com/4606). | 189 // We invoke URLRequestJob::Kill on suspend (crbug.com/4606). |
| 190 virtual void OnSuspend(); | 190 virtual void OnSuspend() OVERRIDE; |
| 191 | 191 |
| 192 // Called after a NetworkDelegate has been informed that the URLRequest | 192 // Called after a NetworkDelegate has been informed that the URLRequest |
| 193 // will be destroyed. This is used to track that no pending callbacks | 193 // will be destroyed. This is used to track that no pending callbacks |
| 194 // exist at destruction time of the URLRequestJob, unless they have been | 194 // exist at destruction time of the URLRequestJob, unless they have been |
| 195 // canceled by an explicit NetworkDelegate::NotifyURLRequestDestroyed() call. | 195 // canceled by an explicit NetworkDelegate::NotifyURLRequestDestroyed() call. |
| 196 virtual void NotifyURLRequestDestroyed(); | 196 virtual void NotifyURLRequestDestroyed(); |
| 197 | 197 |
| 198 protected: | 198 protected: |
| 199 friend class base::RefCounted<URLRequestJob>; | 199 friend class base::RefCounted<URLRequestJob>; |
| 200 virtual ~URLRequestJob(); | 200 virtual ~URLRequestJob(); |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 int deferred_redirect_status_code_; | 374 int deferred_redirect_status_code_; |
| 375 | 375 |
| 376 ScopedRunnableMethodFactory<URLRequestJob> method_factory_; | 376 ScopedRunnableMethodFactory<URLRequestJob> method_factory_; |
| 377 | 377 |
| 378 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); | 378 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); |
| 379 }; | 379 }; |
| 380 | 380 |
| 381 } // namespace net | 381 } // namespace net |
| 382 | 382 |
| 383 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ | 383 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ |
| OLD | NEW |