| 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 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 690 switches::kEnableSandboxLogging, | 690 switches::kEnableSandboxLogging, |
| 691 #endif | 691 #endif |
| 692 switches::kEnableSearchProviderApiV2, | 692 switches::kEnableSearchProviderApiV2, |
| 693 switches::kEnableSeccompSandbox, | 693 switches::kEnableSeccompSandbox, |
| 694 switches::kEnableStatsTable, | 694 switches::kEnableStatsTable, |
| 695 switches::kEnableTouch, | 695 switches::kEnableTouch, |
| 696 switches::kEnableVideoFullscreen, | 696 switches::kEnableVideoFullscreen, |
| 697 switches::kEnableVideoLogging, | 697 switches::kEnableVideoLogging, |
| 698 switches::kEnableWatchdog, | 698 switches::kEnableWatchdog, |
| 699 switches::kEnableWebAudio, | 699 switches::kEnableWebAudio, |
| 700 switches::kEnableJavaScriptI18NAPI, |
| 700 switches::kExperimentalSpellcheckerFeatures, | 701 switches::kExperimentalSpellcheckerFeatures, |
| 701 switches::kFullMemoryCrashReport, | 702 switches::kFullMemoryCrashReport, |
| 702 #if !defined (GOOGLE_CHROME_BUILD) | 703 #if !defined (GOOGLE_CHROME_BUILD) |
| 703 // These are unsupported and not fully tested modes, so don't enable them | 704 // These are unsupported and not fully tested modes, so don't enable them |
| 704 // for official Google Chrome builds. | 705 // for official Google Chrome builds. |
| 705 switches::kInProcessPlugins, | 706 switches::kInProcessPlugins, |
| 706 #endif // GOOGLE_CHROME_BUILD | 707 #endif // GOOGLE_CHROME_BUILD |
| 707 switches::kInProcessWebGL, | 708 switches::kInProcessWebGL, |
| 708 switches::kInternalPepper, | 709 switches::kInternalPepper, |
| 709 switches::kJavaScriptFlags, | 710 switches::kJavaScriptFlags, |
| (...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1274 IPC::PlatformFileForTransit file; | 1275 IPC::PlatformFileForTransit file; |
| 1275 #if defined(OS_POSIX) | 1276 #if defined(OS_POSIX) |
| 1276 file = base::FileDescriptor(model_file, false); | 1277 file = base::FileDescriptor(model_file, false); |
| 1277 #elif defined(OS_WIN) | 1278 #elif defined(OS_WIN) |
| 1278 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, | 1279 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, |
| 1279 false, DUPLICATE_SAME_ACCESS); | 1280 false, DUPLICATE_SAME_ACCESS); |
| 1280 #endif | 1281 #endif |
| 1281 Send(new ViewMsg_SetPhishingModel(file)); | 1282 Send(new ViewMsg_SetPhishingModel(file)); |
| 1282 } | 1283 } |
| 1283 } | 1284 } |
| OLD | NEW |