diff options
author | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-03 18:31:19 +0000 |
---|---|---|
committer | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-03 18:31:19 +0000 |
commit | b1404393bdc369782ec995a9fa5f89d084ce487e (patch) | |
tree | 93c4e4f6a38f0ee00f6ab4dc7fddf95cab1692de /net/server/http_server.h | |
parent | 9289af828c3cb0323a4655aac6264d06e9b0a409 (diff) | |
download | chromium_src-b1404393bdc369782ec995a9fa5f89d084ce487e.zip chromium_src-b1404393bdc369782ec995a9fa5f89d084ce487e.tar.gz chromium_src-b1404393bdc369782ec995a9fa5f89d084ce487e.tar.bz2 |
DevTools: follo up to http server introduction. Report OnClose from Connection destructor.
BUG=
TEST=
Review URL: http://codereview.chromium.org/6312127
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73640 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/server/http_server.h')
-rw-r--r-- | net/server/http_server.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/server/http_server.h b/net/server/http_server.h index fc87cdb..bee6e28 100644 --- a/net/server/http_server.h +++ b/net/server/http_server.h @@ -56,11 +56,12 @@ private: static int lastId_; friend class HttpServer; - explicit Connection(ListenSocket* sock); + explicit Connection(HttpServer* server, ListenSocket* sock); ~Connection(); void DetachSocket(); + HttpServer* server_; scoped_refptr<ListenSocket> socket_; bool is_web_socket_; std::string recv_data_; @@ -68,6 +69,7 @@ private: DISALLOW_COPY_AND_ASSIGN(Connection); }; + friend class Connection; // ListenSocketDelegate |