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

Unified Diff: net/base/stream_listen_socket.h

Issue 10837177: Add a menu item to content_shell to open devtools to make it more discoverable. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix android compile, and add gtk support Created 8 years, 4 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
Index: net/base/stream_listen_socket.h
===================================================================
--- net/base/stream_listen_socket.h (revision 150609)
+++ net/base/stream_listen_socket.h (working copy)
@@ -47,6 +47,8 @@
namespace net {
+class IPEndPoint;
+
class NET_EXPORT StreamListenSocket
: public base::RefCountedThreadSafe<StreamListenSocket>,
#if defined(OS_WIN)
@@ -79,6 +81,9 @@
void Send(const char* bytes, int len, bool append_linefeed = false);
void Send(const std::string& str, bool append_linefeed = false);
+ // Copies the local address to |address|. Returns a network error code.
+ int GetLocalAddress(IPEndPoint* address);
+
static const SocketDescriptor kInvalidSocket;
static const int kSocketError;

Powered by Google App Engine
This is Rietveld 408576698