diff options
author | markdittmer@chromium.org <markdittmer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-30 09:52:02 +0000 |
---|---|---|
committer | markdittmer@chromium.org <markdittmer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-30 09:52:02 +0000 |
commit | 4c356907ac67ad325f939e12d8c754ba7fd68a1f (patch) | |
tree | 7b42a80d337242f069c8b09fac123e7a11da266d /extensions/common/extension_messages.h | |
parent | 8ba745ab3a58b2b0bbcb2fd902d82dd6186ca9da (diff) | |
download | chromium_src-4c356907ac67ad325f939e12d8c754ba7fd68a1f.zip chromium_src-4c356907ac67ad325f939e12d8c754ba7fd68a1f.tar.gz chromium_src-4c356907ac67ad325f939e12d8c754ba7fd68a1f.tar.bz2 |
Declarative content scripts: Renderer-side: per-extension shared memory regions (lazily loaded)
BUG=377978
Review URL: https://codereview.chromium.org/404613006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286457 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions/common/extension_messages.h')
-rw-r--r-- | extensions/common/extension_messages.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/extensions/common/extension_messages.h b/extensions/common/extension_messages.h index 307ce59..e3154ca 100644 --- a/extensions/common/extension_messages.h +++ b/extensions/common/extension_messages.h @@ -381,10 +381,17 @@ IPC_MESSAGE_ROUTED1(ExtensionMsg_ExecuteCode, // Notification that the user scripts have been updated. It has one // SharedMemoryHandle argument consisting of the pickled script data. This // handle is valid in the context of the renderer. +// If |owner| is not empty, then the shared memory handle refers to |owner|'s +// programmatically-defined scripts. Otherwise, the handle refers to all +// extensions' statically defined scripts. // If |changed_extensions| is not empty, only the extensions in that set will -// be updated. Otherwise, all extensions will be updated. -IPC_MESSAGE_CONTROL2(ExtensionMsg_UpdateUserScripts, +// be updated. Otherwise, all extensions that have scripts in the shared memory +// region will be updated. Note that the empty set => all extensions case is not +// supported for per-extension programmatically-defined script regions; in such +// regions, the owner is expected to list itself as the only changed extension. +IPC_MESSAGE_CONTROL3(ExtensionMsg_UpdateUserScripts, base::SharedMemoryHandle, + extensions::ExtensionId /* owner */, std::set<std::string> /* changed extensions */) // Tell the render view which browser window it's being attached to. |