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

Issue 9234042: Re-land alexbost's experimental offscreenTabs API. (Closed)

Created:
8 years, 11 months ago by jstritar
Modified:
8 years, 9 months ago
CC:
chromium-reviews, Aaron Boodman, darin-cc_chromium.org, mihaip+watch_chromium.org, brettw-cc_chromium.org, svetlo_gmail.com
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Re-land alexbost's experimental offscreenTabs API. Original code review: http://codereview.chromium.org/7720002/ A followup code review: http://chromiumcodereview.appspot.com/9150052/ This includes some refactoring to simplify and reduce the code size: - sharing more code between tabs and offscreenTabs - splitting up and fixing the browser tests - forbidding use of the API from a background page BUG=110833 TEST=OffscreenTabsApiTest.* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=127833

Patch Set 1 #

Patch Set 2 : fix tests #

Patch Set 3 : rebase #

Patch Set 4 : use more code from the tabs module #

Patch Set 5 : forgot a couple files #

Patch Set 6 : more cleanup #

Patch Set 7 : get rid of the common file for now #

Patch Set 8 : more cleanups #

Total comments: 7

Patch Set 9 : disable failing tests #

Patch Set 10 : . #

Patch Set 11 : merge / rebase #

Total comments: 39

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : merge #

Patch Set 15 : #

Patch Set 16 : last try with cq #

Patch Set 17 : un-merge #

