| 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 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 switches::kEnableViewport, | 710 switches::kEnableViewport, |
| 711 switches::kFullMemoryCrashReport, | 711 switches::kFullMemoryCrashReport, |
| 712 #if !defined (GOOGLE_CHROME_BUILD) | 712 #if !defined (GOOGLE_CHROME_BUILD) |
| 713 // These are unsupported and not fully tested modes, so don't enable them | 713 // These are unsupported and not fully tested modes, so don't enable them |
| 714 // for official Google Chrome builds. | 714 // for official Google Chrome builds. |
| 715 switches::kInProcessPlugins, | 715 switches::kInProcessPlugins, |
| 716 #endif // GOOGLE_CHROME_BUILD | 716 #endif // GOOGLE_CHROME_BUILD |
| 717 switches::kInProcessWebGL, | 717 switches::kInProcessWebGL, |
| 718 switches::kJavaScriptFlags, | 718 switches::kJavaScriptFlags, |
| 719 switches::kLoggingLevel, | 719 switches::kLoggingLevel, |
| 720 switches::kNoJsRandomness, | |
| 721 switches::kNoReferrers, | 720 switches::kNoReferrers, |
| 722 switches::kNoSandbox, | 721 switches::kNoSandbox, |
| 723 switches::kPlaybackMode, | |
| 724 switches::kPpapiOutOfProcess, | 722 switches::kPpapiOutOfProcess, |
| 725 switches::kRecordMode, | |
| 726 switches::kRegisterPepperPlugins, | 723 switches::kRegisterPepperPlugins, |
| 727 switches::kRendererAssertTest, | 724 switches::kRendererAssertTest, |
| 728 #if defined(OS_POSIX) | 725 #if defined(OS_POSIX) |
| 729 switches::kRendererCleanExit, | 726 switches::kRendererCleanExit, |
| 730 #endif | 727 #endif |
| 731 switches::kRendererStartupDialog, | 728 switches::kRendererStartupDialog, |
| 732 switches::kShowPaintRects, | 729 switches::kShowPaintRects, |
| 733 switches::kTestSandbox, | 730 switches::kTestSandbox, |
| 734 switches::kTraceStartup, | 731 switches::kTraceStartup, |
| 735 // This flag needs to be propagated to the renderer process for | 732 // This flag needs to be propagated to the renderer process for |
| (...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1337 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { | 1334 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { |
| 1338 // Only honor the request if appropriate persmissions are granted. | 1335 // Only honor the request if appropriate persmissions are granted. |
| 1339 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(), | 1336 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(), |
| 1340 path)) | 1337 path)) |
| 1341 content::GetContentClient()->browser()->OpenItem(path); | 1338 content::GetContentClient()->browser()->OpenItem(path); |
| 1342 } | 1339 } |
| 1343 | 1340 |
| 1344 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { | 1341 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { |
| 1345 MHTMLGenerationManager::GetInstance()->MHTMLGenerated(job_id, data_size); | 1342 MHTMLGenerationManager::GetInstance()->MHTMLGenerated(job_id, data_size); |
| 1346 } | 1343 } |
| OLD | NEW |