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 1347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1358 // Used to delete cookie for the given URL and name | 1358 // Used to delete cookie for the given URL and name |
1359 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_DeleteCookie, | 1359 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_DeleteCookie, |
1360 GURL /* url */, | 1360 GURL /* url */, |
1361 std::string /* cookie_name */) | 1361 std::string /* cookie_name */) |
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<WebPluginInfo> /* plugins */) |
1367 | 1367 |
1368 // Return information about a plugin for the given URL and MIME type. If there | 1368 // Return information about a plugin for the given URL and MIME |
1369 // is no matching plugin, |found| is set to false. | 1369 // type. If there is no matching plugin, |info| is an empty vector. |
1370 // If |enabled| in the WebPluginInfo struct is false, the plug-in is basically | 1370 // If |enabled| in the WebPluginInfo struct is false, the plug-in is |
1371 // treated as if it was not installed at all. | 1371 // basically treated as if it was not installed at all. |
1372 // If |setting| is set to CONTENT_SETTING_BLOCK, the plug-in is blocked by the | 1372 // |settings| has an entry for each item in |info|. |
1373 // content settings for |policy_url|. It still appears in navigator.plugins in | 1373 // If the corresponding |settings| array element is set to |
1374 // Javascript though, and can be loaded via click-to-play. | 1374 // CONTENT_SETTING_BLOCK, the plug-in is blocked by the content |
1375 // If |setting| is set to CONTENT_SETTING_ALLOW, the domain is explicitly | 1375 // settings for |policy_url|. It still appears in navigator.plugins |
1376 // white-listed for the plug-in, or the user has chosen not to block | 1376 // in Javascript though, and can be loaded via click-to-play. |
1377 // nonsandboxed plugins. | 1377 // If the corresponding |settings| array element is set to |
1378 // If |setting| is set to CONTENT_SETTING_DEFAULT, the plug-in is neither | 1378 // CONTENT_SETTING_ALLOW, the domain is explicitly white-listed for |
1379 // blocked nor white-listed, which means that it's allowed by default and | 1379 // the plug-in, or the user has chosen not to block nonsandboxed |
1380 // can still be blocked if it's non-sandboxed. | 1380 // plugins. |
1381 IPC_SYNC_MESSAGE_CONTROL3_4(ViewHostMsg_GetPluginInfo, | 1381 // If the corresponding |settings| array element is set to |
| 1382 // CONTENT_SETTING_DEFAULT, the plug-in is neither blocked nor |
| 1383 // white-listed, which means that it's allowed by default and can |
| 1384 // still be blocked if it's non-sandboxed. |
| 1385 // |actual_mime_types| is a list of actual mime types supported by |
| 1386 // each plugin found that match the URL given (one for each item in |info|). |
| 1387 IPC_SYNC_MESSAGE_CONTROL3_3(ViewHostMsg_GetPluginInfoArray, |
1382 GURL /* url */, | 1388 GURL /* url */, |
1383 GURL /* policy_url */, | 1389 GURL /* policy_url */, |
1384 std::string /* mime_type */, | 1390 std::string /* mime_type */, |
1385 bool /* found */, | 1391 std::vector<WebPluginInfo> /* plugin info */, |
1386 WebPluginInfo /* plugin info */, | 1392 std::vector<ContentSetting> /* settings */, |
1387 ContentSetting /* setting */, | 1393 std::vector<std::string> /* actual_mime_types */) |
1388 std::string /* actual_mime_type */) | |
1389 | 1394 |
1390 // Requests spellcheck for a word. | 1395 // Requests spellcheck for a word. |
1391 IPC_SYNC_MESSAGE_ROUTED2_2(ViewHostMsg_SpellCheck, | 1396 IPC_SYNC_MESSAGE_ROUTED2_2(ViewHostMsg_SpellCheck, |
1392 string16 /* word to check */, | 1397 string16 /* word to check */, |
1393 int /* document tag*/, | 1398 int /* document tag*/, |
1394 int /* misspell location */, | 1399 int /* misspell location */, |
1395 int /* misspell length */) | 1400 int /* misspell length */) |
1396 | 1401 |
1397 // Asks the browser for a unique document tag. | 1402 // Asks the browser for a unique document tag. |
1398 IPC_SYNC_MESSAGE_ROUTED0_1(ViewHostMsg_GetDocumentTag, | 1403 IPC_SYNC_MESSAGE_ROUTED0_1(ViewHostMsg_GetDocumentTag, |
(...skipping 1549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2948 SkBitmap /* thumbnail */) | 2953 SkBitmap /* thumbnail */) |
2949 | 2954 |
2950 // Response from ViewMsg_ScriptEvalRequest. The ID is the parameter supplied | 2955 // Response from ViewMsg_ScriptEvalRequest. The ID is the parameter supplied |
2951 // to ViewMsg_ScriptEvalRequest. The result is true if the script evaluated | 2956 // to ViewMsg_ScriptEvalRequest. The result is true if the script evaluated |
2952 // to the boolean result true, false otherwise. | 2957 // to the boolean result true, false otherwise. |
2953 IPC_MESSAGE_ROUTED2(ViewHostMsg_ScriptEvalResponse, | 2958 IPC_MESSAGE_ROUTED2(ViewHostMsg_ScriptEvalResponse, |
2954 int /* id */, | 2959 int /* id */, |
2955 bool /* result */) | 2960 bool /* result */) |
2956 | 2961 |
2957 IPC_END_MESSAGES(ViewHost) | 2962 IPC_END_MESSAGES(ViewHost) |
OLD | NEW |