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

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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 virtual void CancelAuth() OVERRIDE; 86 virtual void CancelAuth() OVERRIDE;
87 virtual void ContinueWithCertificate(X509Certificate* client_cert) OVERRIDE; 87 virtual void ContinueWithCertificate(X509Certificate* client_cert) OVERRIDE;
88 virtual void ContinueDespiteLastError() OVERRIDE; 88 virtual void ContinueDespiteLastError() OVERRIDE;
89 virtual bool ReadRawData(IOBuffer* buf, int buf_size, 89 virtual bool ReadRawData(IOBuffer* buf, int buf_size,
90 int* bytes_read) OVERRIDE; 90 int* bytes_read) OVERRIDE;
91 virtual void StopCaching() OVERRIDE; 91 virtual void StopCaching() OVERRIDE;
92 virtual void DoneReading() OVERRIDE; 92 virtual void DoneReading() OVERRIDE;
93 virtual HostPortPair GetSocketAddress() const OVERRIDE; 93 virtual HostPortPair GetSocketAddress() const OVERRIDE;
94 virtual void NotifyURLRequestDestroyed() OVERRIDE; 94 virtual void NotifyURLRequestDestroyed() OVERRIDE;
95 95
96 virtual void OnDetachRequest() OVERRIDE;
97
96 HttpRequestInfo request_info_; 98 HttpRequestInfo request_info_;
97 const HttpResponseInfo* response_info_; 99 const HttpResponseInfo* response_info_;
98 100
99 std::vector<std::string> response_cookies_; 101 std::vector<std::string> response_cookies_;
100 size_t response_cookies_save_index_; 102 size_t response_cookies_save_index_;
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_;
105 AuthCredentials auth_credentials_; 107 AuthCredentials auth_credentials_;
(...skipping 30 matching lines...) Expand all
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
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