Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/quic/network_connection.h" | 5 #include "net/quic/network_connection.h" |
| 6 | 6 |
| 7 #include "net/base/net_util.h" | 7 #include "net/base/net_util.h" |
|
eroman
2015/08/12 18:37:16
can this be deleted now?
| |
| 8 #include "net/base/network_interfaces.h" | |
| 8 | 9 |
| 9 namespace net { | 10 namespace net { |
| 10 | 11 |
| 11 NetworkConnection::NetworkConnection() | 12 NetworkConnection::NetworkConnection() |
| 12 : connection_type_(NetworkChangeNotifier::CONNECTION_UNKNOWN), | 13 : connection_type_(NetworkChangeNotifier::CONNECTION_UNKNOWN), |
| 13 connection_description_(nullptr) { | 14 connection_description_(nullptr) { |
| 14 } | 15 } |
| 15 | 16 |
| 16 const char* NetworkConnection::GetDescription() { | 17 const char* NetworkConnection::GetDescription() { |
| 17 NetworkChangeNotifier::ConnectionType type = | 18 NetworkChangeNotifier::ConnectionType type = |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 67 void NetworkConnection::OnIPAddressChanged() { | 68 void NetworkConnection::OnIPAddressChanged() { |
| 68 Clear(); | 69 Clear(); |
| 69 } | 70 } |
| 70 | 71 |
| 71 void NetworkConnection::OnConnectionTypeChanged( | 72 void NetworkConnection::OnConnectionTypeChanged( |
| 72 NetworkChangeNotifier::ConnectionType type) { | 73 NetworkChangeNotifier::ConnectionType type) { |
| 73 Clear(); | 74 Clear(); |
| 74 } | 75 } |
| 75 | 76 |
| 76 } // namespace net | 77 } // namespace net |
| OLD | NEW |