Fix crash in SpeechRecognizerImpl introduced in AudioParams refactor.
[chromium-blink-merge.git] / net / base / network_interfaces.cc
bloba49bce600c4da928cbac725c2e9da423d8408414
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "net/base/network_interfaces.h"
7 namespace net {
9 NetworkInterface::NetworkInterface()
10 : type(NetworkChangeNotifier::CONNECTION_UNKNOWN), prefix_length(0) {
13 NetworkInterface::NetworkInterface(const std::string& name,
14 const std::string& friendly_name,
15 uint32_t interface_index,
16 NetworkChangeNotifier::ConnectionType type,
17 const IPAddressNumber& address,
18 uint32_t prefix_length,
19 int ip_address_attributes)
20 : name(name),
21 friendly_name(friendly_name),
22 interface_index(interface_index),
23 type(type),
24 address(address),
25 prefix_length(prefix_length),
26 ip_address_attributes(ip_address_attributes) {
29 NetworkInterface::~NetworkInterface() {
32 ScopedWifiOptions::~ScopedWifiOptions() {
35 } // namespace net