| 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 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 555 switches::kDisableSpeechInput, | 555 switches::kDisableSpeechInput, |
| 556 switches::kDisableWebAudio, | 556 switches::kDisableWebAudio, |
| 557 switches::kDisableWebSockets, | 557 switches::kDisableWebSockets, |
| 558 switches::kEnableAdaptive, | 558 switches::kEnableAdaptive, |
| 559 switches::kEnableBenchmarking, | 559 switches::kEnableBenchmarking, |
| 560 switches::kEnableDCHECK, | 560 switches::kEnableDCHECK, |
| 561 switches::kEnableGPUServiceLogging, | 561 switches::kEnableGPUServiceLogging, |
| 562 switches::kEnableGPUClientLogging, | 562 switches::kEnableGPUClientLogging, |
| 563 switches::kEnableLogging, | 563 switches::kEnableLogging, |
| 564 switches::kEnableMediaStream, | 564 switches::kEnableMediaStream, |
| 565 switches::kEnableFullScreen, |
| 565 switches::kEnablePepperTesting, | 566 switches::kEnablePepperTesting, |
| 566 #if defined(OS_MACOSX) | 567 #if defined(OS_MACOSX) |
| 567 // Allow this to be set when invoking the browser and relayed along. | 568 // Allow this to be set when invoking the browser and relayed along. |
| 568 switches::kEnableSandboxLogging, | 569 switches::kEnableSandboxLogging, |
| 569 #endif | 570 #endif |
| 570 switches::kEnableSeccompSandbox, | 571 switches::kEnableSeccompSandbox, |
| 571 switches::kEnableStatsTable, | 572 switches::kEnableStatsTable, |
| 572 switches::kEnableVideoFullscreen, | 573 switches::kEnableVideoFullscreen, |
| 573 switches::kEnableVideoLogging, | 574 switches::kEnableVideoLogging, |
| 574 switches::kFullMemoryCrashReport, | 575 switches::kFullMemoryCrashReport, |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 938 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { | 939 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { |
| 939 // Only honor the request if appropriate persmissions are granted. | 940 // Only honor the request if appropriate persmissions are granted. |
| 940 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) | 941 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) |
| 941 content::GetContentClient()->browser()->OpenItem(path); | 942 content::GetContentClient()->browser()->OpenItem(path); |
| 942 } | 943 } |
| 943 | 944 |
| 944 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, bool success) { | 945 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, bool success) { |
| 945 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> | 946 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> |
| 946 MHTMLGenerated(job_id, success); | 947 MHTMLGenerated(job_id, success); |
| 947 } | 948 } |
| OLD | NEW |