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 "content/browser/renderer_host/browser_render_process_host.h" | 8 #include "content/browser/renderer_host/browser_render_process_host.h" |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 switches::kDomAutomationController, | 582 switches::kDomAutomationController, |
583 switches::kDumpHistogramsOnExit, | 583 switches::kDumpHistogramsOnExit, |
584 switches::kEnableAcceleratedDecoding, | 584 switches::kEnableAcceleratedDecoding, |
585 switches::kEnableAdaptive, | 585 switches::kEnableAdaptive, |
586 switches::kEnableBenchmarking, | 586 switches::kEnableBenchmarking, |
587 switches::kEnableClickToPlay, | 587 switches::kEnableClickToPlay, |
588 switches::kEnableCrxlessWebApps, | 588 switches::kEnableCrxlessWebApps, |
589 switches::kEnableDCHECK, | 589 switches::kEnableDCHECK, |
590 switches::kEnableExperimentalExtensionApis, | 590 switches::kEnableExperimentalExtensionApis, |
591 switches::kEnableInBrowserThumbnailing, | 591 switches::kEnableInBrowserThumbnailing, |
| 592 switches::kEnableIPCFuzzing, |
592 switches::kEnableLogging, | 593 switches::kEnableLogging, |
593 switches::kEnableNaCl, | 594 switches::kEnableNaCl, |
594 switches::kEnableOpenMax, | 595 switches::kEnableOpenMax, |
595 #if defined(ENABLE_P2P_APIS) | 596 #if defined(ENABLE_P2P_APIS) |
596 switches::kEnableP2PApi, | 597 switches::kEnableP2PApi, |
597 #endif | 598 #endif |
598 switches::kEnablePepperTesting, | 599 switches::kEnablePepperTesting, |
599 switches::kEnablePrintPreview, | 600 switches::kEnablePrintPreview, |
600 switches::kEnableRemoting, | 601 switches::kEnableRemoting, |
601 switches::kEnableResourceContentSettings, | 602 switches::kEnableResourceContentSettings, |
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1085 IPC::PlatformFileForTransit file; | 1086 IPC::PlatformFileForTransit file; |
1086 #if defined(OS_POSIX) | 1087 #if defined(OS_POSIX) |
1087 file = base::FileDescriptor(model_file, false); | 1088 file = base::FileDescriptor(model_file, false); |
1088 #elif defined(OS_WIN) | 1089 #elif defined(OS_WIN) |
1089 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, | 1090 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, |
1090 false, DUPLICATE_SAME_ACCESS); | 1091 false, DUPLICATE_SAME_ACCESS); |
1091 #endif | 1092 #endif |
1092 Send(new SafeBrowsingMsg_SetPhishingModel(file)); | 1093 Send(new SafeBrowsingMsg_SetPhishingModel(file)); |
1093 } | 1094 } |
1094 } | 1095 } |
OLD | NEW |