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

Issue 11038021: Implement Chrome Extension TabCapture API. (Closed)

Created:
8 years, 2 months ago by justinlin
Modified:
8 years, 2 months ago
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, darin-cc_chromium.org, miu
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 15

Patch Set 2 : Some tests, fixes #

Total comments: 46

Patch Set 3 : Address most comments #

Patch Set 4 : Patch 4 #

Patch Set 5 : Minor fixes #

Patch Set 6 : Media class renames/moves #

Total comments: 29

Patch Set 7 : Address comments, add command line flag #

Total comments: 10

Patch Set 8 : Review fixes, get rid of AsyncApiFunction #

Total comments: 2

Patch Set 9 : sort #

Total comments: 6

Patch Set 10 : Fix tests, aa comments #

Patch Set 11 : Sync to head, move flag to chrome, disable feature and tests for windows #

Patch Set 12 : Fix flag enabling #

Patch Set 13 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+896 lines, -0 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +15 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/tab_capture/tab_capture_api.h View 1 2 3 4 5 6 7 1 chunk +41 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/tab_capture/tab_capture_api.cc View 1 2 3 4 5 6 7 1 chunk +158 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/tab_capture/tab_capture_apitest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/tab_capture/tab_capture_registry.h View 1 2 3 4 5 6 7 1 chunk +105 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/tab_capture/tab_capture_registry.cc View 1 2 3 4 5 6 7 8 9 1 chunk +189 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/tab_capture/tab_capture_registry_factory.h View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/tab_capture/tab_capture_registry_factory.cc View 1 2 1 chunk +47 lines, -0 lines 0 comments Download
M chrome/browser/extensions/event_names.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/event_names.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_dependency_manager.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/_permission_features.json View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/api.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/extensions/api/tab_capture.idl View 1 2 3 4 5 6 1 chunk +62 lines, -0 lines 0 comments Download
M chrome/common/extensions/feature_switch.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/feature_switch.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/api_permission.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/api_permission.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/extensions/dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
A chrome/renderer/resources/extensions/tab_capture_custom_bindings.js View 1 2 3 1 chunk +33 lines, -0 lines 0 comments Download
M chrome/renderer/resources/renderer_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/tab_capture/experimental/manifest.json View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/tab_capture/experimental/test.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +117 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
justinlin
Hi, please take a look at this CL. Will add tests shortly.
8 years, 2 months ago (2012-10-02 17:23:32 UTC) #1
justinlin
8 years, 2 months ago (2012-10-04 06:56:02 UTC) #2
Aaron Boodman
Why isn't alpha on this review? I think he should probably take a pass on ...
8 years, 2 months ago (2012-10-04 07:21:43 UTC) #3
Alpha Left Google
This is an initial pass for style check. http://codereview.chromium.org/11038021/diff/3001/chrome/browser/extensions/api/tab_capture/tab_capture_api.cc File chrome/browser/extensions/api/tab_capture/tab_capture_api.cc (right): http://codereview.chromium.org/11038021/diff/3001/chrome/browser/extensions/api/tab_capture/tab_capture_api.cc#newcode12 chrome/browser/extensions/api/tab_capture/tab_capture_api.cc:12: #include ...
8 years, 2 months ago (2012-10-04 20:52:00 UTC) #4
justinlin
thanks! Went through most of the comments. Left to do: suggested api method renames, fix ...
8 years, 2 months ago (2012-10-08 09:58:31 UTC) #5
Alpha Left Google
Style check looks good to me. aa: please look again.
8 years, 2 months ago (2012-10-10 23:58:16 UTC) #6
justinlin
On 2012/10/10 23:58:16, Alpha wrote: > Style check looks good to me. aa: please look ...
8 years, 2 months ago (2012-10-11 00:05:45 UTC) #7
justinlin
Hi, please take another look! Thanks http://codereview.chromium.org/11038021/diff/1/chrome/common/extensions/api/experimental_tab_capture.idl File chrome/common/extensions/api/experimental_tab_capture.idl (right): http://codereview.chromium.org/11038021/diff/1/chrome/common/extensions/api/experimental_tab_capture.idl#newcode44 chrome/common/extensions/api/experimental_tab_capture.idl:44: static void getTabMedia(optional ...
8 years, 2 months ago (2012-10-11 07:30:13 UTC) #8
justinlin
aa: ping. this is ready for another look, thanks! On 2012/10/11 07:30:13, justinlin wrote: > ...
8 years, 2 months ago (2012-10-12 21:44:56 UTC) #9
Aaron Boodman
http://codereview.chromium.org/11038021/diff/1/chrome/browser/extensions/api/tab_capture/tab_capture_api.h File chrome/browser/extensions/api/tab_capture/tab_capture_api.h (right): http://codereview.chromium.org/11038021/diff/1/chrome/browser/extensions/api/tab_capture/tab_capture_api.h#newcode16 chrome/browser/extensions/api/tab_capture/tab_capture_api.h:16: class TabCaptureAsyncApiFunction : public AsyncApiFunction { On 2012/10/08 09:58:31, ...
8 years, 2 months ago (2012-10-16 04:19:27 UTC) #10
Aaron Boodman
http://codereview.chromium.org/11038021/diff/1/chrome/browser/extensions/api/tab_capture/tab_capture_api.h File chrome/browser/extensions/api/tab_capture/tab_capture_api.h (right): http://codereview.chromium.org/11038021/diff/1/chrome/browser/extensions/api/tab_capture/tab_capture_api.h#newcode16 chrome/browser/extensions/api/tab_capture/tab_capture_api.h:16: class TabCaptureAsyncApiFunction : public AsyncApiFunction { On 2012/10/16 04:19:27, ...
8 years, 2 months ago (2012-10-16 04:22:28 UTC) #11
justinlin
Hi Aaron, thanks for the review! Addressed most of the suggested changes. Please see the ...
8 years, 2 months ago (2012-10-17 08:32:26 UTC) #12
Aaron Boodman
http://codereview.chromium.org/11038021/diff/36001/chrome/browser/extensions/api/tab_capture/tab_capture_api.cc File chrome/browser/extensions/api/tab_capture/tab_capture_api.cc (right): http://codereview.chromium.org/11038021/diff/36001/chrome/browser/extensions/api/tab_capture/tab_capture_api.cc#newcode50 chrome/browser/extensions/api/tab_capture/tab_capture_api.cc:50: void TabCaptureCaptureFunction::Work() { On 2012/10/17 08:32:26, justinlin wrote: > ...
8 years, 2 months ago (2012-10-17 20:28:13 UTC) #13
no longer working on chromium
lgtm on the media_stream_manager.cc
8 years, 2 months ago (2012-10-17 20:35:12 UTC) #14
justinlin
Thanks again. Please take another look. Resolved the using AsyncApiFunction issue (thanks), and the fix ...
8 years, 2 months ago (2012-10-17 23:41:48 UTC) #15
justinlin
Adding sky@ for chrome/*.gypi changes and avi@ for content/ changes. Please take a look, thanks!
8 years, 2 months ago (2012-10-18 20:09:31 UTC) #16
sky
http://codereview.chromium.org/11038021/diff/47033/chrome/chrome_browser_extensions.gypi File chrome/chrome_browser_extensions.gypi (right): http://codereview.chromium.org/11038021/diff/47033/chrome/chrome_browser_extensions.gypi#newcode196 chrome/chrome_browser_extensions.gypi:196: 'browser/extensions/api/tab_capture/tab_capture_api.cc', sort
8 years, 2 months ago (2012-10-18 21:27:22 UTC) #17
Aaron Boodman
http://codereview.chromium.org/11038021/diff/46002/chrome/common/extensions/feature_switch.cc File chrome/common/extensions/feature_switch.cc (right): http://codereview.chromium.org/11038021/diff/46002/chrome/common/extensions/feature_switch.cc#newcode136 chrome/common/extensions/feature_switch.cc:136: if (command_line_->HasSwitch(switch_name_)) On 2012/10/17 23:41:48, justinlin wrote: > On ...
8 years, 2 months ago (2012-10-18 22:51:35 UTC) #18
justinlin
Thanks http://codereview.chromium.org/11038021/diff/46002/chrome/common/extensions/feature_switch.cc File chrome/common/extensions/feature_switch.cc (right): http://codereview.chromium.org/11038021/diff/46002/chrome/common/extensions/feature_switch.cc#newcode136 chrome/common/extensions/feature_switch.cc:136: if (command_line_->HasSwitch(switch_name_)) On 2012/10/18 22:51:35, Aaron Boodman wrote: ...
8 years, 2 months ago (2012-10-19 00:03:33 UTC) #19
Aaron Boodman
http://codereview.chromium.org/11038021/diff/51003/content/browser/renderer_host/media/media_stream_manager.cc File content/browser/renderer_host/media/media_stream_manager.cc (right): http://codereview.chromium.org/11038021/diff/51003/content/browser/renderer_host/media/media_stream_manager.cc#newcode249 content/browser/renderer_host/media/media_stream_manager.cc:249: if (!CommandLine::ForCurrentProcess()->HasSwitch( On 2012/10/19 00:03:33, justinlin wrote: > On ...
8 years, 2 months ago (2012-10-19 00:37:20 UTC) #20
justinlin
http://codereview.chromium.org/11038021/diff/51003/content/browser/renderer_host/media/media_stream_manager.cc File content/browser/renderer_host/media/media_stream_manager.cc (right): http://codereview.chromium.org/11038021/diff/51003/content/browser/renderer_host/media/media_stream_manager.cc#newcode249 content/browser/renderer_host/media/media_stream_manager.cc:249: if (!CommandLine::ForCurrentProcess()->HasSwitch( On 2012/10/19 00:37:20, Aaron Boodman wrote: > ...
8 years, 2 months ago (2012-10-19 00:47:25 UTC) #21
justinlin
Nevermind. Done moving the flag from content to chrome. Also, disabling this feature for Windows ...
8 years, 2 months ago (2012-10-20 00:03:15 UTC) #22
justinlin
aa: Please take another look, thanks! On 2012/10/20 00:03:15, justinlin wrote: > Nevermind. Done moving ...
8 years, 2 months ago (2012-10-20 00:03:34 UTC) #23
Aaron Boodman
Because of the rebase it's hard to tell what changed, but I don't see content/ ...
8 years, 2 months ago (2012-10-24 01:12:22 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/justinlin@chromium.org/11038021/78002
8 years, 2 months ago (2012-10-24 19:49:11 UTC) #25
commit-bot: I haz the power
8 years, 2 months ago (2012-10-24 21:10:52 UTC) #26
Change committed as 163902

Powered by Google App Engine
This is Rietveld 408576698