| 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 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 switches::kEnableDCHECK, | 679 switches::kEnableDCHECK, |
| 680 switches::kEnableGamepad, | 680 switches::kEnableGamepad, |
| 681 switches::kEnableGPUServiceLogging, | 681 switches::kEnableGPUServiceLogging, |
| 682 switches::kEnableGPUClientLogging, | 682 switches::kEnableGPUClientLogging, |
| 683 switches::kEnableLogging, | 683 switches::kEnableLogging, |
| 684 switches::kEnableMediaSource, | 684 switches::kEnableMediaSource, |
| 685 switches::kEnableMediaStream, | 685 switches::kEnableMediaStream, |
| 686 switches::kEnableStrictSiteIsolation, | 686 switches::kEnableStrictSiteIsolation, |
| 687 switches::kDisableFullScreen, | 687 switches::kDisableFullScreen, |
| 688 switches::kEnablePepperTesting, | 688 switches::kEnablePepperTesting, |
| 689 switches::kEnablePointerLock, |
| 689 #if defined(OS_MACOSX) | 690 #if defined(OS_MACOSX) |
| 690 // Allow this to be set when invoking the browser and relayed along. | 691 // Allow this to be set when invoking the browser and relayed along. |
| 691 switches::kEnableSandboxLogging, | 692 switches::kEnableSandboxLogging, |
| 692 #endif | 693 #endif |
| 693 switches::kEnableSeccompSandbox, | 694 switches::kEnableSeccompSandbox, |
| 694 switches::kEnableStatsTable, | 695 switches::kEnableStatsTable, |
| 695 switches::kEnableThreadedCompositing, | 696 switches::kEnableThreadedCompositing, |
| 696 switches::kEnableVideoFullscreen, | 697 switches::kEnableVideoFullscreen, |
| 697 switches::kEnableVideoLogging, | 698 switches::kEnableVideoLogging, |
| 698 switches::kEnableVideoTrack, | 699 switches::kEnableVideoTrack, |
| (...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1294 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { | 1295 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { |
| 1295 // Only honor the request if appropriate persmissions are granted. | 1296 // Only honor the request if appropriate persmissions are granted. |
| 1296 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(GetID(), path)) | 1297 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(GetID(), path)) |
| 1297 content::GetContentClient()->browser()->OpenItem(path); | 1298 content::GetContentClient()->browser()->OpenItem(path); |
| 1298 } | 1299 } |
| 1299 | 1300 |
| 1300 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { | 1301 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { |
| 1301 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> | 1302 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> |
| 1302 MHTMLGenerated(job_id, data_size); | 1303 MHTMLGenerated(job_id, data_size); |
| 1303 } | 1304 } |
| OLD | NEW |