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

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

Issue 10736066: Adding histograms showing fraction of page load times (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 virtual void SetAuth(const AuthCredentials& credentials) OVERRIDE; 84 virtual void SetAuth(const AuthCredentials& credentials) OVERRIDE;
85 virtual void CancelAuth() OVERRIDE; 85 virtual void CancelAuth() OVERRIDE;
86 virtual void ContinueWithCertificate(X509Certificate* client_cert) OVERRIDE; 86 virtual void ContinueWithCertificate(X509Certificate* client_cert) OVERRIDE;
87 virtual void ContinueDespiteLastError() OVERRIDE; 87 virtual void ContinueDespiteLastError() OVERRIDE;
88 virtual bool ReadRawData(IOBuffer* buf, int buf_size, 88 virtual bool ReadRawData(IOBuffer* buf, int buf_size,
89 int* bytes_read) OVERRIDE; 89 int* bytes_read) OVERRIDE;
90 virtual void StopCaching() OVERRIDE; 90 virtual void StopCaching() OVERRIDE;
91 virtual void DoneReading() OVERRIDE; 91 virtual void DoneReading() OVERRIDE;
92 virtual HostPortPair GetSocketAddress() const OVERRIDE; 92 virtual HostPortPair GetSocketAddress() const OVERRIDE;
93 virtual void NotifyURLRequestDestroyed() OVERRIDE; 93 virtual void NotifyURLRequestDestroyed() OVERRIDE;
94 94
rvargas (doing something else) 2012/07/23 22:22:36 nit: remove line
tburkard 2012/07/24 01:03:12 Done.
95 virtual void OnDetachRequest() OVERRIDE;
96
95 HttpRequestInfo request_info_; 97 HttpRequestInfo request_info_;
96 const HttpResponseInfo* response_info_; 98 const HttpResponseInfo* response_info_;
97 99
98 std::vector<std::string> response_cookies_; 100 std::vector<std::string> response_cookies_;
99 size_t response_cookies_save_index_; 101 size_t response_cookies_save_index_;
100 base::Time response_date_; 102 base::Time response_date_;
101 103
102 // Auth states for proxy and origin server. 104 // Auth states for proxy and origin server.
103 AuthState proxy_auth_state_; 105 AuthState proxy_auth_state_;
104 AuthState server_auth_state_; 106 AuthState server_auth_state_;
(...skipping 30 matching lines...) Expand all
135 137
136 private: 138 private:
137 enum CompletionCause { 139 enum CompletionCause {
138 ABORTED, 140 ABORTED,
139 FINISHED 141 FINISHED
140 }; 142 };
141 143
142 typedef base::RefCountedData<bool> SharedBoolean; 144 typedef base::RefCountedData<bool> SharedBoolean;
143 145
144 class HttpFilterContext; 146 class HttpFilterContext;
145 147
rvargas (doing something else) 2012/07/23 22:22:36 nit: remove line
tburkard 2012/07/24 01:03:12 Done.
148 class HttpTransactionDelegateImpl;
149
146 virtual ~URLRequestHttpJob(); 150 virtual ~URLRequestHttpJob();
147 151
148 void RecordTimer(); 152 void RecordTimer();
149 void ResetTimer(); 153 void ResetTimer();
150 154
151 virtual void UpdatePacketReadTimes() OVERRIDE; 155 virtual void UpdatePacketReadTimes() OVERRIDE;
152 void RecordPacketStats(FilterContext::StatisticSelector statistic) const; 156 void RecordPacketStats(FilterContext::StatisticSelector statistic) const;
153 157
154 void RecordCompressionHistograms(); 158 void RecordCompressionHistograms();
155 bool IsCompressibleContent() const; 159 bool IsCompressibleContent() const;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 // layers of the network stack. 231 // layers of the network stack.
228 scoped_refptr<HttpResponseHeaders> override_response_headers_; 232 scoped_refptr<HttpResponseHeaders> override_response_headers_;
229 233
230 // Flag used to verify that |this| is not deleted while we are awaiting 234 // Flag used to verify that |this| is not deleted while we are awaiting
231 // a callback from the NetworkDelegate. Used as a fail-fast mechanism. 235 // a callback from the NetworkDelegate. Used as a fail-fast mechanism.
232 // True if we are waiting a callback and 236 // True if we are waiting a callback and
233 // NetworkDelegate::NotifyURLRequestDestroyed has not been called, yet, 237 // NetworkDelegate::NotifyURLRequestDestroyed has not been called, yet,
234 // to inform the NetworkDelegate that it may not call back. 238 // to inform the NetworkDelegate that it may not call back.
235 bool awaiting_callback_; 239 bool awaiting_callback_;
236 240
241 scoped_ptr<HttpTransactionDelegateImpl> http_transaction_delegate_;
242
237 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); 243 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob);
238 }; 244 };
239 245
240 } // namespace net 246 } // namespace net
241 247
242 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ 248 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698