This CL adds routing info for content scripts from <webview>.
commitf853287c95cf818d0b5b02d7f4a6588761096d1c
authorhanxi <hanxi@chromium.org>
Mon, 2 Mar 2015 22:33:53 +0000 (2 14:33 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 2 Mar 2015 22:35:12 +0000 (2 22:35 +0000)
treea6363407d85dff3e85f11f8170746db2acf84d1b
parentb5a74792a9fc7650bcec42d90ca2620eb946b5c0
This CL adds routing info for content scripts from <webview>.

To support dynamically added/removed content scripts in <webview>, we store
these content scripts in the same shared memory where user scripts from
declarative content API are stored, but the decision for injection will
be made in the render once the url pattern is matched. Since render doesn't
need to send IPCs to ask a decision from browser, it makes a precise time
injection possible.

Special to <webview>, once the content scripts are updated (added/removed),
browser will only notify the render process of the given <webview>, rather than
all of the renders (which is the case for user scripts).

BUG=437566

Review URL: https://codereview.chromium.org/906493004

Cr-Commit-Position: refs/heads/master@{#318774}
extensions/browser/user_script_loader.cc
extensions/common/user_script.cc
extensions/common/user_script.h
extensions/renderer/extension_injection_host.cc
extensions/renderer/user_script_injector.cc