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 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
618 const CommandLine& browser_cmd, | 618 const CommandLine& browser_cmd, |
619 CommandLine* renderer_cmd) const { | 619 CommandLine* renderer_cmd) const { |
620 // Propagate the following switches to the renderer command line (along | 620 // Propagate the following switches to the renderer command line (along |
621 // with any associated values) if present in the browser command line. | 621 // with any associated values) if present in the browser command line. |
622 static const char* const kSwitchNames[] = { | 622 static const char* const kSwitchNames[] = { |
623 // We propagate the Chrome Frame command line here as well in case the | 623 // We propagate the Chrome Frame command line here as well in case the |
624 // renderer is not run in the sandbox. | 624 // renderer is not run in the sandbox. |
625 switches::kAuditAllHandles, | 625 switches::kAuditAllHandles, |
626 switches::kAuditHandles, | 626 switches::kAuditHandles, |
627 switches::kChromeFrame, | 627 switches::kChromeFrame, |
628 switches::kDartFlags, | |
629 switches::kDisable3DAPIs, | 628 switches::kDisable3DAPIs, |
630 switches::kDisableAcceleratedCompositing, | 629 switches::kDisableAcceleratedCompositing, |
631 switches::kDisableApplicationCache, | 630 switches::kDisableApplicationCache, |
632 switches::kDisableAudio, | 631 switches::kDisableAudio, |
633 switches::kDisableBreakpad, | 632 switches::kDisableBreakpad, |
634 #if defined(OS_MACOSX) | 633 #if defined(OS_MACOSX) |
635 switches::kDisableCompositedCoreAnimationPlugins, | 634 switches::kDisableCompositedCoreAnimationPlugins, |
636 #endif | 635 #endif |
637 switches::kDisableDataTransferItems, | 636 switches::kDisableDataTransferItems, |
638 switches::kDisableDatabases, | 637 switches::kDisableDatabases, |
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1295 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { | 1294 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { |
1296 // Only honor the request if appropriate persmissions are granted. | 1295 // Only honor the request if appropriate persmissions are granted. |
1297 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(GetID(), path)) | 1296 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(GetID(), path)) |
1298 content::GetContentClient()->browser()->OpenItem(path); | 1297 content::GetContentClient()->browser()->OpenItem(path); |
1299 } | 1298 } |
1300 | 1299 |
1301 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { | 1300 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { |
1302 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> | 1301 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> |
1303 MHTMLGenerated(job_id, data_size); | 1302 MHTMLGenerated(job_id, data_size); |
1304 } | 1303 } |
OLD | NEW |