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

Side by Side Diff: chrome/browser/renderer_host/browser_render_process_host.cc

Issue 3040034: Block non-sandboxed plugins. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: fix indentation; sync Created 10 years, 4 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
OLDNEW
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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "chrome/browser/renderer_host/browser_render_process_host.h" 8 #include "chrome/browser/renderer_host/browser_render_process_host.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 switches::kEnableGLSLTranslator, 566 switches::kEnableGLSLTranslator,
567 switches::kInProcessWebGL, 567 switches::kInProcessWebGL,
568 switches::kEnableAcceleratedCompositing, 568 switches::kEnableAcceleratedCompositing,
569 #if defined(OS_MACOSX) 569 #if defined(OS_MACOSX)
570 // Allow this to be set when invoking the browser and relayed along. 570 // Allow this to be set when invoking the browser and relayed along.
571 switches::kEnableSandboxLogging, 571 switches::kEnableSandboxLogging,
572 switches::kDisableFlashCoreAnimation, 572 switches::kDisableFlashCoreAnimation,
573 #endif 573 #endif
574 switches::kRemoteShellPort, 574 switches::kRemoteShellPort,
575 switches::kEnablePepperTesting, 575 switches::kEnablePepperTesting,
576 switches::kBlockNonSandboxedPlugins,
576 switches::kEnableRemoting, 577 switches::kEnableRemoting,
577 switches::kEnableClickToPlay, 578 switches::kEnableClickToPlay,
578 switches::kPrelaunchGpuProcess, 579 switches::kPrelaunchGpuProcess,
579 }; 580 };
580 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, 581 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames,
581 arraysize(kSwitchNames)); 582 arraysize(kSwitchNames));
582 583
583 // Disable databases in incognito mode. 584 // Disable databases in incognito mode.
584 if (profile()->IsOffTheRecord() && 585 if (profile()->IsOffTheRecord() &&
585 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { 586 !browser_cmd.HasSwitch(switches::kDisableDatabases)) {
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
1064 IPC::InvalidPlatformFileForTransit(), 1065 IPC::InvalidPlatformFileForTransit(),
1065 std::vector<std::string>(), 1066 std::vector<std::string>(),
1066 std::string(), 1067 std::string(),
1067 false)); 1068 false));
1068 } 1069 }
1069 } 1070 }
1070 1071
1071 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) { 1072 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) {
1072 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable)); 1073 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable));
1073 } 1074 }
OLDNEW
« no previous file with comments | « chrome/browser/blocked_plugin_manager.cc ('k') | chrome/browser/renderer_host/render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698