| 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_
|
|
|