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

Unified Diff: chrome/common/render_messages_internal.h

Issue 3530017: This changes GetPluginInfo so that we can request a list of plugins (Closed)
Patch Set: Fixing indents Created 10 years, 2 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
« no previous file with comments | « chrome/browser/renderer_host/resource_message_filter.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/render_messages_internal.h
diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h
index ae93fe46a8675c713672b4cc314a891322271313..fe44cb1ec8d3dc70123694a13036f9ab7fdcca54 100644
--- a/chrome/common/render_messages_internal.h
+++ b/chrome/common/render_messages_internal.h
@@ -1365,27 +1365,32 @@ IPC_BEGIN_MESSAGES(ViewHost)
bool /* refresh*/,
std::vector<WebPluginInfo> /* plugins */)
- // Return information about a plugin for the given URL and MIME type. If there
- // is no matching plugin, |found| is set to false.
- // If |enabled| in the WebPluginInfo struct is false, the plug-in is basically
- // treated as if it was not installed at all.
- // If |setting| is set to CONTENT_SETTING_BLOCK, the plug-in is blocked by the
- // content settings for |policy_url|. It still appears in navigator.plugins in
- // Javascript though, and can be loaded via click-to-play.
- // If |setting| is set to CONTENT_SETTING_ALLOW, the domain is explicitly
- // white-listed for the plug-in, or the user has chosen not to block
- // nonsandboxed plugins.
- // If |setting| is set to CONTENT_SETTING_DEFAULT, the plug-in is neither
- // blocked nor white-listed, which means that it's allowed by default and
- // can still be blocked if it's non-sandboxed.
- IPC_SYNC_MESSAGE_CONTROL3_4(ViewHostMsg_GetPluginInfo,
+ // Return information about a plugin for the given URL and MIME
+ // type. If there is no matching plugin, |info| is an empty vector.
+ // If |enabled| in the WebPluginInfo struct is false, the plug-in is
+ // basically treated as if it was not installed at all.
+ // |settings| has an entry for each item in |info|.
+ // If the corresponding |settings| array element is set to
+ // CONTENT_SETTING_BLOCK, the plug-in is blocked by the content
+ // settings for |policy_url|. It still appears in navigator.plugins
+ // in Javascript though, and can be loaded via click-to-play.
+ // If the corresponding |settings| array element is set to
+ // CONTENT_SETTING_ALLOW, the domain is explicitly white-listed for
+ // the plug-in, or the user has chosen not to block nonsandboxed
+ // plugins.
+ // If the corresponding |settings| array element is set to
+ // CONTENT_SETTING_DEFAULT, the plug-in is neither blocked nor
+ // white-listed, which means that it's allowed by default and can
+ // still be blocked if it's non-sandboxed.
+ // |actual_mime_types| is a list of actual mime types supported by
+ // each plugin found that match the URL given (one for each item in |info|).
+ IPC_SYNC_MESSAGE_CONTROL3_3(ViewHostMsg_GetPluginInfoArray,
GURL /* url */,
GURL /* policy_url */,
std::string /* mime_type */,
- bool /* found */,
- WebPluginInfo /* plugin info */,
- ContentSetting /* setting */,
- std::string /* actual_mime_type */)
+ std::vector<WebPluginInfo> /* plugin info */,
+ std::vector<ContentSetting> /* settings */,
+ std::vector<std::string> /* actual_mime_types */)
// Requests spellcheck for a word.
IPC_SYNC_MESSAGE_ROUTED2_2(ViewHostMsg_SpellCheck,
« no previous file with comments | « chrome/browser/renderer_host/resource_message_filter.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698