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 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 } | 630 } |
631 | 631 |
632 void BrowserRenderProcessHost::PropagateBrowserCommandLineToRenderer( | 632 void BrowserRenderProcessHost::PropagateBrowserCommandLineToRenderer( |
633 const CommandLine& browser_cmd, | 633 const CommandLine& browser_cmd, |
634 CommandLine* renderer_cmd) const { | 634 CommandLine* renderer_cmd) const { |
635 // Propagate the following switches to the renderer command line (along | 635 // Propagate the following switches to the renderer command line (along |
636 // with any associated values) if present in the browser command line. | 636 // with any associated values) if present in the browser command line. |
637 static const char* const kSwitchNames[] = { | 637 static const char* const kSwitchNames[] = { |
638 switches::kAllowOutdatedPlugins, | 638 switches::kAllowOutdatedPlugins, |
639 switches::kAllowScriptingGallery, | 639 switches::kAllowScriptingGallery, |
| 640 switches::kAlwaysAuthorizePlugins, |
640 switches::kAppsGalleryURL, | 641 switches::kAppsGalleryURL, |
641 // We propagate the Chrome Frame command line here as well in case the | 642 // We propagate the Chrome Frame command line here as well in case the |
642 // renderer is not run in the sandbox. | 643 // renderer is not run in the sandbox. |
643 switches::kChromeFrame, | 644 switches::kChromeFrame, |
644 switches::kDebugPrint, | 645 switches::kDebugPrint, |
645 switches::kDisable3DAPIs, | 646 switches::kDisable3DAPIs, |
646 switches::kDisableAcceleratedCompositing, | 647 switches::kDisableAcceleratedCompositing, |
647 switches::kDisableApplicationCache, | 648 switches::kDisableApplicationCache, |
648 switches::kDisableAudio, | 649 switches::kDisableAudio, |
649 switches::kDisableBreakpad, | 650 switches::kDisableBreakpad, |
(...skipping 627 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 |