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

Issue 468613002: Readability review. (Closed)

Created:
6 years, 4 months ago by Wez
Modified:
6 years, 3 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, chromoting-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

Readability review. These CLs implement a simple frame recording and fetch "extension" for the Chromoting protocol, to allow sample sessions to be captured for performance testing. The three main classes introduced are: - HostExtensionSessionManager This pulls logic for handling Chromoting extensions out of ClientSession instances into a dedicated manager class. It also introduces hooks through which extensions can wrap or replace the Chromoting video encoder or capturer. - VideoFrameRecorder This allows a VideoEncoder to be wrapped to return a new encoder that will optionally copy & deliver frames to the VideoFrameRecorder before supplying them to the real encoder. - VideoFrameRecorderHostExtension This extension uses a VideoFrameRecorder to allow a connected client to start/stop recording, and to retrieve the resulting frame data. Original CLs: crrev.com/402233003 crrev.com/339073002 crrev.com/372943002 crrev.com/462503002 BUG=260879 Committed: https://crrev.com/ea12516899b23b38bcd006b9b462eaead73f4cb5 Cr-Commit-Position: refs/heads/master@{#292541}

Patch Set 1 #

Total comments: 113

Patch Set 2 : Address review comments. #

Total comments: 21

Patch Set 3 : Address moar review comments #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+355 lines, -280 lines) Patch
M remoting/host/cast_extension_session.h View 1 2 chunks +2 lines, -3 lines 0 comments Download
M remoting/host/cast_extension_session.cc View 1 2 3 2 chunks +5 lines, -8 lines 0 comments Download
M remoting/host/client_session.cc View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M remoting/host/fake_host_extension.h View 1 2 1 chunk +19 lines, -5 lines 0 comments Download
M remoting/host/fake_host_extension.cc View 1 3 chunks +9 lines, -31 lines 0 comments Download
M remoting/host/host_extension_session.h View 1 2 1 chunk +12 lines, -7 lines 0 comments Download
M remoting/host/host_extension_session.cc View 1 1 chunk +4 lines, -6 lines 0 comments Download
M remoting/host/host_extension_session_manager.h View 1 1 chunk +18 lines, -16 lines 0 comments Download
M remoting/host/host_extension_session_manager.cc View 1 2 4 chunks +13 lines, -16 lines 0 comments Download
M remoting/host/host_extension_session_manager_unittest.cc View 1 2 8 chunks +22 lines, -11 lines 0 comments Download
M remoting/host/video_frame_recorder.h View 1 2 2 chunks +8 lines, -6 lines 0 comments Download
M remoting/host/video_frame_recorder.cc View 1 2 3 5 chunks +69 lines, -52 lines 0 comments Download
M remoting/host/video_frame_recorder_host_extension.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M remoting/host/video_frame_recorder_host_extension.cc View 1 2 3 chunks +108 lines, -82 lines 0 comments Download
M remoting/host/video_frame_recorder_unittest.cc View 1 2 8 chunks +60 lines, -31 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Wez
Trimmed to just the new classes & tests.
6 years, 4 months ago (2014-08-13 00:35:32 UTC) #1
Peter Kasting
Thanks for participating in the readability process! Hopefully the below comments are useful. https://codereview.chromium.org/468613002/diff/20001/remoting/host/fake_host_extension.cc File ...
6 years, 4 months ago (2014-08-22 06:38:31 UTC) #2
Wez
Thanks Peter. Responses inline below. Note that this code is currently missing a unit-test for ...
6 years, 3 months ago (2014-08-25 23:23:13 UTC) #3
Peter Kasting
(Have not yet re-reviewed) https://codereview.chromium.org/468613002/diff/20001/remoting/host/host_extension_session_manager.cc File remoting/host/host_extension_session_manager.cc (right): https://codereview.chromium.org/468613002/diff/20001/remoting/host/host_extension_session_manager.cc#newcode30 remoting/host/host_extension_session_manager.cc:30: std::string capability = (*extension)->capability(); On ...
6 years, 3 months ago (2014-08-25 23:39:06 UTC) #4
Wez
https://codereview.chromium.org/468613002/diff/20001/remoting/host/host_extension_session_manager.cc File remoting/host/host_extension_session_manager.cc (right): https://codereview.chromium.org/468613002/diff/20001/remoting/host/host_extension_session_manager.cc#newcode13 remoting/host/host_extension_session_manager.cc:13: namespace remoting { On 2014/08/22 06:38:28, Peter Kasting wrote: ...
6 years, 3 months ago (2014-08-26 19:22:25 UTC) #5
Peter Kasting
I think this is about ready to go. https://codereview.chromium.org/468613002/diff/20001/remoting/host/host_extension_session_manager.cc File remoting/host/host_extension_session_manager.cc (right): https://codereview.chromium.org/468613002/diff/20001/remoting/host/host_extension_session_manager.cc#newcode30 remoting/host/host_extension_session_manager.cc:30: std::string ...
6 years, 3 months ago (2014-08-26 20:58:15 UTC) #6
Wez
https://codereview.chromium.org/468613002/diff/20001/remoting/host/host_extension_session_manager.cc File remoting/host/host_extension_session_manager.cc (right): https://codereview.chromium.org/468613002/diff/20001/remoting/host/host_extension_session_manager.cc#newcode30 remoting/host/host_extension_session_manager.cc:30: std::string capability = (*extension)->capability(); On 2014/08/26 20:58:14, Peter Kasting ...
6 years, 3 months ago (2014-08-28 00:13:21 UTC) #7
Peter Kasting
LGTM Once this is landed, I'll mark the internal bug as fixed, which should grant ...
6 years, 3 months ago (2014-08-28 00:31:02 UTC) #8
Wez
On 2014/08/28 00:31:02, Peter Kasting wrote: > LGTM > > Once this is landed, I'll ...
6 years, 3 months ago (2014-08-28 23:16:00 UTC) #9
Sergey Ulanov
lgtm
6 years, 3 months ago (2014-08-28 23:25:47 UTC) #10
Wez
The CQ bit was checked by wez@chromium.org
6 years, 3 months ago (2014-08-29 00:27:47 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wez@chromium.org/468613002/80001
6 years, 3 months ago (2014-08-29 00:29:43 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:80001) as 74878db382df7cad65ffcf419898b4b1f1b6a616
6 years, 3 months ago (2014-08-29 01:42:08 UTC) #13
Peter Kasting
I have marked the internal bug as Fixed. If you don't automatically get readability granted ...
6 years, 3 months ago (2014-08-29 01:58:56 UTC) #14
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:05:02 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ea12516899b23b38bcd006b9b462eaead73f4cb5
Cr-Commit-Position: refs/heads/master@{#292541}

Powered by Google App Engine
This is Rietveld 408576698