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

Unified Diff: net/server/http_server.cc

Issue 10161005: Add DefaultListenSocket. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix build on Windows Created 8 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 | « net/server/http_server.h ('k') | net/socket/transport_client_socket_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/server/http_server.cc
diff --git a/net/server/http_server.cc b/net/server/http_server.cc
index c9d8ac755f34d08ab0646fe790f3b8add2c471bf..51ec79fffaef26e0f5013b6762f0bf72df6f707c 100644
--- a/net/server/http_server.cc
+++ b/net/server/http_server.cc
@@ -93,14 +93,14 @@ void HttpServer::Close(int connection_id)
DidClose(connection->socket_);
}
-void HttpServer::DidAccept(ListenSocket* server,
- ListenSocket* socket) {
+void HttpServer::DidAccept(StreamListenSocket* server,
+ StreamListenSocket* socket) {
HttpConnection* connection = new HttpConnection(this, socket);
id_to_connection_[connection->id()] = connection;
socket_to_connection_[socket] = connection;
}
-void HttpServer::DidRead(ListenSocket* socket,
+void HttpServer::DidRead(StreamListenSocket* socket,
const char* data,
int len) {
HttpConnection* connection = FindConnection(socket);
@@ -148,7 +148,7 @@ void HttpServer::DidRead(ListenSocket* socket,
}
}
-void HttpServer::DidClose(ListenSocket* socket) {
+void HttpServer::DidClose(StreamListenSocket* socket) {
HttpConnection* connection = FindConnection(socket);
DCHECK(connection != NULL);
id_to_connection_.erase(connection->id());
@@ -302,7 +302,7 @@ HttpConnection* HttpServer::FindConnection(int connection_id) {
return it->second;
}
-HttpConnection* HttpServer::FindConnection(ListenSocket* socket) {
+HttpConnection* HttpServer::FindConnection(StreamListenSocket* socket) {
SocketToConnectionMap::iterator it = socket_to_connection_.find(socket);
if (it == socket_to_connection_.end())
return NULL;
« no previous file with comments | « net/server/http_server.h ('k') | net/socket/transport_client_socket_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698