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

Side by Side Diff: net/url_request/url_request_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, 4 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/url_request/url_request_http_job.cc ('k') | net/url_request/url_request_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) 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_JOB_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_JOB_H_
6 #define NET_URL_REQUEST_URL_REQUEST_JOB_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_JOB_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 void RecordBytesRead(int bytes_read); 327 void RecordBytesRead(int bytes_read);
328 328
329 // Called to query whether there is data available in the filter to be read 329 // Called to query whether there is data available in the filter to be read
330 // out. 330 // out.
331 bool FilterHasData(); 331 bool FilterHasData();
332 332
333 // Subclasses may implement this method to record packet arrival times. 333 // Subclasses may implement this method to record packet arrival times.
334 // The default implementation does nothing. 334 // The default implementation does nothing.
335 virtual void UpdatePacketReadTimes(); 335 virtual void UpdatePacketReadTimes();
336 336
337 // Custom handler for derived classes when the request is detached.
338 virtual void OnDetachRequest() {}
339
337 // Indicates that the job is done producing data, either it has completed 340 // Indicates that the job is done producing data, either it has completed
338 // all the data or an error has been encountered. Set exclusively by 341 // all the data or an error has been encountered. Set exclusively by
339 // NotifyDone so that it is kept in sync with the request. 342 // NotifyDone so that it is kept in sync with the request.
340 bool done_; 343 bool done_;
341 344
342 int prefilter_bytes_read_; 345 int prefilter_bytes_read_;
343 int postfilter_bytes_read_; 346 int postfilter_bytes_read_;
344 int64 filter_input_byte_count_; 347 int64 filter_input_byte_count_;
345 348
346 // The data stream filter which is enabled on demand. 349 // The data stream filter which is enabled on demand.
(...skipping 28 matching lines...) Expand all
375 NetworkDelegate* network_delegate_; 378 NetworkDelegate* network_delegate_;
376 379
377 base::WeakPtrFactory<URLRequestJob> weak_factory_; 380 base::WeakPtrFactory<URLRequestJob> weak_factory_;
378 381
379 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); 382 DISALLOW_COPY_AND_ASSIGN(URLRequestJob);
380 }; 383 };
381 384
382 } // namespace net 385 } // namespace net
383 386
384 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ 387 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_http_job.cc ('k') | net/url_request/url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698