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 <map> | 6 #include <map> |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 // In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows | 496 // In contrast to ViewHostMsg_GetPluginInfo in content/, this IPC call knows |
497 // about specific reasons why a plug-in can't be used, for example because it's | 497 // about specific reasons why a plug-in can't be used, for example because it's |
498 // disabled. | 498 // disabled. |
499 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo, | 499 IPC_SYNC_MESSAGE_CONTROL4_1(ChromeViewHostMsg_GetPluginInfo, |
500 int /* render_view_id */, | 500 int /* render_view_id */, |
501 GURL /* url */, | 501 GURL /* url */, |
502 GURL /* top origin url */, | 502 GURL /* top origin url */, |
503 std::string /* mime_type */, | 503 std::string /* mime_type */, |
504 ChromeViewHostMsg_GetPluginInfo_Output /* output */) | 504 ChromeViewHostMsg_GetPluginInfo_Output /* output */) |
505 | 505 |
| 506 // Returns whether any internal plugin supporting |mime_type| is registered |
| 507 // Does not determine whether the plugin can actually be instantiated |
| 508 // (e.g. whether it is allowed or has all its dependencies). |
| 509 IPC_SYNC_MESSAGE_CONTROL1_1( |
| 510 ChromeViewHostMsg_IsInternalPluginRegisteredForMimeType, |
| 511 std::string /* mime_type */, |
| 512 bool /* registered */) |
| 513 |
506 #if defined(ENABLE_PLUGIN_INSTALLATION) | 514 #if defined(ENABLE_PLUGIN_INSTALLATION) |
507 // Tells the browser to search for a plug-in that can handle the given MIME | 515 // Tells the browser to search for a plug-in that can handle the given MIME |
508 // type. The result will be sent asynchronously to the routing ID | 516 // type. The result will be sent asynchronously to the routing ID |
509 // |placeholder_id|. | 517 // |placeholder_id|. |
510 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FindMissingPlugin, | 518 IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_FindMissingPlugin, |
511 int /* placeholder_id */, | 519 int /* placeholder_id */, |
512 std::string /* mime_type */) | 520 std::string /* mime_type */) |
513 | 521 |
514 // Notifies the browser that a missing plug-in placeholder has been removed, so | 522 // Notifies the browser that a missing plug-in placeholder has been removed, so |
515 // the corresponding PluginPlaceholderHost can be deleted. | 523 // the corresponding PluginPlaceholderHost can be deleted. |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
752 int /* page_id */, | 760 int /* page_id */, |
753 bool /* supported */) | 761 bool /* supported */) |
754 | 762 |
755 // Tells listeners that a detailed message was reported to the console by | 763 // Tells listeners that a detailed message was reported to the console by |
756 // WebKit. | 764 // WebKit. |
757 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DetailedConsoleMessageAdded, | 765 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DetailedConsoleMessageAdded, |
758 string16 /* message */, | 766 string16 /* message */, |
759 string16 /* source */, | 767 string16 /* source */, |
760 extensions::StackTrace /* stack trace */, | 768 extensions::StackTrace /* stack trace */, |
761 int32 /* severity level */) | 769 int32 /* severity level */) |
OLD | NEW |