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

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

Issue 3348012: Enable webgl and accelerated compositing by default on all platforms. Removes... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/tab_contents/render_view_host_delegate_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 switches::kEnableVideoLayering, 553 switches::kEnableVideoLayering,
554 switches::kEnableVideoLogging, 554 switches::kEnableVideoLogging,
555 switches::kEnableTouch, 555 switches::kEnableTouch,
556 // We propagate the Chrome Frame command line here as well in case the 556 // We propagate the Chrome Frame command line here as well in case the
557 // renderer is not run in the sandbox. 557 // renderer is not run in the sandbox.
558 switches::kChromeFrame, 558 switches::kChromeFrame,
559 // We need to propagate this flag to determine whether to make the 559 // We need to propagate this flag to determine whether to make the
560 // WebGLArray constructors on the DOMWindow visible. This 560 // WebGLArray constructors on the DOMWindow visible. This
561 // information is needed very early during bringup. We prefer to 561 // information is needed very early during bringup. We prefer to
562 // use the WebPreferences to set this flag on a page-by-page basis. 562 // use the WebPreferences to set this flag on a page-by-page basis.
563 switches::kEnableExperimentalWebGL, 563 switches::kDisableExperimentalWebGL,
564 switches::kDisableGLSLTranslator, 564 switches::kDisableGLSLTranslator,
565 switches::kInProcessWebGL, 565 switches::kInProcessWebGL,
566 switches::kEnableAcceleratedCompositing, 566 switches::kDisableAcceleratedCompositing,
567 #if defined(OS_MACOSX) 567 #if defined(OS_MACOSX)
568 // Allow this to be set when invoking the browser and relayed along. 568 // Allow this to be set when invoking the browser and relayed along.
569 switches::kEnableSandboxLogging, 569 switches::kEnableSandboxLogging,
570 switches::kDisableFlashCoreAnimation, 570 switches::kDisableFlashCoreAnimation,
571 #endif 571 #endif
572 switches::kRemoteShellPort, 572 switches::kRemoteShellPort,
573 switches::kEnablePepperTesting, 573 switches::kEnablePepperTesting,
574 switches::kBlockNonSandboxedPlugins, 574 switches::kBlockNonSandboxedPlugins,
575 switches::kDisableOutdatedPlugins, 575 switches::kDisableOutdatedPlugins,
576 switches::kEnableRemoting, 576 switches::kEnableRemoting,
577 switches::kDisableClickToPlay, 577 switches::kDisableClickToPlay,
578 switches::kEnableResourceContentSettings, 578 switches::kEnableResourceContentSettings,
579 switches::kPrelaunchGpuProcess, 579 switches::kPrelaunchGpuProcess,
580 switches::kEnableAcceleratedCompositing,
581 switches::kEnableAcceleratedDecoding, 580 switches::kEnableAcceleratedDecoding,
582 switches::kEnableFileSystem, 581 switches::kEnableFileSystem,
583 }; 582 };
584 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, 583 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames,
585 arraysize(kSwitchNames)); 584 arraysize(kSwitchNames));
586 585
587 // Disable databases in incognito mode. 586 // Disable databases in incognito mode.
588 if (profile()->IsOffTheRecord() && 587 if (profile()->IsOffTheRecord() &&
589 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { 588 !browser_cmd.HasSwitch(switches::kDisableDatabases)) {
590 renderer_cmd->AppendSwitch(switches::kDisableDatabases); 589 renderer_cmd->AppendSwitch(switches::kDisableDatabases);
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
1075 IPC::InvalidPlatformFileForTransit(), 1074 IPC::InvalidPlatformFileForTransit(),
1076 std::vector<std::string>(), 1075 std::vector<std::string>(),
1077 std::string(), 1076 std::string(),
1078 false)); 1077 false));
1079 } 1078 }
1080 } 1079 }
1081 1080
1082 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) { 1081 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) {
1083 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable)); 1082 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable));
1084 } 1083 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/tab_contents/render_view_host_delegate_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698