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

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

Issue 6294012: Pass --enable-webaudio command line from browser to renderer process.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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 | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 714 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 switches::kEnableRemoting, 725 switches::kEnableRemoting,
726 switches::kEnableClickToPlay, 726 switches::kEnableClickToPlay,
727 switches::kEnableResourceContentSettings, 727 switches::kEnableResourceContentSettings,
728 switches::kEnableAcceleratedDecoding, 728 switches::kEnableAcceleratedDecoding,
729 switches::kDisableFileSystem, 729 switches::kDisableFileSystem,
730 switches::kPpapiOutOfProcess, 730 switches::kPpapiOutOfProcess,
731 switches::kEnablePrintPreview, 731 switches::kEnablePrintPreview,
732 switches::kEnableCrxlessWebApps, 732 switches::kEnableCrxlessWebApps,
733 switches::kDisable3DAPIs, 733 switches::kDisable3DAPIs,
734 switches::kEnableInBrowserThumbnailing, 734 switches::kEnableInBrowserThumbnailing,
735 switches::kEnableWebAudio,
735 }; 736 };
736 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, 737 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames,
737 arraysize(kSwitchNames)); 738 arraysize(kSwitchNames));
738 739
739 // Disable databases in incognito mode. 740 // Disable databases in incognito mode.
740 if (profile()->IsOffTheRecord() && 741 if (profile()->IsOffTheRecord() &&
741 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { 742 !browser_cmd.HasSwitch(switches::kDisableDatabases)) {
742 renderer_cmd->AppendSwitch(switches::kDisableDatabases); 743 renderer_cmd->AppendSwitch(switches::kDisableDatabases);
743 } 744 }
744 745
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
1291 IPC::PlatformFileForTransit file; 1292 IPC::PlatformFileForTransit file;
1292 #if defined(OS_POSIX) 1293 #if defined(OS_POSIX)
1293 file = base::FileDescriptor(model_file, false); 1294 file = base::FileDescriptor(model_file, false);
1294 #elif defined(OS_WIN) 1295 #elif defined(OS_WIN)
1295 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, 1296 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0,
1296 false, DUPLICATE_SAME_ACCESS); 1297 false, DUPLICATE_SAME_ACCESS);
1297 #endif 1298 #endif
1298 Send(new ViewMsg_SetPhishingModel(file)); 1299 Send(new ViewMsg_SetPhishingModel(file));
1299 } 1300 }
1300 } 1301 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698