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 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 switches::kInternalPepper, | 707 switches::kInternalPepper, |
708 switches::kJavaScriptFlags, | 708 switches::kJavaScriptFlags, |
709 switches::kLoggingLevel, | 709 switches::kLoggingLevel, |
710 switches::kMemoryProfiling, | 710 switches::kMemoryProfiling, |
711 switches::kMessageLoopHistogrammer, | 711 switches::kMessageLoopHistogrammer, |
712 switches::kNoJsRandomness, | 712 switches::kNoJsRandomness, |
713 switches::kNoReferrers, | 713 switches::kNoReferrers, |
714 switches::kNoSandbox, | 714 switches::kNoSandbox, |
715 switches::kPlaybackMode, | 715 switches::kPlaybackMode, |
716 switches::kPpapiOutOfProcess, | 716 switches::kPpapiOutOfProcess, |
| 717 switches::kProfilingAtStart, |
| 718 switches::kProfilingFile, |
| 719 switches::kProfilingFlush, |
717 switches::kRecordMode, | 720 switches::kRecordMode, |
718 switches::kRegisterPepperPlugins, | 721 switches::kRegisterPepperPlugins, |
719 switches::kRemoteShellPort, | 722 switches::kRemoteShellPort, |
720 switches::kRendererAssertTest, | 723 switches::kRendererAssertTest, |
721 #if !defined(OFFICIAL_BUILD) | 724 #if !defined(OFFICIAL_BUILD) |
722 switches::kRendererCheckFalseTest, | 725 switches::kRendererCheckFalseTest, |
723 #endif // !defined(OFFICIAL_BUILD) | 726 #endif // !defined(OFFICIAL_BUILD) |
724 switches::kRendererCrashTest, | 727 switches::kRendererCrashTest, |
725 switches::kRendererStartupDialog, | 728 switches::kRendererStartupDialog, |
726 switches::kShowPaintRects, | 729 switches::kShowPaintRects, |
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1278 IPC::PlatformFileForTransit file; | 1281 IPC::PlatformFileForTransit file; |
1279 #if defined(OS_POSIX) | 1282 #if defined(OS_POSIX) |
1280 file = base::FileDescriptor(model_file, false); | 1283 file = base::FileDescriptor(model_file, false); |
1281 #elif defined(OS_WIN) | 1284 #elif defined(OS_WIN) |
1282 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, | 1285 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, |
1283 false, DUPLICATE_SAME_ACCESS); | 1286 false, DUPLICATE_SAME_ACCESS); |
1284 #endif | 1287 #endif |
1285 Send(new ViewMsg_SetPhishingModel(file)); | 1288 Send(new ViewMsg_SetPhishingModel(file)); |
1286 } | 1289 } |
1287 } | 1290 } |
OLD | NEW |