Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(490)

Unified Diff: extensions/common/extension_messages.h

Issue 1140173003: Allow whitelisted content scripts to be injected in WebViews. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@document_has_focus
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: extensions/common/extension_messages.h
diff --git a/extensions/common/extension_messages.h b/extensions/common/extension_messages.h
index 73adbcd204d4e0002e31d6b23acfcab0e40c429d..5dc4981682a69cf7c788e8d78db5569c7d076357 100644
--- a/extensions/common/extension_messages.h
+++ b/extensions/common/extension_messages.h
@@ -457,10 +457,13 @@ IPC_MESSAGE_ROUTED1(ExtensionMsg_ExecuteCode,
// region will be updated. Note that the empty set => all hosts 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 host.
-IPC_MESSAGE_CONTROL3(ExtensionMsg_UpdateUserScripts,
+// If |whitelisted_only| is true, this process should only run whitelisted
+// scripts and not all user scripts.
+IPC_MESSAGE_CONTROL4(ExtensionMsg_UpdateUserScripts,
base::SharedMemoryHandle,
HostID /* owner */,
- std::set<HostID> /* changed hosts */)
+ std::set<HostID> /* changed hosts */,
+ bool /* whitelisted_only */)
// Trigger to execute declarative content script under browser control.
IPC_MESSAGE_ROUTED4(ExtensionMsg_ExecuteDeclarativeScript,

Powered by Google App Engine
This is Rietveld 408576698