|
|
Battery Status API: browser-side implementation.
This patch implements the browser side bits needed for the
Battery Status API. It includes a message filter, a singleton
service which owns and controls the platform-specific battery
status manager. Updates are implemented using callbacks and
async IPCs between the browser and the renderer.
A unit test for the service using a fake battery status manager
and callbacks is also provided.
Corresponding renderer-side patch:
https://codereview.chromium.org/252113006/
BUG= 122593, 360068
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273336
Total comments: 22
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+484 lines, -29 lines) |
Patch |
 |
M |
content/browser/battery_status/battery_status_manager.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+10 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/browser/battery_status/battery_status_manager_android.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/battery_status/battery_status_manager_default.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
 |
A |
content/browser/battery_status/battery_status_message_filter.h
|
View
|
1
2
3
4
5
|
1 chunk |
+36 lines, -0 lines |
0 comments
|
Download
|
 |
A |
content/browser/battery_status/battery_status_message_filter.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+56 lines, -0 lines |
0 comments
|
Download
|
 |
A |
content/browser/battery_status/battery_status_service.h
|
View
|
1
2
3
4
5
|
1 chunk |
+66 lines, -0 lines |
0 comments
|
Download
|
 |
A |
content/browser/battery_status/battery_status_service.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+101 lines, -0 lines |
0 comments
|
Download
|
 |
A |
content/browser/battery_status/battery_status_service_unittest.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+193 lines, -0 lines |
0 comments
|
Download
|
 |
D |
content/browser/battery_status/battery_status_update_callback.h
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -18 lines |
0 comments
|
Download
|
 |
M |
content/browser/browser_main_loop.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_process_host_impl.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/content_browser.gypi
|
View
|
1
2
3
4
5
6
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/content_tests.gypi
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 10 (0 generated)
|