| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 // These methods are not applicable to all connections. | 212 // These methods are not applicable to all connections. |
| 213 virtual bool GetMimeType(std::string* mime_type) const; | 213 virtual bool GetMimeType(std::string* mime_type) const; |
| 214 virtual int GetResponseCode() const; | 214 virtual int GetResponseCode() const; |
| 215 | 215 |
| 216 // Returns the socket address for the connection. | 216 // Returns the socket address for the connection. |
| 217 // See url_request.h for details. | 217 // See url_request.h for details. |
| 218 virtual HostPortPair GetSocketAddress() const; | 218 virtual HostPortPair GetSocketAddress() const; |
| 219 | 219 |
| 220 // base::PowerObserver methods: | 220 // base::PowerObserver methods: |
| 221 // We invoke URLRequestJob::Kill on suspend (crbug.com/4606). | 221 // We invoke URLRequestJob::Kill on suspend (crbug.com/4606). |
| 222 virtual void OnSuspend() OVERRIDE; | 222 virtual void OnSuspend() override; |
| 223 | 223 |
| 224 // Called after a NetworkDelegate has been informed that the URLRequest | 224 // Called after a NetworkDelegate has been informed that the URLRequest |
| 225 // will be destroyed. This is used to track that no pending callbacks | 225 // will be destroyed. This is used to track that no pending callbacks |
| 226 // exist at destruction time of the URLRequestJob, unless they have been | 226 // exist at destruction time of the URLRequestJob, unless they have been |
| 227 // canceled by an explicit NetworkDelegate::NotifyURLRequestDestroyed() call. | 227 // canceled by an explicit NetworkDelegate::NotifyURLRequestDestroyed() call. |
| 228 virtual void NotifyURLRequestDestroyed(); | 228 virtual void NotifyURLRequestDestroyed(); |
| 229 | 229 |
| 230 protected: | 230 protected: |
| 231 friend class base::RefCounted<URLRequestJob>; | 231 friend class base::RefCounted<URLRequestJob>; |
| 232 virtual ~URLRequestJob(); | 232 virtual ~URLRequestJob(); |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 NetworkDelegate* network_delegate_; | 430 NetworkDelegate* network_delegate_; |
| 431 | 431 |
| 432 base::WeakPtrFactory<URLRequestJob> weak_factory_; | 432 base::WeakPtrFactory<URLRequestJob> weak_factory_; |
| 433 | 433 |
| 434 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); | 434 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); |
| 435 }; | 435 }; |
| 436 | 436 |
| 437 } // namespace net | 437 } // namespace net |
| 438 | 438 |
| 439 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ | 439 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ |
| OLD | NEW |