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

Unified Diff: net/tools/epoll_server/epoll_server.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/tools/balsa/string_piece_utils.h ('k') | net/tools/net_watcher/net_watcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/epoll_server/epoll_server.h
diff --git a/net/tools/epoll_server/epoll_server.h b/net/tools/epoll_server/epoll_server.h
index a913eba2dc07399b1001cdea5be07c0ae2a0dbdc..460db3d3a4aa9ee71e8a9337463e20122d034b56 100644
--- a/net/tools/epoll_server/epoll_server.h
+++ b/net/tools/epoll_server/epoll_server.h
@@ -12,8 +12,6 @@
#include <map>
#include <string>
-#include <unordered_map>
-#include <unordered_set>
#include <vector>
// #define EPOLL_SERVER_EVENT_TRACING 1
@@ -36,6 +34,7 @@
#endif
#include "base/compiler_specific.h"
+#include "base/containers/hash_tables.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include <sys/epoll.h>
@@ -554,7 +553,7 @@
}
};
- using FDToCBMap = std::unordered_set<CBAndEventMask, CBAndEventMaskHash>;
+ typedef base::hash_set<CBAndEventMask, CBAndEventMaskHash> FDToCBMap;
// the following four functions are OS-specific, and are likely
// to be changed in a subclass if the poll/select method is changed
@@ -665,7 +664,7 @@
// only so that we can enforce stringent checks that a caller can not register
// the same alarm twice. One option is to have an implementation in which
// this hash_set is used only in the debug mode.
- using AlarmCBMap = std::unordered_set<AlarmCB*, AlarmCBHash>;
+ typedef base::hash_set<AlarmCB*, AlarmCBHash> AlarmCBMap;
AlarmCBMap all_alarms_;
TimeToAlarmCBMap alarm_map_;
@@ -916,7 +915,7 @@
std::vector<DebugOutput*> debug_events_;
std::vector<Events> unregistered_fds_;
- using EventCountsMap = std::unordered_map<int, Events>;
+ typedef base::hash_map<int, Events> EventCountsMap;
EventCountsMap event_counts_;
int64_t num_records_;
int64_t record_threshold_;
« no previous file with comments | « net/tools/balsa/string_piece_utils.h ('k') | net/tools/net_watcher/net_watcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698