OLD | NEW |
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 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1360 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_DeleteCookie, | 1360 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_DeleteCookie, |
1361 GURL /* url */, | 1361 GURL /* url */, |
1362 std::string /* cookie_name */) | 1362 std::string /* cookie_name */) |
1363 | 1363 |
1364 // Used to get the list of plugins | 1364 // Used to get the list of plugins |
1365 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetPlugins, | 1365 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetPlugins, |
1366 bool /* refresh*/, | 1366 bool /* refresh*/, |
1367 std::vector<WebPluginInfo> /* plugins */) | 1367 std::vector<WebPluginInfo> /* plugins */) |
1368 | 1368 |
1369 // Return information about a plugin for the given URL and MIME | 1369 // Return information about a plugin for the given URL and MIME |
1370 // type. If there is no matching plugin, |info| is an empty vector. | 1370 // type. If there is no matching plugin, |found| is false. If |
1371 // If |enabled| in the WebPluginInfo struct is false, the plug-in is | 1371 // |enabled| in the WebPluginInfo struct is false, the plug-in is |
1372 // basically treated as if it was not installed at all. | 1372 // treated as if it was not installed at all. |
1373 // |settings| has an entry for each item in |info|. | 1373 // |
1374 // If the corresponding |settings| array element is set to | 1374 // If |setting| is set to CONTENT_SETTING_BLOCK, the plug-in is |
1375 // CONTENT_SETTING_BLOCK, the plug-in is blocked by the content | 1375 // blocked by the content settings for |policy_url|. It still |
1376 // settings for |policy_url|. It still appears in navigator.plugins | 1376 // appears in navigator.plugins in Javascript though, and can be |
1377 // in Javascript though, and can be loaded via click-to-play. | 1377 // loaded via click-to-play. |
1378 // If the corresponding |settings| array element is set to | 1378 // |
1379 // CONTENT_SETTING_ALLOW, the domain is explicitly white-listed for | 1379 // If |setting| is set to CONTENT_SETTING_ALLOW, the domain is |
1380 // the plug-in, or the user has chosen not to block nonsandboxed | 1380 // explicitly white-listed for the plug-in, or the user has chosen |
1381 // plugins. | 1381 // not to block nonsandboxed plugins. |
1382 // If the corresponding |settings| array element is set to | 1382 // |
1383 // CONTENT_SETTING_DEFAULT, the plug-in is neither blocked nor | 1383 // If |setting| is set to CONTENT_SETTING_DEFAULT, the plug-in is |
1384 // white-listed, which means that it's allowed by default and can | 1384 // neither blocked nor white-listed, which means that it's allowed |
1385 // still be blocked if it's non-sandboxed. | 1385 // by default and can still be blocked if it's non-sandboxed. |
1386 // |actual_mime_types| is a list of actual mime types supported by | 1386 // |
1387 // each plugin found that match the URL given (one for each item in |info|). | 1387 // |actual_mime_type| is the actual mime type supported by the |
1388 IPC_SYNC_MESSAGE_CONTROL3_3(ViewHostMsg_GetPluginInfoArray, | 1388 // plugin found that match the URL given (one for each item in |
| 1389 // |info|). |
| 1390 IPC_SYNC_MESSAGE_CONTROL3_4(ViewHostMsg_GetPluginInfo, |
1389 GURL /* url */, | 1391 GURL /* url */, |
1390 GURL /* policy_url */, | 1392 GURL /* policy_url */, |
1391 std::string /* mime_type */, | 1393 std::string /* mime_type */, |
1392 std::vector<WebPluginInfo> /* plugin info */, | 1394 bool /* found */, |
1393 std::vector<ContentSetting> /* settings */, | 1395 WebPluginInfo /* plugin info */, |
1394 std::vector<std::string> /* actual_mime_types */) | 1396 ContentSetting /* setting */, |
| 1397 std::string /* actual_mime_type */) |
1395 | 1398 |
1396 // Requests spellcheck for a word. | 1399 // Requests spellcheck for a word. |
1397 IPC_SYNC_MESSAGE_ROUTED2_2(ViewHostMsg_SpellCheck, | 1400 IPC_SYNC_MESSAGE_ROUTED2_2(ViewHostMsg_SpellCheck, |
1398 string16 /* word to check */, | 1401 string16 /* word to check */, |
1399 int /* document tag*/, | 1402 int /* document tag*/, |
1400 int /* misspell location */, | 1403 int /* misspell location */, |
1401 int /* misspell length */) | 1404 int /* misspell length */) |
1402 | 1405 |
1403 // Asks the browser for a unique document tag. | 1406 // Asks the browser for a unique document tag. |
1404 IPC_SYNC_MESSAGE_ROUTED0_1(ViewHostMsg_GetDocumentTag, | 1407 IPC_SYNC_MESSAGE_ROUTED0_1(ViewHostMsg_GetDocumentTag, |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1522 // A message for an external host. | 1525 // A message for an external host. |
1523 IPC_MESSAGE_ROUTED3(ViewHostMsg_ForwardMessageToExternalHost, | 1526 IPC_MESSAGE_ROUTED3(ViewHostMsg_ForwardMessageToExternalHost, |
1524 std::string /* message */, | 1527 std::string /* message */, |
1525 std::string /* origin */, | 1528 std::string /* origin */, |
1526 std::string /* target */) | 1529 std::string /* target */) |
1527 | 1530 |
1528 // A renderer sends this to the browser process when it wants to | 1531 // A renderer sends this to the browser process when it wants to |
1529 // create a plugin. The browser will create the plugin process if | 1532 // create a plugin. The browser will create the plugin process if |
1530 // necessary, and will return a handle to the channel on success. | 1533 // necessary, and will return a handle to the channel on success. |
1531 // On error an empty string is returned. | 1534 // On error an empty string is returned. |
1532 IPC_SYNC_MESSAGE_CONTROL3_2(ViewHostMsg_OpenChannelToPlugin, | 1535 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_OpenChannelToPlugin, |
1533 GURL /* url */, | 1536 GURL /* url */, |
1534 std::string /* mime_type */, | 1537 std::string /* mime_type */, |
1535 std::string /* locale */, | |
1536 IPC::ChannelHandle /* handle to channel */, | 1538 IPC::ChannelHandle /* handle to channel */, |
1537 WebPluginInfo /* info */) | 1539 WebPluginInfo /* info */) |
1538 | 1540 |
1539 // A renderer sends this to the browser process when it wants to | 1541 // A renderer sends this to the browser process when it wants to |
1540 // create connect to the GPU. The browser will create the GPU process if | 1542 // create connect to the GPU. The browser will create the GPU process if |
1541 // necessary, and will return a handle to the channel via | 1543 // necessary, and will return a handle to the channel via |
1542 // a GpuChannelEstablished message. | 1544 // a GpuChannelEstablished message. |
1543 IPC_MESSAGE_CONTROL0(ViewHostMsg_EstablishGpuChannel) | 1545 IPC_MESSAGE_CONTROL0(ViewHostMsg_EstablishGpuChannel) |
1544 | 1546 |
1545 // A renderer sends this to the browser process to provide a synchronization | 1547 // A renderer sends this to the browser process to provide a synchronization |
(...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2968 // to the boolean result true, false otherwise. | 2970 // to the boolean result true, false otherwise. |
2969 IPC_MESSAGE_ROUTED2(ViewHostMsg_ScriptEvalResponse, | 2971 IPC_MESSAGE_ROUTED2(ViewHostMsg_ScriptEvalResponse, |
2970 int /* id */, | 2972 int /* id */, |
2971 bool /* result */) | 2973 bool /* result */) |
2972 | 2974 |
2973 // Updates the content restrictions, i.e. to disable print/copy. | 2975 // Updates the content restrictions, i.e. to disable print/copy. |
2974 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateContentRestrictions, | 2976 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateContentRestrictions, |
2975 int /* restrictions */) | 2977 int /* restrictions */) |
2976 | 2978 |
2977 IPC_END_MESSAGES(ViewHost) | 2979 IPC_END_MESSAGES(ViewHost) |
OLD | NEW |