| OLD | NEW |
| 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 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 720 switches::kAllowOutdatedPlugins, | 720 switches::kAllowOutdatedPlugins, |
| 721 switches::kNewChromeUISecurityModel, | 721 switches::kNewChromeUISecurityModel, |
| 722 switches::kEnableRemoting, | 722 switches::kEnableRemoting, |
| 723 switches::kEnableClickToPlay, | 723 switches::kEnableClickToPlay, |
| 724 switches::kEnableResourceContentSettings, | 724 switches::kEnableResourceContentSettings, |
| 725 switches::kEnableAcceleratedDecoding, | 725 switches::kEnableAcceleratedDecoding, |
| 726 switches::kDisableFileSystem, | 726 switches::kDisableFileSystem, |
| 727 switches::kPpapiOutOfProcess, | 727 switches::kPpapiOutOfProcess, |
| 728 switches::kEnablePrintPreview, | 728 switches::kEnablePrintPreview, |
| 729 switches::kEnableCrxlessWebApps, | 729 switches::kEnableCrxlessWebApps, |
| 730 switches::kDisable3DAPIs | 730 switches::kDisable3DAPIs, |
| 731 switches::kEnableInBrowserThumbnailing, |
| 731 }; | 732 }; |
| 732 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, | 733 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, |
| 733 arraysize(kSwitchNames)); | 734 arraysize(kSwitchNames)); |
| 734 | 735 |
| 735 // Disable databases in incognito mode. | 736 // Disable databases in incognito mode. |
| 736 if (profile()->IsOffTheRecord() && | 737 if (profile()->IsOffTheRecord() && |
| 737 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { | 738 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { |
| 738 renderer_cmd->AppendSwitch(switches::kDisableDatabases); | 739 renderer_cmd->AppendSwitch(switches::kDisableDatabases); |
| 739 } | 740 } |
| 740 | 741 |
| (...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1281 IPC::PlatformFileForTransit file; | 1282 IPC::PlatformFileForTransit file; |
| 1282 #if defined(OS_POSIX) | 1283 #if defined(OS_POSIX) |
| 1283 file = base::FileDescriptor(model_file, false); | 1284 file = base::FileDescriptor(model_file, false); |
| 1284 #elif defined(OS_WIN) | 1285 #elif defined(OS_WIN) |
| 1285 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, | 1286 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, |
| 1286 false, DUPLICATE_SAME_ACCESS); | 1287 false, DUPLICATE_SAME_ACCESS); |
| 1287 #endif | 1288 #endif |
| 1288 Send(new ViewMsg_SetPhishingModel(file)); | 1289 Send(new ViewMsg_SetPhishingModel(file)); |
| 1289 } | 1290 } |
| 1290 } | 1291 } |
| OLD | NEW |