| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef NET_NQE_EFFECTIVE_CONNECTION_TYPE_H_ | 5 #ifndef NET_NQE_EFFECTIVE_CONNECTION_TYPE_H_ |
| 6 #define NET_NQE_EFFECTIVE_CONNECTION_TYPE_H_ | 6 #define NET_NQE_EFFECTIVE_CONNECTION_TYPE_H_ |
| 7 | 7 |
| 8 #include "base/strings/string_piece.h" | 8 #include "base/strings/string_piece.h" |
| 9 #include "net/base/net_export.h" | 9 #include "net/base/net_export.h" |
| 10 | 10 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // Returns true if the EffectiveConnectionType that corresponds to | 57 // Returns true if the EffectiveConnectionType that corresponds to |
| 58 // |connection_type_name| is available, and sets |effective_connection_type| to | 58 // |connection_type_name| is available, and sets |effective_connection_type| to |
| 59 // that value. If the effective connection type is unavailable, false is | 59 // that value. If the effective connection type is unavailable, false is |
| 60 // returned, and |effective_connection_type| is set to | 60 // returned, and |effective_connection_type| is set to |
| 61 // EFFECTIVE_CONNECTION_TYPE_UNKNOWN. |effective_connection_type| must be | 61 // EFFECTIVE_CONNECTION_TYPE_UNKNOWN. |effective_connection_type| must be |
| 62 // non-null. | 62 // non-null. |
| 63 NET_EXPORT bool GetEffectiveConnectionTypeForName( | 63 NET_EXPORT bool GetEffectiveConnectionTypeForName( |
| 64 base::StringPiece connection_type_name, | 64 base::StringPiece connection_type_name, |
| 65 EffectiveConnectionType* effective_connection_type); | 65 EffectiveConnectionType* effective_connection_type); |
| 66 | 66 |
| 67 // Returns the string equivalent of |type|. Deprecated, and replaced by |
| 68 // GetNameForEffectiveConnectionType. |
| 69 NET_EXPORT_PRIVATE const char* DeprecatedGetNameForEffectiveConnectionType( |
| 70 EffectiveConnectionType type); |
| 71 |
| 67 } // namespace net | 72 } // namespace net |
| 68 | 73 |
| 69 #endif // NET_NQE_EFFECTIVE_CONNECTION_TYPE_H_ | 74 #endif // NET_NQE_EFFECTIVE_CONNECTION_TYPE_H_ |
| OLD | NEW |