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

Issue 596003002: Allow declarative webrequest and webrequest in extensions. (Closed)

Created:
6 years, 3 months ago by Xi Han
Modified:
6 years, 2 months ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org, lfg, wjmaclean
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Several things are done in this CL: - Update _api_features.json and _permissions.json to allow the following features in extensions: - declarativeWebrequest, - events - webRequest - webViewRequest - Move web_view_request_custom_bindings.js and web_view_request.json to extensions. - Remove ExtensionsAPIClient::GetRuleRegistry() since RuleRegisteryService has been moved to extension. - Clean up extensions/extensions.gyp. TBR=sky@chromium.org BUG=352293 Committed: https://crrev.com/4499156f5a5784eee9e0dc021f13b4ea0fd7d0d2 Cr-Commit-Position: refs/heads/master@{#297413} Committed: https://crrev.com/c93416adae7930188e346f03d5764b49934568d3 Cr-Commit-Position: refs/heads/master@{#297532}

Patch Set 1 #

Patch Set 2 : Rebase. #

Patch Set 3 : Move a string to extensions. #

Patch Set 4 : #

Patch Set 5 : Register schema in Shell_extensions_client. #

Patch Set 6 : Register schema in app_shell. #

Patch Set 7 : Move web_view_request_custom_bindings.js & web_view_request.json & some clean up. #

Patch Set 8 : Move "events" in _api_features.json to extensions and small bugs fixed. #

Patch Set 9 : Clean up RuleRegistry in ExtensionsApiClient. #

Total comments: 6

Patch Set 10 : Small changes are made accoding to Ken's comments. #

Total comments: 1

