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

Unified Diff: net/http/disk_cache_based_quic_server_info.cc

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/disk_based_cert_cache.cc ('k') | net/http/http_cache_transaction.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/disk_cache_based_quic_server_info.cc
diff --git a/net/http/disk_cache_based_quic_server_info.cc b/net/http/disk_cache_based_quic_server_info.cc
index 148df3f68b2a249c1a7b4e3a6994b40a74c8f6cd..ab34bbe9e1030db61a441ecd7e3c3bfd98e3558f 100644
--- a/net/http/disk_cache_based_quic_server_info.cc
+++ b/net/http/disk_cache_based_quic_server_info.cc
@@ -9,6 +9,7 @@
#include "base/callback_helpers.h"
#include "base/logging.h"
#include "base/metrics/histogram.h"
+#include "base/profiler/scoped_tracker.h"
#include "net/base/completion_callback.h"
#include "net/base/io_buffer.h"
#include "net/base/net_errors.h"
@@ -78,9 +79,11 @@ int DiskCacheBasedQuicServerInfo::WaitForDataReady(
const CompletionCallback& callback) {
DCHECK(CalledOnValidThread());
DCHECK_NE(GET_BACKEND, state_);
+ wait_for_data_start_time_ = base::TimeTicks::Now();
RecordQuicServerInfoStatus(QUIC_SERVER_INFO_WAIT_FOR_DATA_READY);
if (ready_) {
+ wait_for_data_end_time_ = base::TimeTicks::Now();
RecordLastFailure();
return OK;
}
@@ -183,11 +186,17 @@ std::string DiskCacheBasedQuicServerInfo::key() const {
void DiskCacheBasedQuicServerInfo::OnIOComplete(CacheOperationDataShim* unused,
int rv) {
+ // TODO(vadimt): Remove ScopedTracker below once crbug.com/422516 is fixed.
+ tracked_objects::ScopedTracker tracking_profile(
+ FROM_HERE_WITH_EXPLICIT_FUNCTION(
+ "422516 DiskCacheBasedQuicServerInfo::OnIOComplete"));
+
DCHECK_NE(NONE, state_);
rv = DoLoop(rv);
if (rv == ERR_IO_PENDING)
return;
if (!wait_for_ready_callback_.is_null()) {
+ wait_for_data_end_time_ = base::TimeTicks::Now();
RecordLastFailure();
base::ResetAndReturn(&wait_for_ready_callback_).Run(rv);
}
« no previous file with comments | « net/http/disk_based_cert_cache.cc ('k') | net/http/http_cache_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698