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

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

Issue 1884453002: Revert of Convert //net and //chromecast to std::unordered_* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/disk_cache/memory/mem_entry_impl.h ('k') | net/disk_cache/simple/simple_backend_impl.cc » ('j') | no next file with comments »
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 791a686aa35089d1789a55da991448c08aa8fa09..6db401637612f7426fd9d8a38a4cd77146405070 100644
--- a/net/disk_cache/simple/simple_backend_impl.h
+++ b/net/disk_cache/simple/simple_backend_impl.h
@@ -8,12 +8,12 @@
#include <stdint.h>
#include <string>
-#include <unordered_map>
#include <utility>
#include <vector>
#include "base/callback_forward.h"
#include "base/compiler_specific.h"
+#include "base/containers/hash_tables.h"
#include "base/files/file_path.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
@@ -116,10 +116,10 @@
class SimpleIterator;
friend class SimpleIterator;
- using EntryMap = std::unordered_map<uint64_t, SimpleEntryImpl*>;
-
- using InitializeIndexCallback =
- base::Callback<void(base::Time mtime, uint64_t max_size, int result)>;
+ typedef base::hash_map<uint64_t, SimpleEntryImpl*> EntryMap;
+
+ typedef base::Callback<void(base::Time mtime, uint64_t max_size, int result)>
+ InitializeIndexCallback;
class ActiveEntryProxy;
friend class ActiveEntryProxy;
@@ -210,8 +210,7 @@
// these entries cannot have Doom/Create/Open operations run until the doom
// is complete. The base::Closure map target is used to store deferred
// operations to be run at the completion of the Doom.
- std::unordered_map<uint64_t, std::vector<base::Closure>>
- entries_pending_doom_;
+ base::hash_map<uint64_t, std::vector<base::Closure>> entries_pending_doom_;
net::NetLog* const net_log_;
};
« no previous file with comments | « net/disk_cache/memory/mem_entry_impl.h ('k') | net/disk_cache/simple/simple_backend_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698