| 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 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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::kAlwaysAuthorizePlugins, |
| 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 Loading... |
| 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 } |
| OLD | NEW |