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

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

Issue 10911151: URLRequestHttpJob::StartTransaction should honour network delegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added a unit-test, not fully working yet Created 8 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
OLDNEW
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 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 160
161 virtual void UpdatePacketReadTimes() OVERRIDE; 161 virtual void UpdatePacketReadTimes() OVERRIDE;
162 void RecordPacketStats(FilterContext::StatisticSelector statistic) const; 162 void RecordPacketStats(FilterContext::StatisticSelector statistic) const;
163 163
164 void RecordCompressionHistograms(); 164 void RecordCompressionHistograms();
165 bool IsCompressibleContent() const; 165 bool IsCompressibleContent() const;
166 166
167 // Starts the transaction if extensions using the webrequest API do not 167 // Starts the transaction if extensions using the webrequest API do not
168 // object. 168 // object.
169 void StartTransaction(); 169 void StartTransaction();
170 // If |result| is net::OK, calls StartTransactionInternal. Otherwise notifies
171 // cancellation.
172 void MaybeStartTransactionInternal(int result);
170 void StartTransactionInternal(); 173 void StartTransactionInternal();
171 174
172 void RecordPerfHistograms(CompletionCause reason); 175 void RecordPerfHistograms(CompletionCause reason);
173 void DoneWithRequest(CompletionCause reason); 176 void DoneWithRequest(CompletionCause reason);
174 177
175 // Callback functions for Cookie Monster 178 // Callback functions for Cookie Monster
176 void DoLoadCookies(); 179 void DoLoadCookies();
177 void CheckCookiePolicyAndLoad(const CookieList& cookie_list); 180 void CheckCookiePolicyAndLoad(const CookieList& cookie_list);
178 void OnCookiesLoaded( 181 void OnCookiesLoaded(
179 const std::string& cookie_line, 182 const std::string& cookie_line,
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 // result of, if any. If this request has not been retried, must be 0. 260 // result of, if any. If this request has not been retried, must be 0.
258 // Reset once it's been used to log histograms. 261 // Reset once it's been used to log histograms.
259 int error_before_retry_; 262 int error_before_retry_;
260 263
261 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); 264 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob);
262 }; 265 };
263 266
264 } // namespace net 267 } // namespace net
265 268
266 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ 269 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_
OLDNEW
« no previous file with comments | « no previous file | net/url_request/url_request_http_job.cc » ('j') | net/url_request/url_request_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698