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 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 switches::kSimpleDataSource, | 734 switches::kSimpleDataSource, |
735 switches::kTestSandbox, | 735 switches::kTestSandbox, |
736 // This flag needs to be propagated to the renderer process for | 736 // This flag needs to be propagated to the renderer process for |
737 // --in-process-webgl. | 737 // --in-process-webgl. |
738 switches::kUseGL, | 738 switches::kUseGL, |
739 switches::kUseLowFragHeapCrt, | 739 switches::kUseLowFragHeapCrt, |
740 switches::kUserAgent, | 740 switches::kUserAgent, |
741 switches::kV, | 741 switches::kV, |
742 switches::kVideoThreads, | 742 switches::kVideoThreads, |
743 switches::kVModule, | 743 switches::kVModule, |
| 744 switches::kWebCoreLogChannels, |
744 }; | 745 }; |
745 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, | 746 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, |
746 arraysize(kSwitchNames)); | 747 arraysize(kSwitchNames)); |
747 | 748 |
748 // Disable databases in incognito mode. | 749 // Disable databases in incognito mode. |
749 if (profile()->IsOffTheRecord() && | 750 if (profile()->IsOffTheRecord() && |
750 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { | 751 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { |
751 renderer_cmd->AppendSwitch(switches::kDisableDatabases); | 752 renderer_cmd->AppendSwitch(switches::kDisableDatabases); |
752 } | 753 } |
753 | 754 |
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1277 IPC::PlatformFileForTransit file; | 1278 IPC::PlatformFileForTransit file; |
1278 #if defined(OS_POSIX) | 1279 #if defined(OS_POSIX) |
1279 file = base::FileDescriptor(model_file, false); | 1280 file = base::FileDescriptor(model_file, false); |
1280 #elif defined(OS_WIN) | 1281 #elif defined(OS_WIN) |
1281 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, | 1282 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, |
1282 false, DUPLICATE_SAME_ACCESS); | 1283 false, DUPLICATE_SAME_ACCESS); |
1283 #endif | 1284 #endif |
1284 Send(new ViewMsg_SetPhishingModel(file)); | 1285 Send(new ViewMsg_SetPhishingModel(file)); |
1285 } | 1286 } |
1286 } | 1287 } |
OLD | NEW |