| 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_HTTP_JOB_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
| 6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 CompletionCallback start_callback_; | 111 CompletionCallback start_callback_; |
| 112 CompletionCallback notify_before_headers_sent_callback_; | 112 CompletionCallback notify_before_headers_sent_callback_; |
| 113 | 113 |
| 114 bool read_in_progress_; | 114 bool read_in_progress_; |
| 115 | 115 |
| 116 // An URL for an SDCH dictionary as suggested in a Get-Dictionary HTTP header. | 116 // An URL for an SDCH dictionary as suggested in a Get-Dictionary HTTP header. |
| 117 GURL sdch_dictionary_url_; | 117 GURL sdch_dictionary_url_; |
| 118 | 118 |
| 119 scoped_ptr<HttpTransaction> transaction_; | 119 scoped_ptr<HttpTransaction> transaction_; |
| 120 | 120 |
| 121 // This is used to supervise traffic and enforce exponential back-off. | 121 // This is used to supervise traffic and enforce exponential |
| 122 // back-off. May be NULL. |
| 122 scoped_refptr<URLRequestThrottlerEntryInterface> throttling_entry_; | 123 scoped_refptr<URLRequestThrottlerEntryInterface> throttling_entry_; |
| 123 | 124 |
| 124 // Indicated if an SDCH dictionary was advertised, and hence an SDCH | 125 // Indicated if an SDCH dictionary was advertised, and hence an SDCH |
| 125 // compressed response is expected. We use this to help detect (accidental?) | 126 // compressed response is expected. We use this to help detect (accidental?) |
| 126 // proxy corruption of a response, which sometimes marks SDCH content as | 127 // proxy corruption of a response, which sometimes marks SDCH content as |
| 127 // having no content encoding <oops>. | 128 // having no content encoding <oops>. |
| 128 bool sdch_dictionary_advertised_; | 129 bool sdch_dictionary_advertised_; |
| 129 | 130 |
| 130 // For SDCH latency experiments, when we are able to do SDCH, we may enable | 131 // For SDCH latency experiments, when we are able to do SDCH, we may enable |
| 131 // either an SDCH latency test xor a pass through test. The following bools | 132 // either an SDCH latency test xor a pass through test. The following bools |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 // NetworkDelegate::NotifyURLRequestDestroyed has not been called, yet, | 231 // NetworkDelegate::NotifyURLRequestDestroyed has not been called, yet, |
| 231 // to inform the NetworkDelegate that it may not call back. | 232 // to inform the NetworkDelegate that it may not call back. |
| 232 bool awaiting_callback_; | 233 bool awaiting_callback_; |
| 233 | 234 |
| 234 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); | 235 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); |
| 235 }; | 236 }; |
| 236 | 237 |
| 237 } // namespace net | 238 } // namespace net |
| 238 | 239 |
| 239 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 240 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
| OLD | NEW |