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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 // This enum is inside a struct so that we can forward-declare the struct in | 53 // This enum is inside a struct so that we can forward-declare the struct in |
54 // others headers without having to include this one. | 54 // others headers without having to include this one. |
55 struct ChromeViewHostMsg_GetPluginInfo_Status { | 55 struct ChromeViewHostMsg_GetPluginInfo_Status { |
56 enum Value { | 56 enum Value { |
57 kAllowed, | 57 kAllowed, |
58 kBlocked, | 58 kBlocked, |
59 kClickToPlay, | 59 kClickToPlay, |
60 kDisabled, | 60 kDisabled, |
61 kNotFound, | 61 kNotFound, |
| 62 kNPAPINotSupported, |
62 kOutdatedBlocked, | 63 kOutdatedBlocked, |
63 kOutdatedDisallowed, | 64 kOutdatedDisallowed, |
64 kUnauthorized, | 65 kUnauthorized, |
65 }; | 66 }; |
66 | 67 |
67 ChromeViewHostMsg_GetPluginInfo_Status() : value(kAllowed) {} | 68 ChromeViewHostMsg_GetPluginInfo_Status() : value(kAllowed) {} |
68 | 69 |
69 Value value; | 70 Value value; |
70 }; | 71 }; |
71 | 72 |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 | 477 |
477 // Tells the browser to open chrome://plugins in a new tab. We use a separate | 478 // Tells the browser to open chrome://plugins in a new tab. We use a separate |
478 // message because renderer processes aren't allowed to directly navigate to | 479 // message because renderer processes aren't allowed to directly navigate to |
479 // chrome:// URLs. | 480 // chrome:// URLs. |
480 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins) | 481 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins) |
481 | 482 |
482 // Tells the browser that there was an error loading a plug-in. | 483 // Tells the browser that there was an error loading a plug-in. |
483 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_CouldNotLoadPlugin, | 484 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_CouldNotLoadPlugin, |
484 FilePath /* plugin_path */) | 485 FilePath /* plugin_path */) |
485 | 486 |
| 487 // Tells the browser that we blocked a plug-in because NPAPI is not supported. |
| 488 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_NPAPINotSupported, |
| 489 std::string /* identifer */) |
| 490 |
486 // Send a snapshot of the tab contents to the render host. | 491 // Send a snapshot of the tab contents to the render host. |
487 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_Snapshot, | 492 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_Snapshot, |
488 SkBitmap /* bitmap */) | 493 SkBitmap /* bitmap */) |
489 | 494 |
490 // A message for an external host. | 495 // A message for an external host. |
491 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_ForwardMessageToExternalHost, | 496 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_ForwardMessageToExternalHost, |
492 std::string /* message */, | 497 std::string /* message */, |
493 std::string /* origin */, | 498 std::string /* origin */, |
494 std::string /* target */) | 499 std::string /* target */) |
495 | 500 |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
648 // previous SetCookie message to be processed. | 653 // previous SetCookie message to be processed. |
649 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, | 654 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, |
650 GURL /* url */, | 655 GURL /* url */, |
651 GURL /* first_party_for_cookies */, | 656 GURL /* first_party_for_cookies */, |
652 std::string /* cookies */) | 657 std::string /* cookies */) |
653 | 658 |
654 // Provide the browser process with current renderer framerate. | 659 // Provide the browser process with current renderer framerate. |
655 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, | 660 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, |
656 int /* routing id */, | 661 int /* routing id */, |
657 float /* frames per second */) | 662 float /* frames per second */) |
OLD | NEW |