Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Issue 456213002: Cast channel: Add cast.channel.getLogs extension API. (Closed)

Created:
6 years, 4 months ago by imcheng
Modified:
6 years, 4 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, asvitkine+watch_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Cast channel: Add cast.channel.getLogs extension API. Added gzip compression to the logs after serialization. The cast.channel.getLogs API will calls the Logger class, which in turns assmebles the Log in protocol buffer format, serializes it, and apply gzip compression to it. The resulting blob is then passed through the caller-supplied callback. BUG=343228 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289842

Patch Set 1 #

Patch Set 2 : ADd missing files #

Total comments: 28

Patch Set 3 : Addressed comments #

Total comments: 2

Patch Set 4 : Rebase #

Total comments: 4

Patch Set 5 : Addressed Wez's comments #

Total comments: 2

Patch Set 6 : Addressed comments #

Total comments: 12

Patch Set 7 : Addressed mfoltz's and agl's comments #

Total comments: 2

Patch Set 8 : Addressed comments #

Patch Set 9 : Rebase #

Patch Set 10 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+246 lines, -97 lines) Patch
A chrome/test/data/extensions/api_test/cast_channel/api/test_get_logs.html View 1 1 chunk +2 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/cast_channel/api/test_get_logs.js View 1 2 chunks +7 lines, -2 lines 0 comments Download
A + extensions/browser/api/cast_channel/DEPS View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_channel_api.h View 1 2 3 4 5 6 7 8 9 1 chunk +22 lines, -0 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_channel_api.cc View 1 2 3 4 5 6 7 8 9 1 chunk +31 lines, -0 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_channel_apitest.cc View 1 2 3 4 5 6 7 8 9 5 chunks +38 lines, -39 lines 0 comments Download
M extensions/browser/api/cast_channel/logger.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -6 lines 0 comments Download
M extensions/browser/api/cast_channel/logger.cc View 1 2 3 4 5 6 7 8 9 5 chunks +51 lines, -4 lines 0 comments Download
M extensions/browser/api/cast_channel/logger_unittest.cc View 1 2 3 4 5 6 7 8 9 8 chunks +75 lines, -46 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M extensions/common/api/cast_channel.idl View 1 2 3 4 5 6 7 8 9 2 chunks +13 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
imcheng
I am going to talk to Haibin about how to surface the error events to ...
6 years, 4 months ago (2014-08-10 20:14:01 UTC) #1
imcheng
Add gavinp@ for adding +third_party/zlib rule to DEPS.
6 years, 4 months ago (2014-08-10 22:40:24 UTC) #2
mark a. foltz
Mostly looks good, hopefully there is a working zlib wrapper we can use rather than ...
6 years, 4 months ago (2014-08-11 23:01:44 UTC) #3
Ilya Sherman
Histograms LGTM. Thanks for updating the comment.
6 years, 4 months ago (2014-08-12 01:37:46 UTC) #4
imcheng
https://codereview.chromium.org/456213002/diff/20001/extensions/browser/api/cast_channel/cast_channel_api.cc File extensions/browser/api/cast_channel/cast_channel_api.cc (right): https://codereview.chromium.org/456213002/diff/20001/extensions/browser/api/cast_channel/cast_channel_api.cc#newcode475 extensions/browser/api/cast_channel/cast_channel_api.cc:475: if (api_->GetLogger()->LogToString(&log)) { On 2014/08/11 23:01:43, mark a. foltz ...
6 years, 4 months ago (2014-08-12 07:42:10 UTC) #5
imcheng
Adding kalman@ for cast_channel.idl.
6 years, 4 months ago (2014-08-13 00:03:08 UTC) #6
not at google - send to devlin
idl lgtm
6 years, 4 months ago (2014-08-13 00:07:43 UTC) #7
imcheng
Ping for review and zlib owners LGTM.
6 years, 4 months ago (2014-08-13 16:54:33 UTC) #8
Wez
https://codereview.chromium.org/456213002/diff/40001/extensions/browser/api/cast_channel/cast_channel_apitest.cc File extensions/browser/api/cast_channel/cast_channel_apitest.cc (right): https://codereview.chromium.org/456213002/diff/40001/extensions/browser/api/cast_channel/cast_channel_apitest.cc#newcode122 extensions/browser/api/cast_channel/cast_channel_apitest.cc:122: InSequence dummy; nit: s/dummy/sequence or simply 's' https://codereview.chromium.org/456213002/diff/60001/extensions/browser/api/cast_channel/logger.h File ...
6 years, 4 months ago (2014-08-13 20:32:25 UTC) #9
imcheng
https://codereview.chromium.org/456213002/diff/40001/extensions/browser/api/cast_channel/cast_channel_apitest.cc File extensions/browser/api/cast_channel/cast_channel_apitest.cc (right): https://codereview.chromium.org/456213002/diff/40001/extensions/browser/api/cast_channel/cast_channel_apitest.cc#newcode122 extensions/browser/api/cast_channel/cast_channel_apitest.cc:122: InSequence dummy; On 2014/08/13 20:32:25, Wez wrote: > nit: ...
6 years, 4 months ago (2014-08-13 20:46:04 UTC) #10
mark a. foltz
lgtm https://codereview.chromium.org/456213002/diff/80001/extensions/browser/api/cast_channel/logger_unittest.cc File extensions/browser/api/cast_channel/logger_unittest.cc (right): https://codereview.chromium.org/456213002/diff/80001/extensions/browser/api/cast_channel/logger_unittest.cc#newcode105 extensions/browser/api/cast_channel/logger_unittest.cc:105: ASSERT_TRUE(GetLog(&log)); I might write this as scoped_ptr<Log> log(GetLog()); ...
6 years, 4 months ago (2014-08-13 22:00:24 UTC) #11
imcheng
https://codereview.chromium.org/456213002/diff/80001/extensions/browser/api/cast_channel/logger_unittest.cc File extensions/browser/api/cast_channel/logger_unittest.cc (right): https://codereview.chromium.org/456213002/diff/80001/extensions/browser/api/cast_channel/logger_unittest.cc#newcode105 extensions/browser/api/cast_channel/logger_unittest.cc:105: ASSERT_TRUE(GetLog(&log)); On 2014/08/13 22:00:24, mark a. foltz wrote: > ...
6 years, 4 months ago (2014-08-13 23:58:14 UTC) #12
mark a. foltz
https://codereview.chromium.org/456213002/diff/100001/extensions/browser/api/cast_channel/logger_unittest.cc File extensions/browser/api/cast_channel/logger_unittest.cc (right): https://codereview.chromium.org/456213002/diff/100001/extensions/browser/api/cast_channel/logger_unittest.cc#newcode109 extensions/browser/api/cast_channel/logger_unittest.cc:109: ASSERT_TRUE(log.get() != NULL); Sorry, to be clear the ASSERTs ...
6 years, 4 months ago (2014-08-14 00:09:38 UTC) #13
agl
https://codereview.chromium.org/456213002/diff/100001/extensions/browser/api/cast_channel/logger.cc File extensions/browser/api/cast_channel/logger.cc (right): https://codereview.chromium.org/456213002/diff/100001/extensions/browser/api/cast_channel/logger.cc#newcode59 extensions/browser/api/cast_channel/logger.cc:59: scoped_ptr<char[]> Compress(const std::string& input, int* length) { size_t* for ...
6 years, 4 months ago (2014-08-14 00:13:27 UTC) #14
imcheng
Thanks for the review. https://codereview.chromium.org/456213002/diff/100001/extensions/browser/api/cast_channel/logger.cc File extensions/browser/api/cast_channel/logger.cc (right): https://codereview.chromium.org/456213002/diff/100001/extensions/browser/api/cast_channel/logger.cc#newcode59 extensions/browser/api/cast_channel/logger.cc:59: scoped_ptr<char[]> Compress(const std::string& input, int* ...
6 years, 4 months ago (2014-08-14 00:59:19 UTC) #15
agl
lgtm
6 years, 4 months ago (2014-08-14 01:01:49 UTC) #16
agl
lgtm lgtm
6 years, 4 months ago (2014-08-14 01:01:49 UTC) #17
Wez
lgtm https://codereview.chromium.org/456213002/diff/60001/extensions/browser/api/cast_channel/logger.h File extensions/browser/api/cast_channel/logger.h (right): https://codereview.chromium.org/456213002/diff/60001/extensions/browser/api/cast_channel/logger.h#newcode76 extensions/browser/api/cast_channel/logger.h:76: scoped_ptr<char[]> GetLogs(int* length) const; On 2014/08/13 20:46:04, imcheng1 ...
6 years, 4 months ago (2014-08-14 18:51:24 UTC) #18
imcheng
https://codereview.chromium.org/456213002/diff/60001/extensions/browser/api/cast_channel/logger.h File extensions/browser/api/cast_channel/logger.h (right): https://codereview.chromium.org/456213002/diff/60001/extensions/browser/api/cast_channel/logger.h#newcode76 extensions/browser/api/cast_channel/logger.h:76: scoped_ptr<char[]> GetLogs(int* length) const; On 2014/08/14 18:51:23, Wez wrote: ...
6 years, 4 months ago (2014-08-14 21:12:35 UTC) #19
imcheng
The CQ bit was checked by imcheng@chromium.org
6 years, 4 months ago (2014-08-14 21:12:41 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/imcheng@chromium.org/456213002/160001
6 years, 4 months ago (2014-08-14 21:16:18 UTC) #21
imcheng
The CQ bit was checked by imcheng@chromium.org
6 years, 4 months ago (2014-08-14 21:32:29 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/imcheng@chromium.org/456213002/180001
6 years, 4 months ago (2014-08-14 21:35:59 UTC) #23
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_rel_swarming on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-15 03:39:52 UTC) #24
imcheng
The CQ bit was checked by imcheng@chromium.org
6 years, 4 months ago (2014-08-15 05:10:55 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/imcheng@chromium.org/456213002/200001
6 years, 4 months ago (2014-08-15 05:16:52 UTC) #26
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-15 09:17:59 UTC) #27
commit-bot: I haz the power
6 years, 4 months ago (2014-08-15 14:26:32 UTC) #28
Message was sent while issue was closed.
Committed patchset #10 (200001) as 289842

Powered by Google App Engine
This is Rietveld 408576698