| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/renderer_host/render_process_host_impl.h" | 8 #include "content/browser/renderer_host/render_process_host_impl.h" |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1071 switches::kMediaDrmEnableNonCompositing, | 1071 switches::kMediaDrmEnableNonCompositing, |
| 1072 switches::kNetworkCountryIso, | 1072 switches::kNetworkCountryIso, |
| 1073 #endif | 1073 #endif |
| 1074 #if defined(OS_MACOSX) | 1074 #if defined(OS_MACOSX) |
| 1075 // Allow this to be set when invoking the browser and relayed along. | 1075 // Allow this to be set when invoking the browser and relayed along. |
| 1076 switches::kEnableSandboxLogging, | 1076 switches::kEnableSandboxLogging, |
| 1077 #endif | 1077 #endif |
| 1078 #if defined(OS_POSIX) | 1078 #if defined(OS_POSIX) |
| 1079 switches::kChildCleanExit, | 1079 switches::kChildCleanExit, |
| 1080 #endif | 1080 #endif |
| 1081 #if defined(OS_WIN) | |
| 1082 switches::kEnableHighResolutionTime, | |
| 1083 #endif | |
| 1084 }; | 1081 }; |
| 1085 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, | 1082 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, |
| 1086 arraysize(kSwitchNames)); | 1083 arraysize(kSwitchNames)); |
| 1087 | 1084 |
| 1088 // Disable databases in incognito mode. | 1085 // Disable databases in incognito mode. |
| 1089 if (GetBrowserContext()->IsOffTheRecord() && | 1086 if (GetBrowserContext()->IsOffTheRecord() && |
| 1090 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { | 1087 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { |
| 1091 renderer_cmd->AppendSwitch(switches::kDisableDatabases); | 1088 renderer_cmd->AppendSwitch(switches::kDisableDatabases); |
| 1092 #if defined(OS_ANDROID) | 1089 #if defined(OS_ANDROID) |
| 1093 renderer_cmd->AppendSwitch(switches::kDisableMediaHistoryLogging); | 1090 renderer_cmd->AppendSwitch(switches::kDisableMediaHistoryLogging); |
| (...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1827 // Skip widgets in other processes. | 1824 // Skip widgets in other processes. |
| 1828 if (widget->GetProcess()->GetID() != GetID()) | 1825 if (widget->GetProcess()->GetID() != GetID()) |
| 1829 continue; | 1826 continue; |
| 1830 | 1827 |
| 1831 RenderViewHost* rvh = RenderViewHost::From(widget); | 1828 RenderViewHost* rvh = RenderViewHost::From(widget); |
| 1832 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1829 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
| 1833 } | 1830 } |
| 1834 } | 1831 } |
| 1835 | 1832 |
| 1836 } // namespace content | 1833 } // namespace content |
| OLD | NEW |