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

Unified Diff: net/http/disk_cache_based_quic_server_info.cc

Issue 669813003: Update from chromium https://crrev.com/301725/ (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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
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 44332c9307668263b52bd86e6692c81c5972ea06..ab6b6c89ba39221ef2600b421dcde103b4a48b21 100644
--- a/net/http/disk_cache_based_quic_server_info.cc
+++ b/net/http/disk_cache_based_quic_server_info.cc
@@ -101,6 +101,13 @@ int DiskCacheBasedQuicServerInfo::WaitForDataReady(
return ERR_IO_PENDING;
}
+void DiskCacheBasedQuicServerInfo::CancelWaitForDataReadyCallback() {
+ DCHECK(CalledOnValidThread());
+
+ if (!user_callback_.is_null())
+ user_callback_.Reset();
+}
+
bool DiskCacheBasedQuicServerInfo::IsDataReady() {
return ready_;
}
« no previous file with comments | « net/http/disk_cache_based_quic_server_info.h ('k') | net/http/disk_cache_based_quic_server_info_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698