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

Unified Diff: net/http/disk_cache_based_quic_server_info.h

Issue 2807493002: Track STL containers in QuicStreamFactory::DumpMemoryStats (Closed)
Patch Set: address zhongyi@ comment Created 3 years, 8 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 | « net/BUILD.gn ('k') | net/http/disk_cache_based_quic_server_info.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.h
diff --git a/net/http/disk_cache_based_quic_server_info.h b/net/http/disk_cache_based_quic_server_info.h
index 4b0ee09166d61b8f073293a0a6f5772d3262b94c..2396f8c5b343c943cd06d88da9a54f4002db6274 100644
--- a/net/http/disk_cache_based_quic_server_info.h
+++ b/net/http/disk_cache_based_quic_server_info.h
@@ -20,7 +20,7 @@
namespace net {
class HttpCache;
-class IOBuffer;
+class IOBufferWithSize;
class QuicServerId;
// DiskCacheBasedQuicServerInfo fetches information about a QUIC server from
@@ -43,6 +43,7 @@ class NET_EXPORT_PRIVATE DiskCacheBasedQuicServerInfo
bool IsReadyToPersist() override;
void Persist() override;
void OnExternalCacheHit() override;
+ size_t EstimateMemoryUsage() const override;
private:
struct CacheOperationDataShim;
@@ -118,8 +119,8 @@ class NET_EXPORT_PRIVATE DiskCacheBasedQuicServerInfo
disk_cache::Backend* backend_;
disk_cache::Entry* entry_;
CompletionCallback wait_for_ready_callback_;
- scoped_refptr<IOBuffer> read_buffer_;
- scoped_refptr<IOBuffer> write_buffer_;
+ scoped_refptr<IOBufferWithSize> read_buffer_;
+ scoped_refptr<IOBufferWithSize> write_buffer_;
std::string data_;
base::TimeTicks load_start_time_;
FailureReason last_failure_;
« no previous file with comments | « net/BUILD.gn ('k') | net/http/disk_cache_based_quic_server_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698