| 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;
|
| +
|
| 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);
|
|
|