OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/render_process_host_impl.h" | 8 #include "content/browser/renderer_host/render_process_host_impl.h" |
9 | 9 |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 switches::kJavaScriptFlags, | 718 switches::kJavaScriptFlags, |
719 switches::kLoggingLevel, | 719 switches::kLoggingLevel, |
720 switches::kNoJsRandomness, | 720 switches::kNoJsRandomness, |
721 switches::kNoReferrers, | 721 switches::kNoReferrers, |
722 switches::kNoSandbox, | 722 switches::kNoSandbox, |
723 switches::kPlaybackMode, | 723 switches::kPlaybackMode, |
724 switches::kPpapiOutOfProcess, | 724 switches::kPpapiOutOfProcess, |
725 switches::kRecordMode, | 725 switches::kRecordMode, |
726 switches::kRegisterPepperPlugins, | 726 switches::kRegisterPepperPlugins, |
727 switches::kRendererAssertTest, | 727 switches::kRendererAssertTest, |
728 #if !defined(OFFICIAL_BUILD) | |
729 switches::kRendererCheckFalseTest, | |
730 #endif // !defined(OFFICIAL_BUILD) | |
731 #if defined(OS_POSIX) | 728 #if defined(OS_POSIX) |
732 switches::kRendererCleanExit, | 729 switches::kRendererCleanExit, |
733 #endif | 730 #endif |
734 switches::kRendererCrashTest, | |
735 switches::kRendererStartupDialog, | 731 switches::kRendererStartupDialog, |
736 switches::kShowPaintRects, | 732 switches::kShowPaintRects, |
737 switches::kTestSandbox, | 733 switches::kTestSandbox, |
738 switches::kTraceStartup, | 734 switches::kTraceStartup, |
739 // This flag needs to be propagated to the renderer process for | 735 // This flag needs to be propagated to the renderer process for |
740 // --in-process-webgl. | 736 // --in-process-webgl. |
741 switches::kUseGL, | 737 switches::kUseGL, |
742 switches::kUserAgent, | 738 switches::kUserAgent, |
743 switches::kV, | 739 switches::kV, |
744 switches::kVideoThreads, | 740 switches::kVideoThreads, |
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1341 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { | 1337 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { |
1342 // Only honor the request if appropriate persmissions are granted. | 1338 // Only honor the request if appropriate persmissions are granted. |
1343 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(), | 1339 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(), |
1344 path)) | 1340 path)) |
1345 content::GetContentClient()->browser()->OpenItem(path); | 1341 content::GetContentClient()->browser()->OpenItem(path); |
1346 } | 1342 } |
1347 | 1343 |
1348 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { | 1344 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { |
1349 MHTMLGenerationManager::GetInstance()->MHTMLGenerated(job_id, data_size); | 1345 MHTMLGenerationManager::GetInstance()->MHTMLGenerated(job_id, data_size); |
1350 } | 1346 } |
OLD | NEW |