|
|
Support for navigator.connection API
This replaces the online state (a boolean) by a more complex state (UNKNOWN/NONE
/2G/3G/4G/WIFI/ETHERNET) inspired by the Network Information API
( http://www.w3.org/TR/netinfo-api/).
Breakdown of the modified files:
- network_change_notifier.h/.cc: actual API change
- network_change_notifier_*: platform specific implementations. This CL only provide a basic implementation where CONNECTION_UNKNOWN is returned when online and CONNECTION_NONE is returned when offline.
- other files: call sites for the static function and observer implementations. Most of the time this only changes the test IsOffline() by (GetConnectionType() == CONNECTION_NONE).
BUG= 112937
TEST=NONE
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=138780
Total comments: 9
Total comments: 2
Total comments: 29
Total comments: 4
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+277 lines, -191 lines) |
Patch |
 |
M |
chrome/browser/chromeos/login/login_utils.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
5 chunks |
+19 lines, -15 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/net/network_change_notifier_chromeos.h
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/net/network_change_notifier_chromeos.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+8 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/offline/offline_load_page.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/offline/offline_load_page.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+7 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/web_socket_proxy_controller.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
3 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sessions/session_restore.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
5 chunks |
+9 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/browser/net/browser_online_state_observer.h
|
View
|
1
2
3
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/net/browser_online_state_observer.cc
|
View
|
1
2
3
|
1 chunk |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/ppapi_plugin_process_host.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+9 lines, -7 lines |
0 comments
|
Download
|
 |
M |
net/android/network_change_notifier_android.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/android/network_change_notifier_android.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+8 lines, -4 lines |
0 comments
|
Download
|
 |
M |
net/base/network_change_notifier.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
9 chunks |
+40 lines, -16 lines |
0 comments
|
Download
|
 |
M |
net/base/network_change_notifier.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
6 chunks |
+21 lines, -17 lines |
0 comments
|
Download
|
 |
M |
net/base/network_change_notifier_linux.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
net/base/network_change_notifier_linux.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
5 chunks |
+15 lines, -11 lines |
0 comments
|
Download
|
 |
M |
net/base/network_change_notifier_linux_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
6 chunks |
+34 lines, -20 lines |
0 comments
|
Download
|
 |
M |
net/base/network_change_notifier_mac.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
4 chunks |
+8 lines, -14 lines |
0 comments
|
Download
|
 |
M |
net/base/network_change_notifier_mac.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
4 chunks |
+28 lines, -21 lines |
0 comments
|
Download
|
 |
M |
net/base/network_change_notifier_win.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
net/base/network_change_notifier_win.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
6 chunks |
+15 lines, -10 lines |
0 comments
|
Download
|
 |
M |
net/base/network_change_notifier_win_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
net/url_request/url_request_throttler_manager.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
net/url_request/url_request_throttler_manager.cc
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
net/url_request/url_request_throttler_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
remoting/host/signaling_connector.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
remoting/host/signaling_connector.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
3 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
Total messages: 22 (0 generated)
|