| 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 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 switches::kDisableDataTransferItems, | 670 switches::kDisableDataTransferItems, |
| 671 switches::kDisableDatabases, | 671 switches::kDisableDatabases, |
| 672 switches::kDisableDesktopNotifications, | 672 switches::kDisableDesktopNotifications, |
| 673 switches::kDisableDeviceOrientation, | 673 switches::kDisableDeviceOrientation, |
| 674 switches::kDisableFileSystem, | 674 switches::kDisableFileSystem, |
| 675 switches::kDisableGeolocation, | 675 switches::kDisableGeolocation, |
| 676 switches::kDisableGLMultisampling, | 676 switches::kDisableGLMultisampling, |
| 677 switches::kDisableGLSLTranslator, | 677 switches::kDisableGLSLTranslator, |
| 678 switches::kDisableGpuDriverBugWorkarounds, | 678 switches::kDisableGpuDriverBugWorkarounds, |
| 679 switches::kDisableGpuVsync, | 679 switches::kDisableGpuVsync, |
| 680 switches::kDisableIndexedDatabase, | |
| 681 switches::kDisableJavaScriptI18NAPI, | 680 switches::kDisableJavaScriptI18NAPI, |
| 682 switches::kDisableLocalStorage, | 681 switches::kDisableLocalStorage, |
| 683 switches::kDisableLogging, | 682 switches::kDisableLogging, |
| 684 switches::kDisableSeccompSandbox, | 683 switches::kDisableSeccompSandbox, |
| 685 switches::kDisableSessionStorage, | 684 switches::kDisableSessionStorage, |
| 686 switches::kDisableSharedWorkers, | 685 switches::kDisableSharedWorkers, |
| 687 switches::kDisableSpeechInput, | 686 switches::kDisableSpeechInput, |
| 688 switches::kDisableWebAudio, | 687 switches::kDisableWebAudio, |
| 689 switches::kDisableWebSockets, | 688 switches::kDisableWebSockets, |
| 690 switches::kEnableAccessibilityLogging, | 689 switches::kEnableAccessibilityLogging, |
| 691 switches::kEnableDCHECK, | 690 switches::kEnableDCHECK, |
| 692 switches::kEnableGamepad, | 691 switches::kEnableGamepad, |
| 693 switches::kEnableGPUServiceLogging, | 692 switches::kEnableGPUServiceLogging, |
| 694 switches::kEnableGPUClientLogging, | 693 switches::kEnableGPUClientLogging, |
| 694 switches::kEnableIndexedDBForWorkers, |
| 695 switches::kEnableLogging, | 695 switches::kEnableLogging, |
| 696 switches::kEnableMediaSource, | 696 switches::kEnableMediaSource, |
| 697 switches::kEnableMediaStream, | 697 switches::kEnableMediaStream, |
| 698 switches::kEnableStrictSiteIsolation, | 698 switches::kEnableStrictSiteIsolation, |
| 699 switches::kDisableFullScreen, | 699 switches::kDisableFullScreen, |
| 700 switches::kEnablePepperTesting, | 700 switches::kEnablePepperTesting, |
| 701 switches::kEnablePointerLock, | 701 switches::kEnablePointerLock, |
| 702 #if defined(OS_MACOSX) | 702 #if defined(OS_MACOSX) |
| 703 // Allow this to be set when invoking the browser and relayed along. | 703 // Allow this to be set when invoking the browser and relayed along. |
| 704 switches::kEnableSandboxLogging, | 704 switches::kEnableSandboxLogging, |
| (...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1322 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { | 1322 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { |
| 1323 // Only honor the request if appropriate persmissions are granted. | 1323 // Only honor the request if appropriate persmissions are granted. |
| 1324 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(GetID(), path)) | 1324 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(GetID(), path)) |
| 1325 content::GetContentClient()->browser()->OpenItem(path); | 1325 content::GetContentClient()->browser()->OpenItem(path); |
| 1326 } | 1326 } |
| 1327 | 1327 |
| 1328 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { | 1328 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { |
| 1329 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> | 1329 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> |
| 1330 MHTMLGenerated(job_id, data_size); | 1330 MHTMLGenerated(job_id, data_size); |
| 1331 } | 1331 } |
| OLD | NEW |