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

Side by Side Diff: net/http/http_cache_transaction.h

Issue 11637007: Split HttpCache miss tracking by Open and Create (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | « no previous file | net/http/http_cache_transaction.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 // This file declares HttpCache::Transaction, a private class of HttpCache so 5 // This file declares HttpCache::Transaction, a private class of HttpCache so
6 // it should only be included by http_cache.cc 6 // it should only be included by http_cache.cc
7 7
8 #ifndef NET_HTTP_HTTP_CACHE_TRANSACTION_H_ 8 #ifndef NET_HTTP_HTTP_CACHE_TRANSACTION_H_
9 #define NET_HTTP_HTTP_CACHE_TRANSACTION_H_ 9 #define NET_HTTP_HTTP_CACHE_TRANSACTION_H_
10 10
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 UploadProgress final_upload_progress_; 414 UploadProgress final_upload_progress_;
415 base::WeakPtrFactory<Transaction> weak_factory_; 415 base::WeakPtrFactory<Transaction> weak_factory_;
416 CompletionCallback io_callback_; 416 CompletionCallback io_callback_;
417 417
418 // Members used to track data for histograms. 418 // Members used to track data for histograms.
419 TransactionPattern transaction_pattern_; 419 TransactionPattern transaction_pattern_;
420 int bytes_read_from_cache_; 420 int bytes_read_from_cache_;
421 int bytes_read_from_network_; 421 int bytes_read_from_network_;
422 base::TimeTicks entry_lock_waiting_since_; 422 base::TimeTicks entry_lock_waiting_since_;
423 base::TimeTicks first_cache_access_since_; 423 base::TimeTicks first_cache_access_since_;
424 base::TimeTicks miss_since_;
424 base::TimeTicks send_request_since_; 425 base::TimeTicks send_request_since_;
425 426
426 // For sensitivity analysis (field trials emulating longer cache IO times), 427 // For sensitivity analysis (field trials emulating longer cache IO times),
427 // the time at which a cache IO action has started, or base::TimeTicks() 428 // the time at which a cache IO action has started, or base::TimeTicks()
428 // if no cache IO action is currently in progress. 429 // if no cache IO action is currently in progress.
429 base::TimeTicks cache_io_start_; 430 base::TimeTicks cache_io_start_;
430 431
431 // For OpenEntry and CreateEntry, if sensitivity analysis would mandate 432 // For OpenEntry and CreateEntry, if sensitivity analysis would mandate
432 // a delay on return, we must defer that delay until AddToEntry has been 433 // a delay on return, we must defer that delay until AddToEntry has been
433 // called, to avoid a race condition on the address returned. 434 // called, to avoid a race condition on the address returned.
434 base::TimeDelta deferred_cache_sensitivity_delay_; 435 base::TimeDelta deferred_cache_sensitivity_delay_;
435 bool defer_cache_sensitivity_delay_; 436 bool defer_cache_sensitivity_delay_;
436 437
437 // For sensitivity analysis, the simulated increase in cache service times, 438 // For sensitivity analysis, the simulated increase in cache service times,
438 // in percent. 439 // in percent.
439 int sensitivity_analysis_percent_increase_; 440 int sensitivity_analysis_percent_increase_;
440 441
441 HttpTransactionDelegate* transaction_delegate_; 442 HttpTransactionDelegate* transaction_delegate_;
442 }; 443 };
443 444
444 } // namespace net 445 } // namespace net
445 446
446 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ 447 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_
OLDNEW
« no previous file with comments | « no previous file | net/http/http_cache_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698