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_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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 // object. | 162 // object. |
163 void StartTransaction(); | 163 void StartTransaction(); |
164 void StartTransactionInternal(); | 164 void StartTransactionInternal(); |
165 | 165 |
166 void RecordPerfHistograms(CompletionCause reason); | 166 void RecordPerfHistograms(CompletionCause reason); |
167 void DoneWithRequest(CompletionCause reason); | 167 void DoneWithRequest(CompletionCause reason); |
168 | 168 |
169 // Callback functions for Cookie Monster | 169 // Callback functions for Cookie Monster |
170 void CheckCookiePolicyAndLoad(const CookieList& cookie_list); | 170 void CheckCookiePolicyAndLoad(const CookieList& cookie_list); |
171 void OnCookiesLoaded( | 171 void OnCookiesLoaded( |
172 std::string* cookie_line, | 172 const std::string& cookie_line, |
173 std::vector<CookieStore::CookieInfo>* cookie_infos); | 173 const std::vector<CookieStore::CookieInfo>& cookie_infos); |
174 void DoStartTransaction(); | 174 void DoStartTransaction(); |
175 void OnCookieSaved(bool cookie_status); | 175 void OnCookieSaved(bool cookie_status); |
176 void CookieHandled(); | 176 void CookieHandled(); |
177 | 177 |
178 // Some servers send the body compressed, but specify the content length as | 178 // Some servers send the body compressed, but specify the content length as |
179 // the uncompressed size. If this is the case, we return true in order | 179 // the uncompressed size. If this is the case, we return true in order |
180 // to request to work around this non-adherence to the HTTP standard. | 180 // to request to work around this non-adherence to the HTTP standard. |
181 // |rv| is the standard return value of a read function indicating the number | 181 // |rv| is the standard return value of a read function indicating the number |
182 // of bytes read or, if negative, an error code. | 182 // of bytes read or, if negative, an error code. |
183 bool ShouldFixMismatchedContentLength(int rv) const; | 183 bool ShouldFixMismatchedContentLength(int rv) const; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 scoped_ptr<HttpFilterContext> filter_context_; | 215 scoped_ptr<HttpFilterContext> filter_context_; |
216 ScopedRunnableMethodFactory<URLRequestHttpJob> method_factory_; | 216 ScopedRunnableMethodFactory<URLRequestHttpJob> method_factory_; |
217 base::WeakPtrFactory<URLRequestHttpJob> weak_ptr_factory_; | 217 base::WeakPtrFactory<URLRequestHttpJob> weak_ptr_factory_; |
218 | 218 |
219 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); | 219 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); |
220 }; | 220 }; |
221 | 221 |
222 } // namespace net | 222 } // namespace net |
223 | 223 |
224 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ | 224 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ |
OLD | NEW |