| 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 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 // --in-process-webgl. | 714 // --in-process-webgl. |
| 715 switches::kUseGL, | 715 switches::kUseGL, |
| 716 switches::kDisableAcceleratedCompositing, | 716 switches::kDisableAcceleratedCompositing, |
| 717 #if defined(OS_MACOSX) | 717 #if defined(OS_MACOSX) |
| 718 // Allow this to be set when invoking the browser and relayed along. | 718 // Allow this to be set when invoking the browser and relayed along. |
| 719 switches::kEnableSandboxLogging, | 719 switches::kEnableSandboxLogging, |
| 720 #endif | 720 #endif |
| 721 switches::kRemoteShellPort, | 721 switches::kRemoteShellPort, |
| 722 switches::kEnablePepperTesting, | 722 switches::kEnablePepperTesting, |
| 723 switches::kAllowOutdatedPlugins, | 723 switches::kAllowOutdatedPlugins, |
| 724 switches::kNewChromeUISecurityModel, | |
| 725 switches::kEnableRemoting, | 724 switches::kEnableRemoting, |
| 726 switches::kEnableClickToPlay, | 725 switches::kEnableClickToPlay, |
| 727 switches::kEnableResourceContentSettings, | 726 switches::kEnableResourceContentSettings, |
| 728 switches::kEnableAcceleratedDecoding, | 727 switches::kEnableAcceleratedDecoding, |
| 729 switches::kDisableFileSystem, | 728 switches::kDisableFileSystem, |
| 730 switches::kPpapiOutOfProcess, | 729 switches::kPpapiOutOfProcess, |
| 731 switches::kEnablePrintPreview, | 730 switches::kEnablePrintPreview, |
| 732 switches::kEnableCrxlessWebApps, | 731 switches::kEnableCrxlessWebApps, |
| 733 switches::kDisable3DAPIs, | 732 switches::kDisable3DAPIs, |
| 734 switches::kEnableInBrowserThumbnailing, | 733 switches::kEnableInBrowserThumbnailing, |
| (...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1292 IPC::PlatformFileForTransit file; | 1291 IPC::PlatformFileForTransit file; |
| 1293 #if defined(OS_POSIX) | 1292 #if defined(OS_POSIX) |
| 1294 file = base::FileDescriptor(model_file, false); | 1293 file = base::FileDescriptor(model_file, false); |
| 1295 #elif defined(OS_WIN) | 1294 #elif defined(OS_WIN) |
| 1296 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, | 1295 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, |
| 1297 false, DUPLICATE_SAME_ACCESS); | 1296 false, DUPLICATE_SAME_ACCESS); |
| 1298 #endif | 1297 #endif |
| 1299 Send(new ViewMsg_SetPhishingModel(file)); | 1298 Send(new ViewMsg_SetPhishingModel(file)); |
| 1300 } | 1299 } |
| 1301 } | 1300 } |
| OLD | NEW |