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 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
642 const CommandLine& browser_cmd, | 642 const CommandLine& browser_cmd, |
643 CommandLine* renderer_cmd) const { | 643 CommandLine* renderer_cmd) const { |
644 // Propagate the following switches to the renderer command line (along | 644 // Propagate the following switches to the renderer command line (along |
645 // with any associated values) if present in the browser command line. | 645 // with any associated values) if present in the browser command line. |
646 static const char* const kSwitchNames[] = { | 646 static const char* const kSwitchNames[] = { |
647 // We propagate the Chrome Frame command line here as well in case the | 647 // We propagate the Chrome Frame command line here as well in case the |
648 // renderer is not run in the sandbox. | 648 // renderer is not run in the sandbox. |
649 switches::kAuditAllHandles, | 649 switches::kAuditAllHandles, |
650 switches::kAuditHandles, | 650 switches::kAuditHandles, |
651 switches::kChromeFrame, | 651 switches::kChromeFrame, |
652 switches::kDefaultDeviceScaleFactor, | |
653 switches::kDisable3DAPIs, | 652 switches::kDisable3DAPIs, |
654 switches::kDisableAcceleratedCompositing, | 653 switches::kDisableAcceleratedCompositing, |
655 switches::kDisableApplicationCache, | 654 switches::kDisableApplicationCache, |
656 switches::kDisableAudio, | 655 switches::kDisableAudio, |
657 switches::kDisableBreakpad, | 656 switches::kDisableBreakpad, |
658 #if defined(OS_MACOSX) | 657 #if defined(OS_MACOSX) |
659 switches::kDisableCompositedCoreAnimationPlugins, | 658 switches::kDisableCompositedCoreAnimationPlugins, |
660 #endif | 659 #endif |
661 switches::kDisableDataTransferItems, | 660 switches::kDisableDataTransferItems, |
662 switches::kDisableDatabases, | 661 switches::kDisableDatabases, |
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1324 // Only honor the request if appropriate persmissions are granted. | 1323 // Only honor the request if appropriate persmissions are granted. |
1325 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(), | 1324 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(), |
1326 path)) | 1325 path)) |
1327 content::GetContentClient()->browser()->OpenItem(path); | 1326 content::GetContentClient()->browser()->OpenItem(path); |
1328 } | 1327 } |
1329 | 1328 |
1330 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { | 1329 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { |
1331 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> | 1330 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> |
1332 MHTMLGenerated(job_id, data_size); | 1331 MHTMLGenerated(job_id, data_size); |
1333 } | 1332 } |
OLD | NEW |