diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-09 16:16:30 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-09 16:16:30 +0000 |
commit | 7c17b699b935d33b20163b6da9169ef69d267885 (patch) | |
tree | 3bd6e67d918e4e0538cacb61e54c27c07374d306 /net/server/http_server.h | |
parent | 9e52129b96738e19b584aa1356eb29d53ac58e74 (diff) | |
download | chromium_src-7c17b699b935d33b20163b6da9169ef69d267885.zip chromium_src-7c17b699b935d33b20163b6da9169ef69d267885.tar.gz chromium_src-7c17b699b935d33b20163b6da9169ef69d267885.tar.bz2 |
Add a menu item to content_shell to open devtools to make it more discoverable.
Since the devtools server is running for each content shell browser process, the user doesn't specify a server port anymore. Instead I let the system pick. This made it necessary to plumb the data back from net::HttpServer.
For now I only added Windows and Linux UI. Mac UI will be done later.
BUG=90445
Review URL: https://chromiumcodereview.appspot.com/10837177
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150808 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, 4 insertions, 0 deletions
diff --git a/net/server/http_server.h b/net/server/http_server.h index d9404c4..bc6a290 100644 --- a/net/server/http_server.h +++ b/net/server/http_server.h @@ -16,6 +16,7 @@ namespace net { class HttpConnection; class HttpServerRequestInfo; +class IPEndPoint; class WebSocket; class HttpServer : public StreamListenSocket::Delegate, @@ -53,6 +54,9 @@ class HttpServer : public StreamListenSocket::Delegate, void Send500(int connection_id, const std::string& message); void Close(int connection_id); + // Copies the local address to |address|. Returns a network error code. + int GetLocalAddress(IPEndPoint* address); + // ListenSocketDelegate virtual void DidAccept(StreamListenSocket* server, StreamListenSocket* socket) OVERRIDE; |