| 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_PROXY_PROXY_SCRIPT_FETCHER_IMPL_H_ | 5 #ifndef NET_PROXY_PROXY_SCRIPT_FETCHER_IMPL_H_ |
| 6 #define NET_PROXY_PROXY_SCRIPT_FETCHER_IMPL_H_ | 6 #define NET_PROXY_PROXY_SCRIPT_FETCHER_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 // This buffer is owned by the owner of |callback|, and will be filled with | 109 // This buffer is owned by the owner of |callback|, and will be filled with |
| 110 // UTF16 response on completion. | 110 // UTF16 response on completion. |
| 111 base::string16* result_text_; | 111 base::string16* result_text_; |
| 112 | 112 |
| 113 // The maximum number of bytes to allow in responses. | 113 // The maximum number of bytes to allow in responses. |
| 114 size_t max_response_bytes_; | 114 size_t max_response_bytes_; |
| 115 | 115 |
| 116 // The maximum amount of time to wait for download to complete. | 116 // The maximum amount of time to wait for download to complete. |
| 117 base::TimeDelta max_duration_; | 117 base::TimeDelta max_duration_; |
| 118 | 118 |
| 119 // The time that the fetch started. |
| 120 base::Time fetch_start_time_; |
| 121 |
| 119 // Factory for creating the time-out task. This takes care of revoking | 122 // Factory for creating the time-out task. This takes care of revoking |
| 120 // outstanding tasks when |this| is deleted. | 123 // outstanding tasks when |this| is deleted. |
| 121 base::WeakPtrFactory<ProxyScriptFetcherImpl> weak_factory_; | 124 base::WeakPtrFactory<ProxyScriptFetcherImpl> weak_factory_; |
| 122 | 125 |
| 123 DISALLOW_COPY_AND_ASSIGN(ProxyScriptFetcherImpl); | 126 DISALLOW_COPY_AND_ASSIGN(ProxyScriptFetcherImpl); |
| 124 }; | 127 }; |
| 125 | 128 |
| 126 } // namespace net | 129 } // namespace net |
| 127 | 130 |
| 128 #endif // NET_PROXY_PROXY_SCRIPT_FETCHER_IMPL_H_ | 131 #endif // NET_PROXY_PROXY_SCRIPT_FETCHER_IMPL_H_ |
| OLD | NEW |