| OLD | NEW |
| 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 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 // --in-process-webgl. | 639 // --in-process-webgl. |
| 640 switches::kUseGL, | 640 switches::kUseGL, |
| 641 switches::kDisableAcceleratedCompositing, | 641 switches::kDisableAcceleratedCompositing, |
| 642 #if defined(OS_MACOSX) | 642 #if defined(OS_MACOSX) |
| 643 // Allow this to be set when invoking the browser and relayed along. | 643 // Allow this to be set when invoking the browser and relayed along. |
| 644 switches::kEnableSandboxLogging, | 644 switches::kEnableSandboxLogging, |
| 645 #endif | 645 #endif |
| 646 switches::kRemoteShellPort, | 646 switches::kRemoteShellPort, |
| 647 switches::kEnablePepperTesting, | 647 switches::kEnablePepperTesting, |
| 648 switches::kBlockNonSandboxedPlugins, | 648 switches::kBlockNonSandboxedPlugins, |
| 649 switches::kDisableOutdatedPlugins, | 649 switches::kBlockOutdatedPlugins, |
| 650 switches::kEnableRemoting, | 650 switches::kEnableRemoting, |
| 651 switches::kEnableClickToPlay, | 651 switches::kEnableClickToPlay, |
| 652 switches::kEnableResourceContentSettings, | 652 switches::kEnableResourceContentSettings, |
| 653 switches::kPrelaunchGpuProcess, | 653 switches::kPrelaunchGpuProcess, |
| 654 switches::kEnableAcceleratedDecoding, | 654 switches::kEnableAcceleratedDecoding, |
| 655 switches::kDisableFileSystem, | 655 switches::kDisableFileSystem, |
| 656 switches::kPpapiOutOfProcess, | 656 switches::kPpapiOutOfProcess, |
| 657 switches::kEnablePrintPreview, | 657 switches::kEnablePrintPreview, |
| 658 switches::kEnableCrxlessWebApps | 658 switches::kEnableCrxlessWebApps |
| 659 }; | 659 }; |
| (...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1246 IPC::PlatformFileForTransit file; | 1246 IPC::PlatformFileForTransit file; |
| 1247 #if defined(OS_POSIX) | 1247 #if defined(OS_POSIX) |
| 1248 file = base::FileDescriptor(model_file, false); | 1248 file = base::FileDescriptor(model_file, false); |
| 1249 #elif defined(OS_WIN) | 1249 #elif defined(OS_WIN) |
| 1250 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, | 1250 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, |
| 1251 false, DUPLICATE_SAME_ACCESS); | 1251 false, DUPLICATE_SAME_ACCESS); |
| 1252 #endif | 1252 #endif |
| 1253 Send(new ViewMsg_SetPhishingModel(file)); | 1253 Send(new ViewMsg_SetPhishingModel(file)); |
| 1254 } | 1254 } |
| 1255 } | 1255 } |
| OLD | NEW |