DescriptionThis CL introduce DeclarativeUserScriptManager to manager a set of DeclarativeUserScriptMaster objects which were stored in the ExtensionSystemImpl.
With this refactor, it allows the DeclarativeUserScriptManager to take care of the creations of DeclarativeUserScriptMaster objects:
1) It enable the DeclarativeUserScriptManager accept all kinds of input keys and convert them as a uniform format;
2) The manager will assign a unique ID to the consumer who requests a DeclarativeUserScriptMaster object.The consumer can use this ID to do script injection.
(The above two steps will be implemented in another CLs)
This refactor is a part of issue "support DeclarativeContent script injection on <webview>", please refer to a design doc(https://goto.google.com/introduceidforscriptinjection).
BUG=437566
Committed: https://crrev.com/6d9b43a5c431b04947bdc135b179166e55199efa
Cr-Commit-Position: refs/heads/master@{#308171}
Patch Set 1 : #
Total comments: 1
Patch Set 2 : #Patch Set 3 : Use map to store the DeclarativeUserScriptMaster objects. #
Total comments: 24
Patch Set 4 : Updated based on Devlin@'s comments. #
Total comments: 11
Patch Set 5 : Move back to extensions namespace. #
Total comments: 1
Patch Set 6 : nits. #Messages
Total messages: 25 (8 generated)
|