Patch Set 18 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3759 lines, -105 lines) Patch
A chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +132 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +833 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_apitest.cc View 1 2 3 4 5 6 7 8 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_constants.h View 1 2 3 4 5 1 chunk +57 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_constants.cc View 1 2 3 4 5 1 chunk +45 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_event_names.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_event_names.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_function_registry.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_tab_util.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_tab_util.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +22 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_tabs_module.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +16 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_tabs_module.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 13 chunks +91 lines, -97 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/common_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/extensions/api/experimental.offscreenTabs.json View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +353 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/extension_api.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/tabs.json View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/extensions/docs/experimental.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/extensions/docs/experimental.offscreenTabs.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1655 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/js/api_page_generator.js 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/docs/samples.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/extension_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/renderer_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
A chrome/renderer/resources/extensions/experimental.offscreenTabs_custom_bindings.js View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +63 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/get_views/test.js View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/extensions/api_test/offscreen_tabs/a.html View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/offscreen_tabs/b.html View 1 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/offscreen_tabs/c.html View 1 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/offscreen_tabs/crud.html View 1 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/offscreen_tabs/crud.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +66 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/offscreen_tabs/display.html View 1 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/offscreen_tabs/display.js View 1 2 3 4 5 6 7 8 1 chunk +78 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/offscreen_tabs/keyboard_events.html View 1 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/offscreen_tabs/keyboard_events.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +44 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/offscreen_tabs/manifest.json View 1 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/offscreen_tabs/mouse_events.html View 1 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/offscreen_tabs/mouse_events.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +95 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/offscreen_tabs/tab_util.js View 1 1 chunk +53 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
jstritar
I did a bit more refactoring. I have a couple things left to do (... ...
8 years, 11 months ago (2012-01-26 19:55:24 UTC) #1
Mihai Parparita -not on Chrome
http://codereview.chromium.org/9234042/diff/4051/chrome/browser/extensions/execute_script_apitest.cc File chrome/browser/extensions/execute_script_apitest.cc (left): http://codereview.chromium.org/9234042/diff/4051/chrome/browser/extensions/execute_script_apitest.cc#oldcode86 chrome/browser/extensions/execute_script_apitest.cc:86: #endif On 2012/01/26 19:55:25, jstritar wrote: > This CL ...
8 years, 11 months ago (2012-01-26 20:21:02 UTC) #2
Ken Russell (switch to Gerrit)
This looks good to me overall but I am not an owner. Nice code cleanups ...
8 years, 11 months ago (2012-01-27 01:27:50 UTC) #3
jstritar
+cc alexbost The toDataUrl function doesn't appear to work on Mac -- it always returns ...
8 years, 11 months ago (2012-01-27 21:45:45 UTC) #4
Ken Russell (switch to Gerrit)
On 2012/01/27 21:45:45, jstritar wrote: > +cc alexbost > > The toDataUrl function doesn't appear ...
8 years, 11 months ago (2012-01-27 21:48:59 UTC) #5
jstritar
I commented out the test that fails on Mac and disabled all the tests on ...
8 years, 11 months ago (2012-01-27 22:01:18 UTC) #6
svetlo_gmail.com
Glad to hear work on the Offscreen Tabs API has been revived! I think the ...
8 years, 10 months ago (2012-01-30 09:44:00 UTC) #7
jstritar
8 years, 10 months ago (2012-02-24 19:45:51 UTC) #8
asargent_no_longer_on_chrome
Still working my way through the implementation of the API part of the review, but ...
8 years, 9 months ago (2012-02-29 18:20:52 UTC) #9
Ken Russell (switch to Gerrit)
http://codereview.chromium.org/9234042/diff/23001/chrome/common/extensions/api/experimental.offscreenTabs.json File chrome/common/extensions/api/experimental.offscreenTabs.json (right): http://codereview.chromium.org/9234042/diff/23001/chrome/common/extensions/api/experimental.offscreenTabs.json#newcode212 chrome/common/extensions/api/experimental.offscreenTabs.json:212: "name": "toDataUrl", On 2012/02/29 18:20:52, Antony Sargent wrote: > ...
8 years, 9 months ago (2012-02-29 18:36:06 UTC) #10
asargent_no_longer_on_chrome
http://codereview.chromium.org/9234042/diff/23001/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc File chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc (right): http://codereview.chromium.org/9234042/diff/23001/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc#newcode192 chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc:192: // TODO(jstritar): This isn't multi-profile aware. lolwut? Do you ...
8 years, 9 months ago (2012-03-01 00:20:04 UTC) #11
jstritar
Ah, thought I had another week until the branch point. I'll revise this ASAP.
8 years, 9 months ago (2012-03-11 15:55:24 UTC) #12
jstritar
http://codereview.chromium.org/9234042/diff/23001/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc File chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc (right): http://codereview.chromium.org/9234042/diff/23001/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc#newcode192 chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc:192: // TODO(jstritar): This isn't multi-profile aware. On 2012/03/01 00:20:05, ...
8 years, 9 months ago (2012-03-12 14:53:06 UTC) #13
asargent_no_longer_on_chrome
lgtm http://codereview.chromium.org/9234042/diff/23001/chrome/common/extensions/api/experimental.offscreenTabs.json File chrome/common/extensions/api/experimental.offscreenTabs.json (right): http://codereview.chromium.org/9234042/diff/23001/chrome/common/extensions/api/experimental.offscreenTabs.json#newcode150 chrome/common/extensions/api/experimental.offscreenTabs.json:150: "type": "any", On 2012/03/12 14:53:06, jstritar wrote: > ...
8 years, 9 months ago (2012-03-13 00:06:02 UTC) #14
jstritar
http://codereview.chromium.org/9234042/diff/23001/chrome/common/extensions/api/experimental.offscreenTabs.json File chrome/common/extensions/api/experimental.offscreenTabs.json (right): http://codereview.chromium.org/9234042/diff/23001/chrome/common/extensions/api/experimental.offscreenTabs.json#newcode150 chrome/common/extensions/api/experimental.offscreenTabs.json:150: "type": "any", On 2012/03/13 00:06:02, Antony Sargent wrote: > ...
8 years, 9 months ago (2012-03-15 22:31:40 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jstritar@chromium.org/9234042/49001
8 years, 9 months ago (2012-03-16 14:22:13 UTC) #16
commit-bot: I haz the power
Can't apply patch for file chrome/renderer/extensions/custom_bindings_util.cc. While running patch -p1 --forward --force; patching file chrome/renderer/extensions/custom_bindings_util.cc ...
8 years, 9 months ago (2012-03-16 14:22:22 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jstritar@chromium.org/9234042/53005
8 years, 9 months ago (2012-03-16 16:42:25 UTC) #18
commit-bot: I haz the power
Try job failure for 9234042-53005 (retry) on mac_rel for steps "ui_tests, net_unittests". It's a second ...
8 years, 9 months ago (2012-03-16 22:47:58 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jstritar@chromium.org/9234042/53005
8 years, 9 months ago (2012-03-16 23:29:50 UTC) #20
commit-bot: I haz the power
Can't apply patch for file chrome/browser/extensions/extension_function_registry.cc. While running patch -p1 --forward --force; patching file chrome/browser/extensions/extension_function_registry.cc ...
8 years, 9 months ago (2012-03-16 23:29:58 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jstritar@chromium.org/9234042/58001
8 years, 9 months ago (2012-03-16 23:43:03 UTC) #22
commit-bot: I haz the power
Try job failure for 9234042-58001 (retry) on linux_rel for step "browser_tests". It's a second try, ...
8 years, 9 months ago (2012-03-17 00:54:16 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jstritar@chromium.org/9234042/58001
8 years, 9 months ago (2012-03-19 15:13:58 UTC) #24
commit-bot: I haz the power
Can't apply patch for file chrome/chrome_browser_extensions.gypi. While running patch -p1 --forward --force; patching file chrome/chrome_browser_extensions.gypi ...
8 years, 9 months ago (2012-03-19 15:14:06 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jstritar@chromium.org/9234042/63001
8 years, 9 months ago (2012-03-19 18:05:21 UTC) #26
commit-bot: I haz the power
Try job failure for 9234042-63001 (retry) (retry) on linux_rel for step "browser_tests". It's a second ...
8 years, 9 months ago (2012-03-19 19:48:23 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jstritar@chromium.org/9234042/64041
8 years, 9 months ago (2012-03-19 20:08:46 UTC) #28
jstritar
Sorry for the spam. I keep needing to merge and then unmerge (as the conflicting ...
8 years, 9 months ago (2012-03-19 20:09:46 UTC) #29
commit-bot: I haz the power
8 years, 9 months ago (2012-03-19 22:46:26 UTC) #30
Can't apply patch for file
chrome/browser/extensions/extension_function_dispatcher.cc.
While running patch -p1 --forward --force;
patching file chrome/browser/extensions/extension_function_dispatcher.cc
Hunk #1 FAILED at 22.
Hunk #2 FAILED at 534.
2 out of 2 hunks FAILED -- saving rejects to file
chrome/browser/extensions/extension_function_dispatcher.cc.rej

Powered by Google App Engine
This is Rietveld 408576698