|
[GCM] Add heartbeat manager and reconnection logic due to heartbeat failure
The heartbeat manager maintains the heartbeat timer, handles heartbeat
interval updates from the server, and automatically triggers connection resets
if the heartbeat isn't properly acknowledged in a timely manner.
Also fixes an issue in reconnection where the client socket handle doesn't deal
well with a connection reset due to passing ownership of the socket.
BUG= 284553
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=242848
Total comments: 14
Total comments: 10
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+427 lines, -40 lines) |
Patch |
 |
M |
google_apis/gcm/engine/connection_factory_impl.cc
|
View
|
|
3 chunks |
+8 lines, -2 lines |
0 comments
|
Download
|
 |
M |
google_apis/gcm/engine/connection_handler.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
google_apis/gcm/engine/connection_handler_impl.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
google_apis/gcm/engine/connection_handler_impl.cc
|
View
|
|
3 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
 |
M |
google_apis/gcm/engine/connection_handler_impl_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
google_apis/gcm/engine/fake_connection_factory.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
google_apis/gcm/engine/fake_connection_handler.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
google_apis/gcm/engine/fake_connection_handler.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A |
google_apis/gcm/engine/heartbeat_manager.h
|
View
|
1
2
|
1 chunk |
+82 lines, -0 lines |
0 comments
|
Download
|
 |
A |
google_apis/gcm/engine/heartbeat_manager.cc
|
View
|
1
2
3
|
1 chunk |
+119 lines, -0 lines |
0 comments
|
Download
|
 |
A |
google_apis/gcm/engine/heartbeat_manager_unittest.cc
|
View
|
1
2
|
1 chunk |
+176 lines, -0 lines |
0 comments
|
Download
|
 |
M |
google_apis/gcm/engine/mcs_client.h
|
View
|
1
2
|
3 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
google_apis/gcm/engine/mcs_client.cc
|
View
|
1
2
|
13 chunks |
+22 lines, -19 lines |
0 comments
|
Download
|
 |
M |
google_apis/gcm/gcm.gyp
|
View
|
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
Total messages: 14 (0 generated)
|