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

Unified Diff: net/http/http_cache_transaction.cc

Issue 10797042: Add more using base::Time* to http_cache_transaction.cc. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_cache_transaction.cc
diff --git a/net/http/http_cache_transaction.cc b/net/http/http_cache_transaction.cc
index f572efe5a04a0e89c25b1bd0fea669de136c7ff4..652a3b26b6d136d0a7fa3d8926deb9841f940582 100644
--- a/net/http/http_cache_transaction.cc
+++ b/net/http/http_cache_transaction.cc
@@ -36,6 +36,8 @@
#include "net/http/partial_data.h"
using base::Time;
+using base::TimeDelta;
+using base::TimeTicks;
namespace net {
@@ -949,7 +951,7 @@ int HttpCache::Transaction::DoAddToEntry() {
next_state_ = STATE_ADD_TO_ENTRY_COMPLETE;
net_log_.BeginEvent(NetLog::TYPE_HTTP_CACHE_ADD_TO_ENTRY);
DCHECK(entry_lock_waiting_since_.is_null());
- entry_lock_waiting_since_ = base::TimeTicks::Now();
+ entry_lock_waiting_since_ = TimeTicks::Now();
return cache_->AddTransactionToEntry(new_entry_, this);
}
@@ -957,8 +959,8 @@ int HttpCache::Transaction::DoAddToEntryComplete(int result) {
net_log_.EndEventWithNetErrorCode(NetLog::TYPE_HTTP_CACHE_ADD_TO_ENTRY,
result);
- const base::TimeDelta entry_lock_wait =
- base::TimeTicks::Now() - entry_lock_waiting_since_;
+ const TimeDelta entry_lock_wait =
+ TimeTicks::Now() - entry_lock_waiting_since_;
UMA_HISTOGRAM_TIMES("HttpCache.EntryLockWait", entry_lock_wait);
static const bool prefetching_fieldtrial =
base::FieldTrialList::TrialExists("Prefetch");
@@ -975,7 +977,7 @@ int HttpCache::Transaction::DoAddToEntryComplete(int result) {
entry_lock_wait);
}
- entry_lock_waiting_since_ = base::TimeTicks();
+ entry_lock_waiting_since_ = TimeTicks();
DCHECK(new_entry_);
cache_pending_ = false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698