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