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_; |