OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include <map> | 5 #include <map> |
6 #include <set> | 6 #include <set> |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 1389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1400 // explicitly white-listed for the plug-in, or the user has chosen | 1400 // explicitly white-listed for the plug-in, or the user has chosen |
1401 // not to block nonsandboxed plugins. | 1401 // not to block nonsandboxed plugins. |
1402 // | 1402 // |
1403 // If |setting| is set to CONTENT_SETTING_DEFAULT, the plug-in is | 1403 // If |setting| is set to CONTENT_SETTING_DEFAULT, the plug-in is |
1404 // neither blocked nor white-listed, which means that it's allowed | 1404 // neither blocked nor white-listed, which means that it's allowed |
1405 // by default and can still be blocked if it's non-sandboxed. | 1405 // by default and can still be blocked if it's non-sandboxed. |
1406 // | 1406 // |
1407 // |actual_mime_type| is the actual mime type supported by the | 1407 // |actual_mime_type| is the actual mime type supported by the |
1408 // plugin found that match the URL given (one for each item in | 1408 // plugin found that match the URL given (one for each item in |
1409 // |info|). | 1409 // |info|). |
1410 IPC_SYNC_MESSAGE_CONTROL3_4(ViewHostMsg_GetPluginInfo, | 1410 IPC_SYNC_MESSAGE_CONTROL4_4(ViewHostMsg_GetPluginInfo, |
| 1411 int /* routing_id */, |
1411 GURL /* url */, | 1412 GURL /* url */, |
1412 GURL /* policy_url */, | 1413 GURL /* policy_url */, |
1413 std::string /* mime_type */, | 1414 std::string /* mime_type */, |
1414 bool /* found */, | 1415 bool /* found */, |
1415 webkit::npapi::WebPluginInfo /* plugin info */, | 1416 webkit::npapi::WebPluginInfo /* plugin info */, |
1416 ContentSetting /* setting */, | 1417 ContentSetting /* setting */, |
1417 std::string /* actual_mime_type */) | 1418 std::string /* actual_mime_type */) |
1418 | 1419 |
1419 // Requests spellcheck for a word. | 1420 // Requests spellcheck for a word. |
1420 IPC_SYNC_MESSAGE_ROUTED2_2(ViewHostMsg_SpellCheck, | 1421 IPC_SYNC_MESSAGE_ROUTED2_2(ViewHostMsg_SpellCheck, |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1545 // A message for an external host. | 1546 // A message for an external host. |
1546 IPC_MESSAGE_ROUTED3(ViewHostMsg_ForwardMessageToExternalHost, | 1547 IPC_MESSAGE_ROUTED3(ViewHostMsg_ForwardMessageToExternalHost, |
1547 std::string /* message */, | 1548 std::string /* message */, |
1548 std::string /* origin */, | 1549 std::string /* origin */, |
1549 std::string /* target */) | 1550 std::string /* target */) |
1550 | 1551 |
1551 // A renderer sends this to the browser process when it wants to | 1552 // A renderer sends this to the browser process when it wants to |
1552 // create a plugin. The browser will create the plugin process if | 1553 // create a plugin. The browser will create the plugin process if |
1553 // necessary, and will return a handle to the channel on success. | 1554 // necessary, and will return a handle to the channel on success. |
1554 // On error an empty string is returned. | 1555 // On error an empty string is returned. |
1555 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_OpenChannelToPlugin, | 1556 IPC_SYNC_MESSAGE_CONTROL3_2(ViewHostMsg_OpenChannelToPlugin, |
| 1557 int /* routing_id */, |
1556 GURL /* url */, | 1558 GURL /* url */, |
1557 std::string /* mime_type */, | 1559 std::string /* mime_type */, |
1558 IPC::ChannelHandle /* channel_handle */, | 1560 IPC::ChannelHandle /* channel_handle */, |
1559 webkit::npapi::WebPluginInfo /* info */) | 1561 webkit::npapi::WebPluginInfo /* info */) |
1560 | 1562 |
1561 // A renderer sends this to the browser process when it wants to | 1563 // A renderer sends this to the browser process when it wants to |
1562 // create a pepper plugin. The browser will create the plugin process if | 1564 // create a pepper plugin. The browser will create the plugin process if |
1563 // necessary, and will return a handle to the channel on success. | 1565 // necessary, and will return a handle to the channel on success. |
1564 // On error an empty string is returned. | 1566 // On error an empty string is returned. |
1565 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_OpenChannelToPepperPlugin, | 1567 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_OpenChannelToPepperPlugin, |
(...skipping 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2615 // script as it's only element, one of Null, Boolean, Integer, Real, Date, or | 2617 // script as it's only element, one of Null, Boolean, Integer, Real, Date, or |
2616 // String. | 2618 // String. |
2617 IPC_MESSAGE_ROUTED2(ViewHostMsg_ScriptEvalResponse, | 2619 IPC_MESSAGE_ROUTED2(ViewHostMsg_ScriptEvalResponse, |
2618 int /* id */, | 2620 int /* id */, |
2619 ListValue /* result */) | 2621 ListValue /* result */) |
2620 | 2622 |
2621 // Updates the content restrictions, i.e. to disable print/copy. | 2623 // Updates the content restrictions, i.e. to disable print/copy. |
2622 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateContentRestrictions, | 2624 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateContentRestrictions, |
2623 int /* restrictions */) | 2625 int /* restrictions */) |
2624 | 2626 |
| 2627 // The currently displayed PDF has an unsupported feature. |
| 2628 IPC_MESSAGE_ROUTED0(ViewHostMsg_PDFHasUnsupportedFeature) |
| 2629 |
2625 // Pepper-related messages ----------------------------------------------------- | 2630 // Pepper-related messages ----------------------------------------------------- |
2626 | 2631 |
2627 IPC_MESSAGE_CONTROL4(ViewHostMsg_PepperConnectTcp, | 2632 IPC_MESSAGE_CONTROL4(ViewHostMsg_PepperConnectTcp, |
2628 int /* routing_id */, | 2633 int /* routing_id */, |
2629 int /* request_id */, | 2634 int /* request_id */, |
2630 std::string /* host */, | 2635 std::string /* host */, |
2631 uint16 /* port */) | 2636 uint16 /* port */) |
2632 | 2637 |
2633 IPC_MESSAGE_CONTROL3(ViewHostMsg_PepperConnectTcpAddress, | 2638 IPC_MESSAGE_CONTROL3(ViewHostMsg_PepperConnectTcpAddress, |
2634 int /* routing_id */, | 2639 int /* routing_id */, |
2635 int /* request_id */, | 2640 int /* request_id */, |
2636 PP_Flash_NetAddress /* addr */) | 2641 PP_Flash_NetAddress /* addr */) |
2637 | 2642 |
2638 // JavaScript related messages ----------------------------------------------- | 2643 // JavaScript related messages ----------------------------------------------- |
2639 | 2644 |
2640 // Notify the JavaScript engine in the render to change its parameters | 2645 // Notify the JavaScript engine in the render to change its parameters |
2641 // while performing stress testing. | 2646 // while performing stress testing. |
2642 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, | 2647 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, |
2643 int /* cmd */, | 2648 int /* cmd */, |
2644 int /* param */) | 2649 int /* param */) |
OLD | NEW |