diff options
author | joaodasilva@chromium.org <joaodasilva@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-29 11:52:30 +0000 |
---|---|---|
committer | joaodasilva@chromium.org <joaodasilva@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-29 11:52:30 +0000 |
commit | f72a12c059bdebb49827276543400970971768ac (patch) | |
tree | 193a0d2205bb865a64f963333364d998252c8537 /chrome/common/render_messages.h | |
parent | 5da5d704fcaf00ad71a8b59eac05b8d538264f67 (diff) | |
download | chromium_src-f72a12c059bdebb49827276543400970971768ac.zip chromium_src-f72a12c059bdebb49827276543400970971768ac.tar.gz chromium_src-f72a12c059bdebb49827276543400970971768ac.tar.bz2 |
Added policy to allow plugins that require authorization to run.
BUG=80818
TEST=Enable the AlwaysAuthorizePlugins policy, and plugins that require authorization are always allowed. Otherwise, the user is asked for authorization.
Review URL: http://codereview.chromium.org/6893092
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83504 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/render_messages.h')
-rw-r--r-- | chrome/common/render_messages.h | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h index 82b4e6a..f046876 100644 --- a/chrome/common/render_messages.h +++ b/chrome/common/render_messages.h @@ -363,13 +363,21 @@ IPC_MESSAGE_CONTROL2(ViewHostMsg_V8HeapStats, IPC_MESSAGE_CONTROL1(ViewHostMsg_DnsPrefetch, std::vector<std::string> /* hostnames */) -// Requests the outdated plugins policy. -// |policy| is one of ALLOW, BLOCK or ASK. Anything else is an error. -// ALLOW means that outdated plugins are allowed, and BLOCK that they should -// be blocked. The default is ASK, which blocks the plugin initially but allows -// the user to start them manually. -IPC_SYNC_MESSAGE_ROUTED0_1(ViewHostMsg_GetOutdatedPluginsPolicy, - ContentSetting /* policy */) +// Requests the plugin policies. +// +// |outdated_policy| determines what to do about outdated plugins. +// |authorize_policy| determines what to do about plugins that require +// authorization to run. +// +// Both values can be ALLOW or ASK. |outdated_policy| can also be BLOCK. +// Anything else is an error. +// ALLOW means that the plugin should just run, as a normal plugin. +// BLOCK means that the plugin should not run nor be allowed to run at all. +// ASK means that the plugin should be initially blocked and the user should +// be asked whether he wants to run the plugin. +IPC_SYNC_MESSAGE_ROUTED0_2(ViewHostMsg_GetPluginPolicies, + ContentSetting /* outdated_policy */, + ContentSetting /* authorize_policy */) // Notifies when a plugin couldn't be loaded because it's outdated. IPC_MESSAGE_ROUTED2(ViewHostMsg_BlockedOutdatedPlugin, |