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

Unified Diff: net/server/http_server.h

Issue 2341393002: Remove stl_util's STLDeleteContainerPairSecondPointers from net/. (Closed)
Patch Set: fix Created 4 years, 3 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/server/http_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/server/http_server.h
diff --git a/net/server/http_server.h b/net/server/http_server.h
index a0062d6821bc30f8129e590e31ef03bf0563aa84..e01e9745f95224ca49be1f2de97ea6415bac7f2b 100644
--- a/net/server/http_server.h
+++ b/net/server/http_server.h
@@ -82,8 +82,6 @@ class HttpServer {
private:
friend class HttpServerTest;
- typedef std::map<int, HttpConnection*> IdToConnectionMap;
-
void DoAcceptLoop();
void OnAcceptCompleted(int rv);
int HandleAcceptResult(int rv);
@@ -114,7 +112,7 @@ class HttpServer {
HttpServer::Delegate* const delegate_;
int last_id_;
- IdToConnectionMap id_to_connection_;
+ std::map<int, std::unique_ptr<HttpConnection>> id_to_connection_;
base::WeakPtrFactory<HttpServer> weak_ptr_factory_;
« no previous file with comments | « no previous file | net/server/http_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698