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

Side by Side Diff: net/nqe/effective_connection_type.h

Issue 2228253002: NQE: Remove Broadband from the list of ECT enums (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « content/renderer/render_frame_impl_browsertest.cc ('k') | net/nqe/effective_connection_type.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <string> 8 #include <string>
9 9
10 #include "net/base/net_export.h" 10 #include "net/base/net_export.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 EFFECTIVE_CONNECTION_TYPE_2G, 43 EFFECTIVE_CONNECTION_TYPE_2G,
44 44
45 // Effective connection type reported when the network has the quality of a 3G 45 // Effective connection type reported when the network has the quality of a 3G
46 // connection. 46 // connection.
47 EFFECTIVE_CONNECTION_TYPE_3G, 47 EFFECTIVE_CONNECTION_TYPE_3G,
48 48
49 // Effective connection type reported when the network has the quality of a 4G 49 // Effective connection type reported when the network has the quality of a 4G
50 // connection. 50 // connection.
51 EFFECTIVE_CONNECTION_TYPE_4G, 51 EFFECTIVE_CONNECTION_TYPE_4G,
52 52
53 // Effective connection type reported when the network has the quality of a
54 // broadband connection.
55 EFFECTIVE_CONNECTION_TYPE_BROADBAND,
56
57 // Last value of the effective connection type. This value is unused. 53 // Last value of the effective connection type. This value is unused.
58 EFFECTIVE_CONNECTION_TYPE_LAST, 54 EFFECTIVE_CONNECTION_TYPE_LAST,
59 }; 55 };
60 56
61 // Returns the string equivalent of |type|. 57 // Returns the string equivalent of |type|.
62 NET_EXPORT const char* GetNameForEffectiveConnectionType( 58 NET_EXPORT const char* GetNameForEffectiveConnectionType(
63 EffectiveConnectionType type); 59 EffectiveConnectionType type);
64 60
65 // Returns true if the EffectiveConnectionType that corresponds to 61 // Returns true if the EffectiveConnectionType that corresponds to
66 // |connection_type_name| is available, and sets |effective_connection_type| to 62 // |connection_type_name| is available, and sets |effective_connection_type| to
67 // that value. If the effective connection type is unavailable, false is 63 // that value. If the effective connection type is unavailable, false is
68 // returned, and |effective_connection_type| is set to 64 // returned, and |effective_connection_type| is set to
69 // EFFECTIVE_CONNECTION_TYPE_UNKNOWN. |effective_connection_type| must be 65 // EFFECTIVE_CONNECTION_TYPE_UNKNOWN. |effective_connection_type| must be
70 // non-null. 66 // non-null.
71 NET_EXPORT bool GetEffectiveConnectionTypeForName( 67 NET_EXPORT bool GetEffectiveConnectionTypeForName(
72 const std::string& connection_type_name, 68 const std::string& connection_type_name,
73 EffectiveConnectionType* effective_connection_type); 69 EffectiveConnectionType* effective_connection_type);
74 70
75 } // namespace net 71 } // namespace net
76 72
77 #endif // NET_NQE_EFFECTIVE_CONNECTION_TYPE_H_ 73 #endif // NET_NQE_EFFECTIVE_CONNECTION_TYPE_H_
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl_browsertest.cc ('k') | net/nqe/effective_connection_type.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698