Description[Extensions Bindings] Add support for custom property types
There are a few custom types that are used as properties on extension
bindings. These are currently limited to:
- storage.StorageArea,
- types.ChromeSetting,
- types.private.ChromeDirectSetting,
- types.ContentSetting
These types are each implemented through JS custom bindings that
initialize the type and implement its functionality. Each
specifies a "js_module" in the property pointing to the custom
bindings.
Add support for these custom types in native bindings. Instead of trying
to reuse the existing JS implementation, only provide a way of
specifying a native custom type. This is for a few reasons:
- Eventually, we want all of these to be native.
- There are only four, so implementing each isn't overwhelming (as
opposed to custom bindings in general, where are there hundreds).
- It doesn't make sense to shave this yak if we don't need to.
Add the basic infrastructure for custom types, and implement the
chrome.StorageArea type.
BUG=653596
Review-Url: https://codereview.chromium.org/2704823002
Cr-Commit-Position: refs/heads/master@{#452637}
Committed: https://chromium.googlesource.com/chromium/src/+/d31fa8e715fc2baa87357e62a106f5fce6f2d4cc
Patch Set 1 #Patch Set 2 : . #
Total comments: 1
Patch Set 3 : . #
Total comments: 6
Patch Set 4 : jbroman's #
Total comments: 20
Patch Set 5 : jbroman + lazyboy #Patch Set 6 : . #Patch Set 7 : asan fix #Depends on Patchset: Messages
Total messages: 35 (22 generated)
|