|
[GCM] Add app handler support for connection events
The OnConnected/OnDisconnected events are now plumbed through to app handlers
(and the default app handler). The App Handler has a default empty
implementation for those apps that don't care about exposing it. Additionally,
because an app might miss the first OnConnected event, an IsConnected method
is exposed by the GCMDriver that returns the last known connected status as
seen by the UI thread.
BUG= 378536
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=277200
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+196 lines, -13 lines) |
Patch |
 |
M |
components/gcm_driver.gypi
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/gcm_driver/default_gcm_app_handler.h
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/gcm_driver/default_gcm_app_handler.cc
|
View
|
|
2 chunks |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/gcm_driver/fake_gcm_app_handler.h
|
View
|
|
3 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/gcm_driver/fake_gcm_app_handler.cc
|
View
|
|
2 chunks |
+10 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/gcm_driver/fake_gcm_client.cc
|
View
|
1
2
|
3 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/gcm_driver/fake_gcm_driver.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/gcm_driver/fake_gcm_driver.cc
|
View
|
1
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/gcm_driver/gcm_app_handler.h
|
View
|
1
2
3
4
|
2 chunks |
+12 lines, -2 lines |
0 comments
|
Download
|
 |
A |
components/gcm_driver/gcm_app_handler.cc
|
View
|
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/gcm_driver/gcm_client.h
|
View
|
1
|
2 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/gcm_driver/gcm_client_impl.cc
|
View
|
1
2
3
4
|
3 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/gcm_driver/gcm_client_impl_unittest.cc
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/gcm_driver/gcm_driver.h
|
View
|
1
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/gcm_driver/gcm_driver_android.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/gcm_driver/gcm_driver_android.cc
|
View
|
1
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/gcm_driver/gcm_driver_desktop.h
|
View
|
1
|
3 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/gcm_driver/gcm_driver_desktop.cc
|
View
|
1
2
3
|
7 chunks |
+65 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/gcm_driver/gcm_driver_desktop_unittest.cc
|
View
|
1
2
3
|
3 chunks |
+14 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/invalidation/gcm_invalidation_bridge.h
|
View
|
1
2
3
4
|
1 chunk |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
components/invalidation/gcm_invalidation_bridge.cc
|
View
|
1
2
3
4
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
Total messages: 13 (0 generated)
|