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

Side by Side Diff: chrome/common/render_messages_internal.h

Issue 2967007: Disable outdated plugins, block non-sandboxed plugins. (Closed)
Patch Set: '' Created 10 years, 4 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 unified diff | Download patch
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/blocked_plugin.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This header is meant to be included in multiple passes, hence no traditional 5 // This header is meant to be included in multiple passes, hence no traditional
6 // header guard. 6 // header guard.
7 // See ipc_message_macros.h for explanation of the macros and passes. 7 // See ipc_message_macros.h for explanation of the macros and passes.
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 IPC_MESSAGE_ROUTED1(ViewMsg_SetAltErrorPageURL, GURL) 498 IPC_MESSAGE_ROUTED1(ViewMsg_SetAltErrorPageURL, GURL)
499 499
500 // Install the first missing pluign. 500 // Install the first missing pluign.
501 IPC_MESSAGE_ROUTED0(ViewMsg_InstallMissingPlugin) 501 IPC_MESSAGE_ROUTED0(ViewMsg_InstallMissingPlugin)
502 502
503 // Tells the renderer to empty its plugin list cache, optional reloading 503 // Tells the renderer to empty its plugin list cache, optional reloading
504 // pages containing plugins. 504 // pages containing plugins.
505 IPC_MESSAGE_CONTROL1(ViewMsg_PurgePluginListCache, 505 IPC_MESSAGE_CONTROL1(ViewMsg_PurgePluginListCache,
506 bool /* reload_pages */) 506 bool /* reload_pages */)
507 507
508 // Tells the render view to load all blocked plugins
509 IPC_MESSAGE_ROUTED0(ViewMsg_LoadBlockedPlugins)
510
508 IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse, 511 IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse,
509 std::vector<FilePath> /* selected files */) 512 std::vector<FilePath> /* selected files */)
510 513
511 // Used to instruct the RenderView to go into "view source" mode. 514 // Used to instruct the RenderView to go into "view source" mode.
512 IPC_MESSAGE_ROUTED0(ViewMsg_EnableViewSourceMode) 515 IPC_MESSAGE_ROUTED0(ViewMsg_EnableViewSourceMode)
513 516
514 // Get all savable resource links from current webpage, include main 517 // Get all savable resource links from current webpage, include main
515 // frame and sub-frame. 518 // frame and sub-frame.
516 IPC_MESSAGE_ROUTED1(ViewMsg_GetAllSavableResourceLinksForCurrentPage, 519 IPC_MESSAGE_ROUTED1(ViewMsg_GetAllSavableResourceLinksForCurrentPage,
517 GURL /* url of page which is needed to save */) 520 GURL /* url of page which is needed to save */)
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after
1230 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_GetCookiesEnabled, 1233 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_GetCookiesEnabled,
1231 GURL /* url */, 1234 GURL /* url */,
1232 GURL /* first_party_for_cookies */, 1235 GURL /* first_party_for_cookies */,
1233 bool /* enabled */) 1236 bool /* enabled */)
1234 1237
1235 // Used to get the list of plugins 1238 // Used to get the list of plugins
1236 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetPlugins, 1239 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetPlugins,
1237 bool /* refresh*/, 1240 bool /* refresh*/,
1238 std::vector<WebPluginInfo> /* plugins */) 1241 std::vector<WebPluginInfo> /* plugins */)
1239 1242
1240 // Returns a path to a plugin for the given url and mime type. If there's 1243 // Return information about a plugin for the given URL and MIME type. If there
1241 // no plugin, an empty string is returned. 1244 // is no matching plugin, |found| is set to false.
1242 IPC_SYNC_MESSAGE_CONTROL3_2(ViewHostMsg_GetPluginPath, 1245 IPC_SYNC_MESSAGE_CONTROL3_3(ViewHostMsg_GetPluginInfo,
1243 GURL /* url */, 1246 GURL /* url */,
1244 GURL /* policy_url */, 1247 GURL /* policy_url */,
1245 std::string /* mime_type */, 1248 std::string /* mime_type */,
1246 FilePath /* filename */, 1249 bool /* found */,
1247 std::string /* actual mime type for url */) 1250 WebPluginInfo /* plugin info */,
1251 std::string /* actual_mime_type */)
1248 1252
1249 // Requests spellcheck for a word. 1253 // Requests spellcheck for a word.
1250 IPC_SYNC_MESSAGE_ROUTED2_2(ViewHostMsg_SpellCheck, 1254 IPC_SYNC_MESSAGE_ROUTED2_2(ViewHostMsg_SpellCheck,
1251 string16 /* word to check */, 1255 string16 /* word to check */,
1252 int /* document tag*/, 1256 int /* document tag*/,
1253 int /* misspell location */, 1257 int /* misspell location */,
1254 int /* misspell length */) 1258 int /* misspell length */)
1255 1259
1256 // Asks the browser for a unique document tag. 1260 // Asks the browser for a unique document tag.
1257 IPC_SYNC_MESSAGE_ROUTED0_1(ViewHostMsg_GetDocumentTag, 1261 IPC_SYNC_MESSAGE_ROUTED0_1(ViewHostMsg_GetDocumentTag,
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
1654 1658
1655 // Request for a DNS prefetch of the names in the array. 1659 // Request for a DNS prefetch of the names in the array.
1656 // NameList is typedef'ed std::vector<std::string> 1660 // NameList is typedef'ed std::vector<std::string>
1657 IPC_MESSAGE_CONTROL1(ViewHostMsg_DnsPrefetch, 1661 IPC_MESSAGE_CONTROL1(ViewHostMsg_DnsPrefetch,
1658 std::vector<std::string> /* hostnames */) 1662 std::vector<std::string> /* hostnames */)
1659 1663
1660 // Notifies when default plugin updates status of the missing plugin. 1664 // Notifies when default plugin updates status of the missing plugin.
1661 IPC_MESSAGE_ROUTED1(ViewHostMsg_MissingPluginStatus, 1665 IPC_MESSAGE_ROUTED1(ViewHostMsg_MissingPluginStatus,
1662 int /* status */) 1666 int /* status */)
1663 1667
1668 // Notifies when a non-sandboxed plugin was blocked.
1669 IPC_MESSAGE_ROUTED1(ViewHostMsg_NonSandboxedPluginBlocked,
1670 string16 /* name */)
1671
1672 // Notifies when a blocked plugin was loaded via click-to-load.
1673 IPC_MESSAGE_ROUTED0(ViewHostMsg_BlockedPluginLoaded)
1674
1664 // Sent by the renderer process to indicate that a plugin instance has 1675 // Sent by the renderer process to indicate that a plugin instance has
1665 // crashed. 1676 // crashed.
1666 IPC_MESSAGE_ROUTED1(ViewHostMsg_CrashedPlugin, 1677 IPC_MESSAGE_ROUTED1(ViewHostMsg_CrashedPlugin,
1667 FilePath /* plugin_path */) 1678 FilePath /* plugin_path */)
1668 1679
1680 // Notifies when a plugin couldn't be loaded because it's outdated.
1681 IPC_MESSAGE_ROUTED2(ViewHostMsg_DisabledOutdatedPlugin,
1682 string16, /* name */
1683 GURL /* update_url */)
1684
1669 // Displays a JavaScript out-of-memory message in the infobar. 1685 // Displays a JavaScript out-of-memory message in the infobar.
1670 IPC_MESSAGE_ROUTED0(ViewHostMsg_JSOutOfMemory) 1686 IPC_MESSAGE_ROUTED0(ViewHostMsg_JSOutOfMemory)
1671 1687
1672 // Displays a box to confirm that the user wants to navigate away from the 1688 // Displays a box to confirm that the user wants to navigate away from the
1673 // page. Replies true if yes, false otherwise, the reply string is ignored, 1689 // page. Replies true if yes, false otherwise, the reply string is ignored,
1674 // but is included so that we can use OnJavaScriptMessageBoxClosed. 1690 // but is included so that we can use OnJavaScriptMessageBoxClosed.
1675 IPC_SYNC_MESSAGE_ROUTED2_2(ViewHostMsg_RunBeforeUnloadConfirm, 1691 IPC_SYNC_MESSAGE_ROUTED2_2(ViewHostMsg_RunBeforeUnloadConfirm,
1676 GURL, /* in - originating frame URL */ 1692 GURL, /* in - originating frame URL */
1677 std::wstring /* in - alert message */, 1693 std::wstring /* in - alert message */,
1678 bool /* out - success */, 1694 bool /* out - success */,
(...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after
2515 IPC_MESSAGE_CONTROL2(ViewHostMsg_Geolocation_Resume, 2531 IPC_MESSAGE_CONTROL2(ViewHostMsg_Geolocation_Resume,
2516 int /* render_view_id */, 2532 int /* render_view_id */,
2517 int /* bridge_id */) 2533 int /* bridge_id */)
2518 2534
2519 // Send the tree of accessibility data to the browser, where it's cached 2535 // Send the tree of accessibility data to the browser, where it's cached
2520 // in order to respond to OS accessibility queries immediately. 2536 // in order to respond to OS accessibility queries immediately.
2521 IPC_MESSAGE_ROUTED1(ViewHostMsg_AccessibilityTree, 2537 IPC_MESSAGE_ROUTED1(ViewHostMsg_AccessibilityTree,
2522 webkit_glue::WebAccessibility) 2538 webkit_glue::WebAccessibility)
2523 2539
2524 IPC_END_MESSAGES(ViewHost) 2540 IPC_END_MESSAGES(ViewHost)
OLDNEW
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/blocked_plugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698