summaryrefslogtreecommitdiffstats
path: root/net/base
diff options
context:
space:
mode:
authordfalcantara@chromium.org <dfalcantara@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-11 00:30:37 +0000
committerdfalcantara@chromium.org <dfalcantara@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-11 00:30:37 +0000
commite0535b0393452e6fc8fb1fd71f256bc5f132cb1f (patch)
tree3e086882153e77eeb2765f4568963c645b1feca6 /net/base
parent0190cc2b997035f81b3d7be1b585a6d241755ab5 (diff)
downloadchromium_src-e0535b0393452e6fc8fb1fd71f256bc5f132cb1f.zip
chromium_src-e0535b0393452e6fc8fb1fd71f256bc5f132cb1f.tar.gz
chromium_src-e0535b0393452e6fc8fb1fd71f256bc5f132cb1f.tar.bz2
[Android] Improve NetworkChangeNotifier granularity
Original review: https://chromiumcodereview.appspot.com/10915043/ The NetworkChangeNotifier for Android currently cannot identify what type of connection exists; all it can do is determine whether it's currently got one. This CL patches it so that we pass this information back from the Java side, allowing us to properly use NetworkChangeNotifier::ConnectionType. The connection types (2G, 3G, etc.) are differentiated between using classifications from Android's TelephonyManager. BUG=136984 Review URL: https://chromiumcodereview.appspot.com/10913175 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155881 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base')
-rw-r--r--net/base/network_change_notifier.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/net/base/network_change_notifier.h b/net/base/network_change_notifier.h
index a23841f..5a407218 100644
--- a/net/base/network_change_notifier.h
+++ b/net/base/network_change_notifier.h
@@ -33,13 +33,13 @@ class NET_EXPORT NetworkChangeNotifier {
// Using the terminology of the Network Information API:
// http://www.w3.org/TR/netinfo-api.
enum ConnectionType {
- CONNECTION_UNKNOWN, // A connection exists, but its type is unknown.
- CONNECTION_ETHERNET,
- CONNECTION_WIFI,
- CONNECTION_2G,
- CONNECTION_3G,
- CONNECTION_4G,
- CONNECTION_NONE // No connection.
+ CONNECTION_UNKNOWN = 0, // A connection exists, but its type is unknown.
+ CONNECTION_ETHERNET = 1,
+ CONNECTION_WIFI = 2,
+ CONNECTION_2G = 3,
+ CONNECTION_3G = 4,
+ CONNECTION_4G = 5,
+ CONNECTION_NONE = 6 // No connection.
};
class NET_EXPORT IPAddressObserver {