Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Side by Side Diff: net/url_request/url_request_http_job.h

Issue 7833042: Finalize a CL originally by departed intern ycxiao@ that detaches the loading of cookies from the... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/base/cookie_store_test_helpers.cc ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/base/cookie_store_test_helpers.cc ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698