| 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 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 559 // with any associated values) if present in the browser command line. | 559 // with any associated values) if present in the browser command line. |
| 560 static const char* const kSwitchNames[] = { | 560 static const char* const kSwitchNames[] = { |
| 561 switches::kRendererAssertTest, | 561 switches::kRendererAssertTest, |
| 562 #if !defined(OFFICIAL_BUILD) | 562 #if !defined(OFFICIAL_BUILD) |
| 563 switches::kRendererCheckFalseTest, | 563 switches::kRendererCheckFalseTest, |
| 564 #endif // !defined(OFFICIAL_BUILD) | 564 #endif // !defined(OFFICIAL_BUILD) |
| 565 switches::kRendererCrashTest, | 565 switches::kRendererCrashTest, |
| 566 switches::kRendererStartupDialog, | 566 switches::kRendererStartupDialog, |
| 567 switches::kNoSandbox, | 567 switches::kNoSandbox, |
| 568 switches::kTestSandbox, | 568 switches::kTestSandbox, |
| 569 #if defined(USE_SECCOMP_SANDBOX) | |
| 570 switches::kDisableSeccompSandbox, | 569 switches::kDisableSeccompSandbox, |
| 571 #else | |
| 572 switches::kEnableSeccompSandbox, | 570 switches::kEnableSeccompSandbox, |
| 573 #endif | |
| 574 #if !defined (GOOGLE_CHROME_BUILD) | 571 #if !defined (GOOGLE_CHROME_BUILD) |
| 575 // These are unsupported and not fully tested modes, so don't enable them | 572 // These are unsupported and not fully tested modes, so don't enable them |
| 576 // for official Google Chrome builds. | 573 // for official Google Chrome builds. |
| 577 switches::kInProcessPlugins, | 574 switches::kInProcessPlugins, |
| 578 #endif // GOOGLE_CHROME_BUILD | 575 #endif // GOOGLE_CHROME_BUILD |
| 579 switches::kAllowScriptingGallery, | 576 switches::kAllowScriptingGallery, |
| 580 switches::kDomAutomationController, | 577 switches::kDomAutomationController, |
| 581 switches::kUserAgent, | 578 switches::kUserAgent, |
| 582 switches::kNoReferrers, | 579 switches::kNoReferrers, |
| 583 switches::kJavaScriptFlags, | 580 switches::kJavaScriptFlags, |
| (...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1246 IPC::PlatformFileForTransit file; | 1243 IPC::PlatformFileForTransit file; |
| 1247 #if defined(OS_POSIX) | 1244 #if defined(OS_POSIX) |
| 1248 file = base::FileDescriptor(model_file, false); | 1245 file = base::FileDescriptor(model_file, false); |
| 1249 #elif defined(OS_WIN) | 1246 #elif defined(OS_WIN) |
| 1250 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, | 1247 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, |
| 1251 false, DUPLICATE_SAME_ACCESS); | 1248 false, DUPLICATE_SAME_ACCESS); |
| 1252 #endif | 1249 #endif |
| 1253 Send(new ViewMsg_SetPhishingModel(file)); | 1250 Send(new ViewMsg_SetPhishingModel(file)); |
| 1254 } | 1251 } |
| 1255 } | 1252 } |
| OLD | NEW |