OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 86 |
87 bool read_in_progress_; | 87 bool read_in_progress_; |
88 | 88 |
89 // An URL for an SDCH dictionary as suggested in a Get-Dictionary HTTP header. | 89 // An URL for an SDCH dictionary as suggested in a Get-Dictionary HTTP header. |
90 GURL sdch_dictionary_url_; | 90 GURL sdch_dictionary_url_; |
91 | 91 |
92 // Keep a reference to the url request context to be sure it's not deleted | 92 // Keep a reference to the url request context to be sure it's not deleted |
93 // before us. | 93 // before us. |
94 scoped_refptr<URLRequestContext> context_; | 94 scoped_refptr<URLRequestContext> context_; |
95 | 95 |
| 96 // Indicated if an SDCH dictionary was advertised, and hence an SDCH |
| 97 // compressed response is expected. We use this to help detect (accidental?) |
| 98 // proxy corruption of a response, which sometimes marks SDCH content as |
| 99 // having no content encoding <oops>. |
| 100 bool sdch_dictionary_advertised_; |
| 101 |
| 102 // For SDCH latency experiments, when we are able to do SDCH, we may enable |
| 103 // either an SDCH latency test xor a pass through test. The following bools |
| 104 // indicate what we decided on for this instance. |
| 105 bool sdch_test_activated_; // Advertising a dictionary for sdch. |
| 106 bool sdch_test_control_; // Not even accepting-content sdch. |
| 107 |
96 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); | 108 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); |
97 }; | 109 }; |
98 | 110 |
99 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 111 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
OLD | NEW |