Patch Set 11 : WebViewGuestDelegate clean up. #

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+198 lines, -298 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/chrome_extensions_api_client.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/chrome_extensions_api_client.cc View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -9 lines 0 comments Download
M chrome/browser/guest_view/web_view/chrome_web_view_guest_delegate.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/guest_view/web_view/chrome_web_view_guest_delegate.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -32 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 5 6 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/common/extensions/api/_api_features.json View 1 2 3 4 5 6 7 8 9 4 chunks +0 lines, -34 lines 0 comments Download
M chrome/common/extensions/api/_permission_features.json View 1 2 3 4 5 6 7 2 chunks +0 lines, -14 lines 0 comments Download
D chrome/common/extensions/api/web_view_request.json View 1 2 3 4 5 6 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/common/extensions/chrome_extensions_client.cc View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/common/extensions/permissions/chrome_api_permissions.cc View 2 chunks +0 lines, -6 lines 0 comments Download
M chrome/common/extensions_api_resources.grd View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.cc View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/renderer/resources/extensions/chrome_web_view.js View 3 chunks +0 lines, -91 lines 0 comments Download
D chrome/renderer/resources/extensions/web_view_request_custom_bindings.js View 1 2 3 4 5 6 1 chunk +0 lines, -55 lines 0 comments Download
M chrome/renderer/resources/renderer_resources.grd View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M extensions/browser/api/declarative/declarative_api.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -2 lines 0 comments Download
M extensions/browser/api/declarative/rules_registry_service.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -2 lines 0 comments Download
M extensions/browser/api/extensions_api_client.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -7 lines 0 comments Download
M extensions/browser/api/extensions_api_client.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -7 lines 0 comments Download
M extensions/browser/guest_view/web_view/web_view_guest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +23 lines, -2 lines 0 comments Download
M extensions/browser/guest_view/web_view/web_view_guest_delegate.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -3 lines 0 comments Download
M extensions/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/api/_api_features.json View 1 2 3 4 5 6 7 8 9 4 chunks +34 lines, -0 lines 0 comments Download
M extensions/common/api/_permission_features.json View 1 2 3 4 5 6 7 8 9 2 chunks +18 lines, -0 lines 0 comments Download
A + extensions/common/api/web_view_request.json View 1 2 3 4 5 6 0 chunks +-1 lines, --1 lines 0 comments Download
M extensions/common/extension_api.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download
M extensions/common/permissions/extensions_api_permissions.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download
M extensions/extensions.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/extensions_resources.grd View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M extensions/extensions_strings.grd View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/renderer/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/renderer/dispatcher.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/renderer/resources/extensions_renderer_resources.grd View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M extensions/renderer/resources/web_view.js View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -6 lines 0 comments Download
M extensions/renderer/resources/web_view_events.js View 1 2 3 4 5 6 7 8 9 5 chunks +91 lines, -1 line 0 comments Download
A + extensions/renderer/resources/web_view_request_custom_bindings.js View 1 2 3 4 5 6 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 31 (9 generated)
Xi Han
6 years, 3 months ago (2014-09-23 21:59:09 UTC) #2
Fady Samuel
This is really exciting! LGTM!
6 years, 3 months ago (2014-09-24 14:32:53 UTC) #3
Fady Samuel
Xi, feel free to upload the changes we discussed here. Your work so far still ...
6 years, 2 months ago (2014-09-25 23:07:09 UTC) #5
Xi Han
Fady: I upload the changes that we discussed yesterday, PTAL. Thanks!
6 years, 2 months ago (2014-09-26 13:18:24 UTC) #6
Fady Samuel
Awesome! Thanks Xi! Still LGTM! :-)
6 years, 2 months ago (2014-09-26 14:39:39 UTC) #9
Xi Han
+rockot@chromium.org: Please review all changes. Thanks. Hi Ken, this patch allows declareative-web-sample can be run ...
6 years, 2 months ago (2014-09-26 14:50:01 UTC) #11
Ken Rockot(use gerrit already)
lgtm with a few comments https://codereview.chromium.org/596003002/diff/210001/extensions/browser/api/declarative/rules_registry_service.cc File extensions/browser/api/declarative/rules_registry_service.cc (right): https://codereview.chromium.org/596003002/diff/210001/extensions/browser/api/declarative/rules_registry_service.cc#newcode98 extensions/browser/api/declarative/rules_registry_service.cc:98: if (content_rules_registry.get()) { I ...
6 years, 2 months ago (2014-09-29 17:22:54 UTC) #12
Xi Han
sky@chromium.org: Please review changes in: - chrome/common/extensions_api_resources.grd - chrome/renderer/resources/renderer_resources.grd Thanks! https://codereview.chromium.org/596003002/diff/210001/extensions/browser/api/declarative/rules_registry_service.cc File extensions/browser/api/declarative/rules_registry_service.cc (right): https://codereview.chromium.org/596003002/diff/210001/extensions/browser/api/declarative/rules_registry_service.cc#newcode98 ...
6 years, 2 months ago (2014-09-29 18:16:21 UTC) #13
Ken Rockot(use gerrit already)
https://codereview.chromium.org/596003002/diff/210001/extensions/browser/api/declarative/rules_registry_service.cc File extensions/browser/api/declarative/rules_registry_service.cc (right): https://codereview.chromium.org/596003002/diff/210001/extensions/browser/api/declarative/rules_registry_service.cc#newcode98 extensions/browser/api/declarative/rules_registry_service.cc:98: if (content_rules_registry.get()) { On 2014/09/29 18:16:21, hanxi wrote: > ...
6 years, 2 months ago (2014-09-29 19:31:42 UTC) #14
Fady Samuel
https://codereview.chromium.org/596003002/diff/230001/extensions/browser/api/declarative/declarative_api.cc File extensions/browser/api/declarative/declarative_api.cc (right): https://codereview.chromium.org/596003002/diff/230001/extensions/browser/api/declarative/declarative_api.cc#newcode158 extensions/browser/api/declarative/declarative_api.cc:158: GetRulesRegistry(key, event_name); Indentation is off.
6 years, 2 months ago (2014-09-29 21:26:32 UTC) #15
Fady Samuel
Xi, could you please move the event listener removal code out of chrome and into ...
6 years, 2 months ago (2014-09-29 22:07:11 UTC) #16
Ken Rockot(use gerrit already)
OK. SGTM. On Mon, Sep 29, 2014 at 3:07 PM, <fsamuel@chromium.org> wrote: > Xi, could ...
6 years, 2 months ago (2014-09-29 22:18:30 UTC) #17
Xi Han
Fady: PTAL, thanks!
6 years, 2 months ago (2014-09-29 22:22:22 UTC) #18
Fady Samuel
lgtm
6 years, 2 months ago (2014-09-29 22:24:39 UTC) #19
Fady Samuel
lgtm lgtm
6 years, 2 months ago (2014-09-29 22:24:39 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/596003002/250001
6 years, 2 months ago (2014-09-30 13:15:46 UTC) #23
commit-bot: I haz the power
Committed patchset #11 (id:250001) as 58af8acc86fc2999212b9e256fc0aa7856dd7dcc
6 years, 2 months ago (2014-09-30 13:20:16 UTC) #24
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/4499156f5a5784eee9e0dc021f13b4ea0fd7d0d2 Cr-Commit-Position: refs/heads/master@{#297413}
6 years, 2 months ago (2014-09-30 13:20:53 UTC) #25
dcheng
+hanxi@chromium.org as well (sorry for leaving you off the initial email)
6 years, 2 months ago (2014-09-30 19:02:42 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/596003002/270001
6 years, 2 months ago (2014-09-30 20:38:38 UTC) #29
commit-bot: I haz the power
Committed patchset #12 (id:270001) as 8ee32d30cfa3636fbce5676c12d3f7ee91290d0d
6 years, 2 months ago (2014-09-30 22:44:30 UTC) #30
commit-bot: I haz the power
6 years, 2 months ago (2014-09-30 22:45:17 UTC) #31
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/c93416adae7930188e346f03d5764b49934568d3
Cr-Commit-Position: refs/heads/master@{#297532}

Powered by Google App Engine
This is Rietveld 408576698