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 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
721 switches::kAllowOutdatedPlugins, | 721 switches::kAllowOutdatedPlugins, |
722 switches::kNewChromeUISecurityModel, | 722 switches::kNewChromeUISecurityModel, |
723 switches::kEnableRemoting, | 723 switches::kEnableRemoting, |
724 switches::kEnableClickToPlay, | 724 switches::kEnableClickToPlay, |
725 switches::kEnableResourceContentSettings, | 725 switches::kEnableResourceContentSettings, |
726 switches::kEnableAcceleratedDecoding, | 726 switches::kEnableAcceleratedDecoding, |
727 switches::kDisableFileSystem, | 727 switches::kDisableFileSystem, |
728 switches::kPpapiOutOfProcess, | 728 switches::kPpapiOutOfProcess, |
729 switches::kEnablePrintPreview, | 729 switches::kEnablePrintPreview, |
730 switches::kEnableCrxlessWebApps, | 730 switches::kEnableCrxlessWebApps, |
731 switches::kDisable3DAPIs | 731 switches::kDisable3DAPIs, |
| 732 switches::kEnableInBrowserThumbnailing, |
732 }; | 733 }; |
733 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, | 734 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, |
734 arraysize(kSwitchNames)); | 735 arraysize(kSwitchNames)); |
735 | 736 |
736 // Disable databases in incognito mode. | 737 // Disable databases in incognito mode. |
737 if (profile()->IsOffTheRecord() && | 738 if (profile()->IsOffTheRecord() && |
738 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { | 739 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { |
739 renderer_cmd->AppendSwitch(switches::kDisableDatabases); | 740 renderer_cmd->AppendSwitch(switches::kDisableDatabases); |
740 } | 741 } |
741 | 742 |
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1288 IPC::PlatformFileForTransit file; | 1289 IPC::PlatformFileForTransit file; |
1289 #if defined(OS_POSIX) | 1290 #if defined(OS_POSIX) |
1290 file = base::FileDescriptor(model_file, false); | 1291 file = base::FileDescriptor(model_file, false); |
1291 #elif defined(OS_WIN) | 1292 #elif defined(OS_WIN) |
1292 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, | 1293 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, |
1293 false, DUPLICATE_SAME_ACCESS); | 1294 false, DUPLICATE_SAME_ACCESS); |
1294 #endif | 1295 #endif |
1295 Send(new ViewMsg_SetPhishingModel(file)); | 1296 Send(new ViewMsg_SetPhishingModel(file)); |
1296 } | 1297 } |
1297 } | 1298 } |
OLD | NEW |