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

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

Issue 14877019: Minor SimpleCacheBackend improvements. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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.h » ('j') | net/disk_cache/simple/simple_index.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/simple/simple_backend_impl.h
diff --git a/net/disk_cache/simple/simple_backend_impl.h b/net/disk_cache/simple/simple_backend_impl.h
index ebb96c7caca6a14d750108aed74eea9164ad109b..9f1e90d3806eabc07067e7a86076104c7fe05e5a 100644
--- a/net/disk_cache/simple/simple_backend_impl.h
+++ b/net/disk_cache/simple/simple_backend_impl.h
@@ -12,6 +12,7 @@
#include "base/compiler_specific.h"
#include "base/files/file_path.h"
+#include "base/hash_tables.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
@@ -84,7 +85,7 @@ class NET_EXPORT_PRIVATE SimpleBackendImpl : public Backend,
virtual void OnExternalCacheHit(const std::string& key) OVERRIDE;
private:
- typedef std::map<uint64, base::WeakPtr<SimpleEntryImpl> > EntryMap;
+ typedef base::hash_map<uint64, base::WeakPtr<SimpleEntryImpl> > EntryMap;
pasko 2013/05/17 10:31:33 This change cannot make any significant improvemen
digit1 2013/05/17 14:36:18 I feel that these statements are contradicting eac
pasko 2013/05/17 16:57:19 You are right, there is practically no difference.
typedef base::Callback<void(uint64 max_size, int result)>
InitializeIndexCallback;
« no previous file with comments | « no previous file | net/disk_cache/simple/simple_index.h » ('j') | net/disk_cache/simple/simple_index.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698