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

Unified Diff: net/disk_cache/simple/simple_index.h

Issue 14746019: net/disk_cache/simple: Reduce size of EntrySet nodes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: simple rebase Created 7 years, 7 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 | « no previous file | net/disk_cache/simple/simple_index.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e1d28197cbd69dcb22d52041c1e9e36fce34963f..e004c0f166236461a108aed836948c31f2e05068 100644
--- a/net/disk_cache/simple/simple_index.h
+++ b/net/disk_cache/simple/simple_index.h
@@ -39,11 +39,8 @@ namespace disk_cache {
class NET_EXPORT_PRIVATE EntryMetadata {
public:
EntryMetadata();
- EntryMetadata(uint64 hash_key,
- base::Time last_used_time,
- uint64 entry_size);
+ EntryMetadata(base::Time last_used_time, uint64 entry_size);
- uint64 GetHashKey() const { return hash_key_; }
base::Time GetLastUsedTime() const;
void SetLastUsedTime(const base::Time& last_used_time);
@@ -63,7 +60,6 @@ class NET_EXPORT_PRIVATE EntryMetadata {
// When adding new members here, you should update the Serialize() and
// Deserialize() methods.
- uint64 hash_key_;
// This is the serialized format from Time::ToInternalValue().
// If you want to make calculations/comparisons, you should use the
@@ -110,7 +106,8 @@ class NET_EXPORT_PRIVATE SimpleIndex
// use a hash_set.
typedef base::hash_map<uint64, EntryMetadata> EntrySet;
- static void InsertInEntrySet(const EntryMetadata& entry_metadata,
+ static void InsertInEntrySet(uint64 hash_key,
+ const EntryMetadata& entry_metadata,
EntrySet* entry_set);
// Executes the |callback| when the index is ready. Allows multiple callbacks.
« no previous file with comments | « no previous file | net/disk_cache/simple/simple_index.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698