| 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/browser_render_process_host.h" | 8 #include "content/browser/renderer_host/browser_render_process_host.h" |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 572 switches::kEnableDCHECK, | 572 switches::kEnableDCHECK, |
| 573 switches::kEnableGamepad, | 573 switches::kEnableGamepad, |
| 574 switches::kEnableGPUServiceLogging, | 574 switches::kEnableGPUServiceLogging, |
| 575 switches::kEnableGPUClientLogging, | 575 switches::kEnableGPUClientLogging, |
| 576 switches::kEnableLogging, | 576 switches::kEnableLogging, |
| 577 switches::kEnableMediaSource, | 577 switches::kEnableMediaSource, |
| 578 switches::kEnableMediaStream, | 578 switches::kEnableMediaStream, |
| 579 switches::kEnableStrictSiteIsolation, | 579 switches::kEnableStrictSiteIsolation, |
| 580 switches::kDisableFullScreen, | 580 switches::kDisableFullScreen, |
| 581 switches::kEnablePepperTesting, | 581 switches::kEnablePepperTesting, |
| 582 switches::kEnablePointerLock, |
| 582 #if defined(OS_MACOSX) | 583 #if defined(OS_MACOSX) |
| 583 // Allow this to be set when invoking the browser and relayed along. | 584 // Allow this to be set when invoking the browser and relayed along. |
| 584 switches::kEnableSandboxLogging, | 585 switches::kEnableSandboxLogging, |
| 585 #endif | 586 #endif |
| 586 switches::kEnableSeccompSandbox, | 587 switches::kEnableSeccompSandbox, |
| 587 switches::kEnableStatsTable, | 588 switches::kEnableStatsTable, |
| 588 switches::kEnableThreadedCompositing, | 589 switches::kEnableThreadedCompositing, |
| 589 switches::kEnableVideoFullscreen, | 590 switches::kEnableVideoFullscreen, |
| 590 switches::kEnableVideoLogging, | 591 switches::kEnableVideoLogging, |
| 591 switches::kEnableVideoTrack, | 592 switches::kEnableVideoTrack, |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 997 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { | 998 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { |
| 998 // Only honor the request if appropriate persmissions are granted. | 999 // Only honor the request if appropriate persmissions are granted. |
| 999 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) | 1000 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) |
| 1000 content::GetContentClient()->browser()->OpenItem(path); | 1001 content::GetContentClient()->browser()->OpenItem(path); |
| 1001 } | 1002 } |
| 1002 | 1003 |
| 1003 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, int64 data_size) { | 1004 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, int64 data_size) { |
| 1004 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> | 1005 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> |
| 1005 MHTMLGenerated(job_id, data_size); | 1006 MHTMLGenerated(job_id, data_size); |
| 1006 } | 1007 } |
| OLD | NEW |