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