|
[Extensions Bindings] Add native declarativeContent verification
The declarativeContent API exposes constructors that initialize certain
types. These constructors (sometimes) take arguments that need to be
validated against the schema. Add native support for this validation by
allowing native hooks to modify the API binding's object template, and
using this to expose the constructor methods rather than relying on the
JS custom bindings.
Add additional declarativeContent-related tests and unittests for hooks
modifying the API binding template.
BUG= 653596
Review-Url: https://codereview.chromium.org/2853023002
Cr-Commit-Position: refs/heads/master@{#469182}
Committed: https://chromium.googlesource.com/chromium/src/+/92d03c12fddf6214bcb74ec328a284f39eb2f452
Total comments: 17
Total comments: 22
Total comments: 12
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+459 lines, -92 lines) |
Patch |
 |
M |
chrome/browser/extensions/BUILD.gn
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.cc
|
View
|
1
2
3
4
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/declarative_content/content_action.cc
|
View
|
1
2
3
4
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/declarative_content/content_condition.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
D |
chrome/browser/extensions/api/declarative_content/content_constants.h
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -34 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/extensions/api/declarative_content/content_constants.cc
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -29 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/declarative_content/declarative_content_css_condition_tracker.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/declarative_content/declarative_content_is_bookmarked_condition_tracker.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/declarative_content/declarative_content_page_url_condition_tracker.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/native_bindings_apitest.cc
|
View
|
1
2
3
|
3 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/renderer/resources/extensions/declarative_content_custom_bindings.js
|
View
|
1
2
3
|
3 chunks |
+37 lines, -16 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/extensions/api_test/native_bindings/declarative_content/background.js
|
View
|
1
2
|
2 chunks |
+24 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/common/BUILD.gn
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
extensions/common/api/declarative/declarative_constants.h
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
A + |
extensions/common/api/declarative/declarative_constants.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
extensions/renderer/BUILD.gn
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/renderer/api_binding.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/renderer/api_binding_hooks.h
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/renderer/api_binding_hooks.cc
|
View
|
1
2
3
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/renderer/api_binding_hooks_delegate.h
|
View
|
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/renderer/api_binding_hooks_test_delegate.h
|
View
|
1
|
2 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/renderer/api_binding_hooks_test_delegate.cc
|
View
|
1
|
2 chunks |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/renderer/api_binding_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+30 lines, -0 lines |
0 comments
|
Download
|
 |
A |
extensions/renderer/declarative_content_hooks_delegate.h
|
View
|
1
2
|
1 chunk |
+50 lines, -0 lines |
0 comments
|
Download
|
 |
A |
extensions/renderer/declarative_content_hooks_delegate.cc
|
View
|
1
2
3
4
|
1 chunk |
+246 lines, -0 lines |
0 comments
|
Download
|
 |
M |
extensions/renderer/native_extension_bindings_system.cc
|
View
|
1
2
3
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
Total messages: 26 (16 generated)
|