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 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
681 // This flag needs to be propagated to the renderer process for | 681 // This flag needs to be propagated to the renderer process for |
682 // --in-process-webgl. | 682 // --in-process-webgl. |
683 switches::kUseGL, | 683 switches::kUseGL, |
684 switches::kDisableAcceleratedCompositing, | 684 switches::kDisableAcceleratedCompositing, |
685 #if defined(OS_MACOSX) | 685 #if defined(OS_MACOSX) |
686 // Allow this to be set when invoking the browser and relayed along. | 686 // Allow this to be set when invoking the browser and relayed along. |
687 switches::kEnableSandboxLogging, | 687 switches::kEnableSandboxLogging, |
688 #endif | 688 #endif |
689 switches::kRemoteShellPort, | 689 switches::kRemoteShellPort, |
690 switches::kEnablePepperTesting, | 690 switches::kEnablePepperTesting, |
691 switches::kBlockNonSandboxedPlugins, | 691 switches::kAllowOutdatedPlugins, |
692 switches::kBlockOutdatedPlugins, | |
693 switches::kEnableRemoting, | 692 switches::kEnableRemoting, |
694 switches::kEnableClickToPlay, | 693 switches::kEnableClickToPlay, |
695 switches::kEnableResourceContentSettings, | 694 switches::kEnableResourceContentSettings, |
696 switches::kPrelaunchGpuProcess, | 695 switches::kPrelaunchGpuProcess, |
697 switches::kEnableAcceleratedDecoding, | 696 switches::kEnableAcceleratedDecoding, |
698 switches::kDisableFileSystem, | 697 switches::kDisableFileSystem, |
699 switches::kPpapiOutOfProcess, | 698 switches::kPpapiOutOfProcess, |
700 switches::kEnablePrintPreview, | 699 switches::kEnablePrintPreview, |
701 switches::kEnableCrxlessWebApps | 700 switches::kEnableCrxlessWebApps |
702 }; | 701 }; |
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1289 IPC::PlatformFileForTransit file; | 1288 IPC::PlatformFileForTransit file; |
1290 #if defined(OS_POSIX) | 1289 #if defined(OS_POSIX) |
1291 file = base::FileDescriptor(model_file, false); | 1290 file = base::FileDescriptor(model_file, false); |
1292 #elif defined(OS_WIN) | 1291 #elif defined(OS_WIN) |
1293 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, | 1292 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, |
1294 false, DUPLICATE_SAME_ACCESS); | 1293 false, DUPLICATE_SAME_ACCESS); |
1295 #endif | 1294 #endif |
1296 Send(new ViewMsg_SetPhishingModel(file)); | 1295 Send(new ViewMsg_SetPhishingModel(file)); |
1297 } | 1296 } |
1298 } | 1297 } |
OLD | NEW |