| 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 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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::kDisable3DAPIs, | 652 switches::kDisable3DAPIs, |
| 653 switches::kDisableAcceleratedCompositing, | 653 switches::kDisableAcceleratedCompositing, |
| 654 switches::kDisableApplicationCache, | 654 switches::kDisableApplicationCache, |
| 655 switches::kDisableAudio, | 655 switches::kDisableAudio, |
| 656 switches::kDisableBreakpad, | 656 switches::kDisableBreakpad, |
| 657 #if defined(OS_MACOSX) |
| 658 switches::kDisableCompositedCoreAnimationPlugins, |
| 659 #endif |
| 657 switches::kDisableDataTransferItems, | 660 switches::kDisableDataTransferItems, |
| 658 switches::kDisableDatabases, | 661 switches::kDisableDatabases, |
| 659 switches::kDisableDesktopNotifications, | 662 switches::kDisableDesktopNotifications, |
| 660 switches::kDisableDeviceOrientation, | 663 switches::kDisableDeviceOrientation, |
| 661 switches::kDisableFileSystem, | 664 switches::kDisableFileSystem, |
| 662 switches::kDisableGeolocation, | 665 switches::kDisableGeolocation, |
| 663 switches::kDisableGLMultisampling, | 666 switches::kDisableGLMultisampling, |
| 664 switches::kDisableGLSLTranslator, | 667 switches::kDisableGLSLTranslator, |
| 665 switches::kDisableGpuDriverBugWorkarounds, | 668 switches::kDisableGpuDriverBugWorkarounds, |
| 666 switches::kDisableGpuVsync, | 669 switches::kDisableGpuVsync, |
| (...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1305 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { | 1308 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { |
| 1306 // Only honor the request if appropriate persmissions are granted. | 1309 // Only honor the request if appropriate persmissions are granted. |
| 1307 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(GetID(), path)) | 1310 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(GetID(), path)) |
| 1308 content::GetContentClient()->browser()->OpenItem(path); | 1311 content::GetContentClient()->browser()->OpenItem(path); |
| 1309 } | 1312 } |
| 1310 | 1313 |
| 1311 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { | 1314 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { |
| 1312 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> | 1315 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> |
| 1313 MHTMLGenerated(job_id, data_size); | 1316 MHTMLGenerated(job_id, data_size); |
| 1314 } | 1317 } |
| OLD | NEW |