summaryrefslogtreecommitdiffstats
path: root/net/base/net_util.cc
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-19 00:36:39 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-19 00:36:39 +0000
commit611cc90419870d40c0048c01ce72def49b8b5dd3 (patch)
tree264a4f257f9d2906f1d7d75e47154b014312af7f /net/base/net_util.cc
parent35d94587215848ac4ec0dbeceaa4e86a7657f7ae (diff)
downloadchromium_src-611cc90419870d40c0048c01ce72def49b8b5dd3.zip
chromium_src-611cc90419870d40c0048c01ce72def49b8b5dd3.tar.gz
chromium_src-611cc90419870d40c0048c01ce72def49b8b5dd3.tar.bz2
Add GetNetworkList() in net_utils.
BUG=None TEST=Unittests. Review URL: http://codereview.chromium.org/6676027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78780 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/net_util.cc')
-rw-r--r--net/base/net_util.cc13
1 files changed, 12 insertions, 1 deletions
diff --git a/net/base/net_util.cc b/net/base/net_util.cc
index f3b0127..1a8aa89 100644
--- a/net/base/net_util.cc
+++ b/net/base/net_util.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -2111,4 +2111,15 @@ int GetPortFromSockaddr(const struct sockaddr* address, socklen_t address_len) {
return ntohs(*port_field);
}
+NetworkInterface::NetworkInterface() {
+}
+
+NetworkInterface::NetworkInterface(const std::string& name,
+ const IPAddressNumber& address)
+ : name(name), address(address) {
+}
+
+NetworkInterface::~NetworkInterface() {
+}
+
} // namespace net