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 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
671 switches::kMessageLoopHistogrammer, | 671 switches::kMessageLoopHistogrammer, |
672 switches::kEnableDCHECK, | 672 switches::kEnableDCHECK, |
673 switches::kSilentDumpOnDCHECK, | 673 switches::kSilentDumpOnDCHECK, |
674 switches::kUseLowFragHeapCrt, | 674 switches::kUseLowFragHeapCrt, |
675 switches::kEnableSearchProviderApiV2, | 675 switches::kEnableSearchProviderApiV2, |
676 switches::kEnableStatsTable, | 676 switches::kEnableStatsTable, |
677 switches::kExperimentalSpellcheckerFeatures, | 677 switches::kExperimentalSpellcheckerFeatures, |
678 switches::kDisableAudio, | 678 switches::kDisableAudio, |
679 switches::kSimpleDataSource, | 679 switches::kSimpleDataSource, |
680 switches::kEnableBenchmarking, | 680 switches::kEnableBenchmarking, |
| 681 switches::kEnableNaCl, |
681 switches::kInternalNaCl, | 682 switches::kInternalNaCl, |
682 switches::kInternalPepper, | 683 switches::kInternalPepper, |
683 switches::kRegisterPepperPlugins, | 684 switches::kRegisterPepperPlugins, |
684 switches::kDisableDatabases, | 685 switches::kDisableDatabases, |
685 switches::kDisableDesktopNotifications, | 686 switches::kDisableDesktopNotifications, |
686 switches::kDisableWebSockets, | 687 switches::kDisableWebSockets, |
687 switches::kDisableLocalStorage, | 688 switches::kDisableLocalStorage, |
688 switches::kDisableSessionStorage, | 689 switches::kDisableSessionStorage, |
689 switches::kDisableSharedWorkers, | 690 switches::kDisableSharedWorkers, |
690 switches::kDisableApplicationCache, | 691 switches::kDisableApplicationCache, |
(...skipping 597 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 |