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/render_process_host_impl.h" | 8 #include "content/browser/renderer_host/render_process_host_impl.h" |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 switches::kJavaScriptFlags, | 705 switches::kJavaScriptFlags, |
706 switches::kLoggingLevel, | 706 switches::kLoggingLevel, |
707 switches::kHighLatencyAudio, | 707 switches::kHighLatencyAudio, |
708 switches::kNoJsRandomness, | 708 switches::kNoJsRandomness, |
709 switches::kNoReferrers, | 709 switches::kNoReferrers, |
710 switches::kNoSandbox, | 710 switches::kNoSandbox, |
711 switches::kPlaybackMode, | 711 switches::kPlaybackMode, |
712 switches::kPpapiOutOfProcess, | 712 switches::kPpapiOutOfProcess, |
713 switches::kRecordMode, | 713 switches::kRecordMode, |
714 switches::kRegisterPepperPlugins, | 714 switches::kRegisterPepperPlugins, |
715 switches::kRemoteShellPort, | |
716 switches::kRendererAssertTest, | 715 switches::kRendererAssertTest, |
717 #if !defined(OFFICIAL_BUILD) | 716 #if !defined(OFFICIAL_BUILD) |
718 switches::kRendererCheckFalseTest, | 717 switches::kRendererCheckFalseTest, |
719 #endif // !defined(OFFICIAL_BUILD) | 718 #endif // !defined(OFFICIAL_BUILD) |
720 switches::kRendererCrashTest, | 719 switches::kRendererCrashTest, |
721 switches::kRendererStartupDialog, | 720 switches::kRendererStartupDialog, |
722 switches::kShowPaintRects, | 721 switches::kShowPaintRects, |
723 switches::kSimpleDataSource, | 722 switches::kSimpleDataSource, |
724 switches::kTestSandbox, | 723 switches::kTestSandbox, |
725 switches::kTraceStartup, | 724 switches::kTraceStartup, |
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1305 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { | 1304 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { |
1306 // Only honor the request if appropriate persmissions are granted. | 1305 // Only honor the request if appropriate persmissions are granted. |
1307 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(GetID(), path)) | 1306 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(GetID(), path)) |
1308 content::GetContentClient()->browser()->OpenItem(path); | 1307 content::GetContentClient()->browser()->OpenItem(path); |
1309 } | 1308 } |
1310 | 1309 |
1311 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { | 1310 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { |
1312 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> | 1311 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> |
1313 MHTMLGenerated(job_id, data_size); | 1312 MHTMLGenerated(job_id, data_size); |
1314 } | 1313 } |
OLD | NEW |