Index: net/disk_cache/simple/simple_index.h |
diff --git a/net/disk_cache/simple/simple_index.h b/net/disk_cache/simple/simple_index.h |
index 1adb0ecc48a3f4e177fc392eb0b1726a5e1d9d1c..7a89b561fb353674dcf13375e38dc3ac4c89c8fc 100644 |
--- a/net/disk_cache/simple/simple_index.h |
+++ b/net/disk_cache/simple/simple_index.h |
@@ -58,6 +58,9 @@ class NET_EXPORT_PRIVATE EntryMetadata { |
void Serialize(base::Pickle* pickle) const; |
bool Deserialize(base::PickleIterator* it); |
+ // Returns the estimate of dynamically allocated memory in bytes. |
+ size_t EstimateMemoryUsage() const; |
jkarlin
2017/02/21 16:23:29
Why did you remove this? Shouldn't this result in
xunjieli
2017/02/21 19:44:13
This is not SimpleIndex. This is EntryMetaData.
|
+ |
static base::TimeDelta GetLowerEpsilonForTimeComparisons() { |
return base::TimeDelta::FromSeconds(1); |
} |
@@ -166,6 +169,9 @@ class NET_EXPORT_PRIVATE SimpleIndex |
IndexInitMethod init_method() const { return init_method_; } |
+ // Returns the estimate of dynamically allocated memory in bytes. |
+ size_t EstimateMemoryUsage() const; |
+ |
private: |
friend class SimpleIndexTest; |
FRIEND_TEST_ALL_PREFIXES(SimpleIndexTest, IndexSizeCorrectOnMerge); |