| Index: net/server/http_connection.cc
|
| diff --git a/net/server/http_connection.cc b/net/server/http_connection.cc
|
| index d964cb0738b3ad3db912ec79bb0dcdbecf3ee1b4..d433012cd651c7b7462972c3835cb818a9a78d8d 100644
|
| --- a/net/server/http_connection.cc
|
| +++ b/net/server/http_connection.cc
|
| @@ -29,21 +29,17 @@ void HttpConnection::Send(const HttpServerResponseInfo& response) {
|
| Send(response.Serialize());
|
| }
|
|
|
| -HttpConnection::HttpConnection(HttpServer* server, StreamListenSocket* sock)
|
| +HttpConnection::HttpConnection(HttpServer* server,
|
| + scoped_ptr<StreamListenSocket> sock)
|
| : server_(server),
|
| - socket_(sock) {
|
| + socket_(sock.Pass()) {
|
| id_ = last_id_++;
|
| }
|
|
|
| HttpConnection::~HttpConnection() {
|
| - DetachSocket();
|
| server_->delegate_->OnClose(id_);
|
| }
|
|
|
| -void HttpConnection::DetachSocket() {
|
| - socket_ = NULL;
|
| -}
|
| -
|
| void HttpConnection::Shift(int num_bytes) {
|
| recv_data_ = recv_data_.substr(num_bytes);
|
| }
|
|
|