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 #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 12 matching lines...) Expand all Loading... |
23 #include "chrome/common/translate_errors.h" | 23 #include "chrome/common/translate_errors.h" |
24 #include "chrome/common/window_container_type.h" | 24 #include "chrome/common/window_container_type.h" |
25 #include "ipc/ipc_message_macros.h" | 25 #include "ipc/ipc_message_macros.h" |
26 #include "media/audio/audio_buffers_state.h" | 26 #include "media/audio/audio_buffers_state.h" |
27 #include "third_party/WebKit/WebKit/chromium/public/WebFindOptions.h" | 27 #include "third_party/WebKit/WebKit/chromium/public/WebFindOptions.h" |
28 #include "third_party/WebKit/WebKit/chromium/public/WebMediaPlayerAction.h" | 28 #include "third_party/WebKit/WebKit/chromium/public/WebMediaPlayerAction.h" |
29 #include "third_party/WebKit/WebKit/chromium/public/WebScreenInfo.h" | 29 #include "third_party/WebKit/WebKit/chromium/public/WebScreenInfo.h" |
30 #include "webkit/glue/context_menu.h" | 30 #include "webkit/glue/context_menu.h" |
31 #include "webkit/glue/form_data.h" | 31 #include "webkit/glue/form_data.h" |
32 #include "webkit/glue/password_form_dom_manager.h" | 32 #include "webkit/glue/password_form_dom_manager.h" |
33 #include "webkit/glue/plugins/webplugininfo.h" | |
34 #include "webkit/glue/webdropdata.h" | 33 #include "webkit/glue/webdropdata.h" |
| 34 #include "webkit/plugins/npapi/webplugininfo.h" |
35 | 35 |
36 #if defined(OS_POSIX) | 36 #if defined(OS_POSIX) |
37 #include "base/file_descriptor_posix.h" | 37 #include "base/file_descriptor_posix.h" |
38 #endif | 38 #endif |
39 | 39 |
40 #if defined(OS_MACOSX) | 40 #if defined(OS_MACOSX) |
41 #include "chrome/common/font_descriptor_mac.h" | 41 #include "chrome/common/font_descriptor_mac.h" |
42 #endif | 42 #endif |
43 | 43 |
44 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes | 44 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes |
(...skipping 1310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1355 | 1355 |
1356 // Used to check if cookies are enabled for the given URL. This may block | 1356 // Used to check if cookies are enabled for the given URL. This may block |
1357 // waiting for a previous SetCookie message to be processed. | 1357 // waiting for a previous SetCookie message to be processed. |
1358 IPC_SYNC_MESSAGE_ROUTED2_1(ViewHostMsg_CookiesEnabled, | 1358 IPC_SYNC_MESSAGE_ROUTED2_1(ViewHostMsg_CookiesEnabled, |
1359 GURL /* url */, | 1359 GURL /* url */, |
1360 GURL /* first_party_for_cookies */, | 1360 GURL /* first_party_for_cookies */, |
1361 bool /* cookies_enabled */) | 1361 bool /* cookies_enabled */) |
1362 | 1362 |
1363 // Used to get the list of plugins | 1363 // Used to get the list of plugins |
1364 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetPlugins, | 1364 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetPlugins, |
1365 bool /* refresh*/, | 1365 bool /* refresh*/, |
1366 std::vector<WebPluginInfo> /* plugins */) | 1366 std::vector<webkit::npapi::WebPluginInfo> /* plugins */) |
1367 | 1367 |
1368 // Return information about a plugin for the given URL and MIME | 1368 // Return information about a plugin for the given URL and MIME |
1369 // type. If there is no matching plugin, |found| is false. If | 1369 // type. If there is no matching plugin, |found| is false. If |
1370 // |enabled| in the WebPluginInfo struct is false, the plug-in is | 1370 // |enabled| in the WebPluginInfo struct is false, the plug-in is |
1371 // treated as if it was not installed at all. | 1371 // treated as if it was not installed at all. |
1372 // | 1372 // |
1373 // If |setting| is set to CONTENT_SETTING_BLOCK, the plug-in is | 1373 // If |setting| is set to CONTENT_SETTING_BLOCK, the plug-in is |
1374 // blocked by the content settings for |policy_url|. It still | 1374 // blocked by the content settings for |policy_url|. It still |
1375 // appears in navigator.plugins in Javascript though, and can be | 1375 // appears in navigator.plugins in Javascript though, and can be |
1376 // loaded via click-to-play. | 1376 // loaded via click-to-play. |
1377 // | 1377 // |
1378 // If |setting| is set to CONTENT_SETTING_ALLOW, the domain is | 1378 // If |setting| is set to CONTENT_SETTING_ALLOW, the domain is |
1379 // explicitly white-listed for the plug-in, or the user has chosen | 1379 // explicitly white-listed for the plug-in, or the user has chosen |
1380 // not to block nonsandboxed plugins. | 1380 // not to block nonsandboxed plugins. |
1381 // | 1381 // |
1382 // If |setting| is set to CONTENT_SETTING_DEFAULT, the plug-in is | 1382 // If |setting| is set to CONTENT_SETTING_DEFAULT, the plug-in is |
1383 // neither blocked nor white-listed, which means that it's allowed | 1383 // neither blocked nor white-listed, which means that it's allowed |
1384 // by default and can still be blocked if it's non-sandboxed. | 1384 // by default and can still be blocked if it's non-sandboxed. |
1385 // | 1385 // |
1386 // |actual_mime_type| is the actual mime type supported by the | 1386 // |actual_mime_type| is the actual mime type supported by the |
1387 // plugin found that match the URL given (one for each item in | 1387 // plugin found that match the URL given (one for each item in |
1388 // |info|). | 1388 // |info|). |
1389 IPC_SYNC_MESSAGE_CONTROL3_4(ViewHostMsg_GetPluginInfo, | 1389 IPC_SYNC_MESSAGE_CONTROL3_4(ViewHostMsg_GetPluginInfo, |
1390 GURL /* url */, | 1390 GURL /* url */, |
1391 GURL /* policy_url */, | 1391 GURL /* policy_url */, |
1392 std::string /* mime_type */, | 1392 std::string /* mime_type */, |
1393 bool /* found */, | 1393 bool /* found */, |
1394 WebPluginInfo /* plugin info */, | 1394 webkit::npapi::WebPluginInfo /* plugin info */, |
1395 ContentSetting /* setting */, | 1395 ContentSetting /* setting */, |
1396 std::string /* actual_mime_type */) | 1396 std::string /* actual_mime_type */) |
1397 | 1397 |
1398 // Requests spellcheck for a word. | 1398 // Requests spellcheck for a word. |
1399 IPC_SYNC_MESSAGE_ROUTED2_2(ViewHostMsg_SpellCheck, | 1399 IPC_SYNC_MESSAGE_ROUTED2_2(ViewHostMsg_SpellCheck, |
1400 string16 /* word to check */, | 1400 string16 /* word to check */, |
1401 int /* document tag*/, | 1401 int /* document tag*/, |
1402 int /* misspell location */, | 1402 int /* misspell location */, |
1403 int /* misspell length */) | 1403 int /* misspell length */) |
1404 | 1404 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1528 std::string /* target */) | 1528 std::string /* target */) |
1529 | 1529 |
1530 // A renderer sends this to the browser process when it wants to | 1530 // A renderer sends this to the browser process when it wants to |
1531 // create a plugin. The browser will create the plugin process if | 1531 // create a plugin. The browser will create the plugin process if |
1532 // necessary, and will return a handle to the channel on success. | 1532 // necessary, and will return a handle to the channel on success. |
1533 // On error an empty string is returned. | 1533 // On error an empty string is returned. |
1534 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_OpenChannelToPlugin, | 1534 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_OpenChannelToPlugin, |
1535 GURL /* url */, | 1535 GURL /* url */, |
1536 std::string /* mime_type */, | 1536 std::string /* mime_type */, |
1537 IPC::ChannelHandle /* channel_handle */, | 1537 IPC::ChannelHandle /* channel_handle */, |
1538 WebPluginInfo /* info */) | 1538 webkit::npapi::WebPluginInfo /* info */) |
1539 | 1539 |
1540 // A renderer sends this to the browser process when it wants to | 1540 // A renderer sends this to the browser process when it wants to |
1541 // create a pepper plugin. The browser will create the plugin process if | 1541 // create a pepper plugin. The browser will create the plugin process if |
1542 // necessary, and will return a handle to the channel on success. | 1542 // necessary, and will return a handle to the channel on success. |
1543 // On error an empty string is returned. | 1543 // On error an empty string is returned. |
1544 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_OpenChannelToPepperPlugin, | 1544 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_OpenChannelToPepperPlugin, |
1545 FilePath /* path */, | 1545 FilePath /* path */, |
1546 base::ProcessHandle /* plugin_process_handle */, | 1546 base::ProcessHandle /* plugin_process_handle */, |
1547 IPC::ChannelHandle /* handle to channel */) | 1547 IPC::ChannelHandle /* handle to channel */) |
1548 | 1548 |
(...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2623 // to ViewMsg_ScriptEvalRequest. The result has the value returned by the | 2623 // to ViewMsg_ScriptEvalRequest. The result has the value returned by the |
2624 // script as it's only element, one of Null, Boolean, Integer, Real, Date, or | 2624 // script as it's only element, one of Null, Boolean, Integer, Real, Date, or |
2625 // String. | 2625 // String. |
2626 IPC_MESSAGE_ROUTED2(ViewHostMsg_ScriptEvalResponse, | 2626 IPC_MESSAGE_ROUTED2(ViewHostMsg_ScriptEvalResponse, |
2627 int /* id */, | 2627 int /* id */, |
2628 ListValue /* result */) | 2628 ListValue /* result */) |
2629 | 2629 |
2630 // Updates the content restrictions, i.e. to disable print/copy. | 2630 // Updates the content restrictions, i.e. to disable print/copy. |
2631 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateContentRestrictions, | 2631 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateContentRestrictions, |
2632 int /* restrictions */) | 2632 int /* restrictions */) |
OLD | NEW |