|
Cast: Add getStats() extensions API.
It works similarly as getRawEvents() with the following differences:
- it returns a dictionary that can be read more easily by the
app.
- it reads from LoggingStats. We should probably refactor it into a
subscriber implementation in a later CL.
- currently it doesn't reset stats.
Also fixes bug 347750 on the side.
Also fixes bug where we are doing std::copy to an
uninitialized range. Fix is to use a back_inserter.
Making minimal changes to the cast library to get this working. More
changes to cast library to come in future CLs.
BUG= 347750, 301920, 338574, 348491
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255689
Total comments: 20
Total comments: 4
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+272 lines, -71 lines) |
Patch |
 |
M |
chrome/browser/extensions/cast_streaming_apitest.cc
|
View
|
1
2
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/api/cast_streaming_rtp_stream.idl
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+9 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/extensions/cast_streaming_native_handler.h
|
View
|
1
2
|
3 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/extensions/cast_streaming_native_handler.cc
|
View
|
1
2
3
4
5
|
4 chunks |
+47 lines, -14 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/media/cast_rtp_stream.h
|
View
|
1
2
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/media/cast_rtp_stream.cc
|
View
|
1
2
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/media/cast_session.h
|
View
|
1
2
|
3 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/media/cast_session.cc
|
View
|
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/media/cast_session_delegate.h
|
View
|
1
2
|
3 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/media/cast_session_delegate.cc
|
View
|
1
2
3
4
|
1 chunk |
+15 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/extensions/api_test/cast_streaming/basics.js
|
View
|
1
2
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/extensions/api_test/cast_streaming/common.js
|
View
|
1
2
|
2 chunks |
+10 lines, -12 lines |
0 comments
|
Download
|
 |
A + |
chrome/test/data/extensions/api_test/cast_streaming/stats.html
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A + |
chrome/test/data/extensions/api_test/cast_streaming/stats.js
|
View
|
1
2
3
|
2 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
media/cast/logging/logging_impl.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
media/cast/logging/logging_impl.cc
|
View
|
|
1 chunk |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
media/cast/logging/logging_impl_unittest.cc
|
View
|
|
5 chunks |
+28 lines, -13 lines |
0 comments
|
Download
|
 |
M |
media/cast/logging/logging_stats.h
|
View
|
1
2
3
4
|
3 chunks |
+13 lines, -2 lines |
0 comments
|
Download
|
 |
M |
media/cast/logging/logging_stats.cc
|
View
|
1
2
3
4
5
6
7
8
|
4 chunks |
+88 lines, -5 lines |
0 comments
|
Download
|
Total messages: 22 (0 generated)
|