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 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
645 DCHECK(gpu_data_manager); | 645 DCHECK(gpu_data_manager); |
646 gpu_data_manager->AppendRendererCommandLine(command_line); | 646 gpu_data_manager->AppendRendererCommandLine(command_line); |
647 } | 647 } |
648 | 648 |
649 void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer( | 649 void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer( |
650 const CommandLine& browser_cmd, | 650 const CommandLine& browser_cmd, |
651 CommandLine* renderer_cmd) const { | 651 CommandLine* renderer_cmd) const { |
652 // Propagate the following switches to the renderer command line (along | 652 // Propagate the following switches to the renderer command line (along |
653 // with any associated values) if present in the browser command line. | 653 // with any associated values) if present in the browser command line. |
654 static const char* const kSwitchNames[] = { | 654 static const char* const kSwitchNames[] = { |
| 655 switches::kAllowNaClSocketAPI, |
655 // We propagate the Chrome Frame command line here as well in case the | 656 // We propagate the Chrome Frame command line here as well in case the |
656 // renderer is not run in the sandbox. | 657 // renderer is not run in the sandbox. |
657 switches::kAuditAllHandles, | 658 switches::kAuditAllHandles, |
658 switches::kAuditHandles, | 659 switches::kAuditHandles, |
659 switches::kChromeFrame, | 660 switches::kChromeFrame, |
660 switches::kDisable3DAPIs, | 661 switches::kDisable3DAPIs, |
661 switches::kDisableAcceleratedCompositing, | 662 switches::kDisableAcceleratedCompositing, |
662 switches::kDisableApplicationCache, | 663 switches::kDisableApplicationCache, |
663 switches::kDisableAudio, | 664 switches::kDisableAudio, |
664 switches::kDisableBreakpad, | 665 switches::kDisableBreakpad, |
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1320 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { | 1321 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { |
1321 // Only honor the request if appropriate persmissions are granted. | 1322 // Only honor the request if appropriate persmissions are granted. |
1322 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(GetID(), path)) | 1323 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(GetID(), path)) |
1323 content::GetContentClient()->browser()->OpenItem(path); | 1324 content::GetContentClient()->browser()->OpenItem(path); |
1324 } | 1325 } |
1325 | 1326 |
1326 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { | 1327 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { |
1327 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> | 1328 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> |
1328 MHTMLGenerated(job_id, data_size); | 1329 MHTMLGenerated(job_id, data_size); |
1329 } | 1330 } |
OLD | NEW |