Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(851)

Side by Side Diff: chrome/common/render_messages.h

Issue 11066043: Block NPAPI plug-ins in Metro mode instead of not loading them at all. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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,
cpu_(ooo_6.6-7.5) 2012/10/18 00:42:59 kNPAPINotSuported
Bernhard Bauer 2012/10/18 09:13:57 Done.
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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 478
478 // Tells the browser to open chrome://plugins in a new tab. We use a separate 479 // Tells the browser to open chrome://plugins in a new tab. We use a separate
479 // message because renderer processes aren't allowed to directly navigate to 480 // message because renderer processes aren't allowed to directly navigate to
480 // chrome:// URLs. 481 // chrome:// URLs.
481 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins) 482 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_OpenAboutPlugins)
482 483
483 // Tells the browser that there was an error loading a plug-in. 484 // Tells the browser that there was an error loading a plug-in.
484 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_CouldNotLoadPlugin, 485 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_CouldNotLoadPlugin,
485 FilePath /* plugin_path */) 486 FilePath /* plugin_path */)
486 487
488 #if defined(OS_WIN)
489 // Tells the browser to restart in Desktop mode.
490 IPC_MESSAGE_ROUTED0(ChromeViewHostMsg_RestartInDesktopMode)
cpu_(ooo_6.6-7.5) 2012/10/18 00:42:59 Lowly renderer telling the browser to restart? I a
Bernhard Bauer 2012/10/18 09:13:57 Urgh, good point. I'm not really sure what to do h
491 #endif
492
487 // Send a snapshot of the tab contents to the render host. 493 // Send a snapshot of the tab contents to the render host.
488 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_Snapshot, 494 IPC_MESSAGE_ROUTED1(ChromeViewHostMsg_Snapshot,
489 SkBitmap /* bitmap */) 495 SkBitmap /* bitmap */)
490 496
491 // A message for an external host. 497 // A message for an external host.
492 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_ForwardMessageToExternalHost, 498 IPC_MESSAGE_ROUTED3(ChromeViewHostMsg_ForwardMessageToExternalHost,
493 std::string /* message */, 499 std::string /* message */,
494 std::string /* origin */, 500 std::string /* origin */,
495 std::string /* target */) 501 std::string /* target */)
496 502
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 // previous SetCookie message to be processed. 653 // previous SetCookie message to be processed.
648 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, 654 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies,
649 GURL /* url */, 655 GURL /* url */,
650 GURL /* first_party_for_cookies */, 656 GURL /* first_party_for_cookies */,
651 std::string /* cookies */) 657 std::string /* cookies */)
652 658
653 // Provide the browser process with current renderer framerate. 659 // Provide the browser process with current renderer framerate.
654 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, 660 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS,
655 int /* routing id */, 661 int /* routing id */,
656 float /* frames per second */) 662 float /* frames per second */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698