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

Unified Diff: net/base/network_interfaces.cc

Issue 1154323007: Split network_interfaces.h off of net_utils.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ip_util
Patch Set: address matt's comments Created 5 years, 7 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
« no previous file with comments | « net/base/network_interfaces.h ('k') | net/base/network_interfaces_linux.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/network_interfaces.cc
diff --git a/net/tools/quic/spdy_balsa_utils.h b/net/base/network_interfaces.cc
similarity index 19%
copy from net/tools/quic/spdy_balsa_utils.h
copy to net/base/network_interfaces.cc
index 3c1c9b38d76f94005317e8d8d39fd53bf01b6ad8..e9e8dc51c954dbd48b0bd2acd84f5023a16159d5 100644
--- a/net/tools/quic/spdy_balsa_utils.h
+++ b/net/base/network_interfaces.cc
@@ -2,43 +2,34 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef NET_TOOLS_QUIC_SPDY_BALSA_UTILS_H_
-#define NET_TOOLS_QUIC_SPDY_BALSA_UTILS_H_
-
-#include <string>
-
-#include "net/quic/quic_protocol.h"
-#include "net/spdy/spdy_framer.h"
-#include "net/spdy/spdy_header_block.h"
-#include "net/spdy/spdy_protocol.h"
-#include "net/tools/balsa/balsa_headers.h"
+#include "net/base/network_interfaces.h"
namespace net {
-namespace tools {
-
-class SpdyBalsaUtils {
- public:
- static std::string SerializeResponseHeaders(
- const BalsaHeaders& response_headers,
- QuicVersion quic_version);
-
- static SpdyHeaderBlock RequestHeadersToSpdyHeaders(
- const BalsaHeaders& request_headers,
- QuicVersion quic_version);
- static SpdyHeaderBlock ResponseHeadersToSpdyHeaders(
- const BalsaHeaders& response_headers,
- QuicVersion quic_version);
+NetworkInterface::NetworkInterface()
+ : type(NetworkChangeNotifier::CONNECTION_UNKNOWN), prefix_length(0) {
+}
+
+NetworkInterface::NetworkInterface(const std::string& name,
+ const std::string& friendly_name,
+ uint32 interface_index,
+ NetworkChangeNotifier::ConnectionType type,
+ const IPAddressNumber& address,
+ uint32 prefix_length,
+ int ip_address_attributes)
+ : name(name),
+ friendly_name(friendly_name),
+ interface_index(interface_index),
+ type(type),
+ address(address),
+ prefix_length(prefix_length),
+ ip_address_attributes(ip_address_attributes) {
+}
+
+NetworkInterface::~NetworkInterface() {
+}
+
+ScopedWifiOptions::~ScopedWifiOptions() {
+}
- static void SpdyHeadersToResponseHeaders(const SpdyHeaderBlock& block,
- BalsaHeaders* headers,
- QuicVersion quic_version);
-
- private:
- DISALLOW_COPY_AND_ASSIGN(SpdyBalsaUtils);
-};
-
-} // namespace tools
} // namespace net
-
-#endif // NET_TOOLS_QUIC_SPDY_BALSA_UTILS_H_
« no previous file with comments | « net/base/network_interfaces.h ('k') | net/base/network_interfaces_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698