OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Multiply-included file, no traditional include guard. | 5 // Multiply-included file, no traditional include guard. |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 #include <map> | 7 #include <map> |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 // about specific reasons why a plug-in can't be used, for example because it's | 423 // about specific reasons why a plug-in can't be used, for example because it's |
424 // disabled. | 424 // disabled. |
425 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo, | 425 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo, |
426 int /* render_frame_id */, | 426 int /* render_frame_id */, |
427 GURL /* url */, | 427 GURL /* url */, |
428 GURL /* top origin url */, | 428 GURL /* top origin url */, |
429 std::string /* mime_type */, | 429 std::string /* mime_type */, |
430 ChromeViewHostMsg_GetPluginInfo_Output /* output */) | 430 ChromeViewHostMsg_GetPluginInfo_Output /* output */) |
431 | 431 |
432 #if defined(ENABLE_PEPPER_CDMS) | 432 #if defined(ENABLE_PEPPER_CDMS) |
433 // Returns whether any internal plugin supporting |mime_type| is registered | 433 // Returns whether any internal plugin supporting |mime_type| is registered and |
434 // Does not determine whether the plugin can actually be instantiated | 434 // enabled. Does not determine whether the plugin can actually be instantiated |
435 // (e.g. whether it is allowed or has all its dependencies). | 435 // (e.g. whether it has all its dependencies). |
436 // When the returned *|is_registered| is true, |additional_param_names| and | 436 // When the returned *|is_available| is true, |additional_param_names| and |
437 // |additional_param_values| contain the name-value pairs, if any, specified | 437 // |additional_param_values| contain the name-value pairs, if any, specified |
438 // for the *first* plugin found that is registered for |mime_type|. | 438 // for the *first* non-disabled plugin found that is registered for |mime_type|. |
439 IPC_SYNC_MESSAGE_CONTROL1_3( | 439 IPC_SYNC_MESSAGE_CONTROL1_3( |
440 ChromeViewHostMsg_IsInternalPluginRegisteredForMimeType, | 440 ChromeViewHostMsg_IsInternalPluginAvailableForMimeType, |
441 std::string /* mime_type */, | 441 std::string /* mime_type */, |
442 bool /* registered */, | 442 bool /* is_available */, |
443 std::vector<base::string16> /* additional_param_names */, | 443 std::vector<base::string16> /* additional_param_names */, |
444 std::vector<base::string16> /* additional_param_values */) | 444 std::vector<base::string16> /* additional_param_values */) |
445 #endif | 445 #endif |
446 | 446 |
447 #if defined(ENABLE_PLUGIN_INSTALLATION) | 447 #if defined(ENABLE_PLUGIN_INSTALLATION) |
448 // Tells the browser to search for a plug-in that can handle the given MIME | 448 // Tells the browser to search for a plug-in that can handle the given MIME |
449 // type. The result will be sent asynchronously to the routing ID | 449 // type. The result will be sent asynchronously to the routing ID |
450 // |placeholder_id|. | 450 // |placeholder_id|. |
451 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FindMissingPlugin, | 451 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FindMissingPlugin, |
452 int /* placeholder_id */, | 452 int /* placeholder_id */, |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
668 // process so that they can be assigned to an Instant renderer. | 668 // process so that they can be assigned to an Instant renderer. |
669 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs, | 669 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs, |
670 std::vector<GURL> /* search_urls */, | 670 std::vector<GURL> /* search_urls */, |
671 GURL /* new_tab_page_url */) | 671 GURL /* new_tab_page_url */) |
672 | 672 |
673 #if defined(ENABLE_PLUGINS) | 673 #if defined(ENABLE_PLUGINS) |
674 // Sent by the renderer to check if crash reporting is enabled. | 674 // Sent by the renderer to check if crash reporting is enabled. |
675 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled, | 675 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled, |
676 bool /* enabled */) | 676 bool /* enabled */) |
677 #endif | 677 #endif |
OLD | NEW |