| 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 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 575 switches::kEnableVideoLogging, | 575 switches::kEnableVideoLogging, |
| 576 switches::kFullMemoryCrashReport, | 576 switches::kFullMemoryCrashReport, |
| 577 #if !defined (GOOGLE_CHROME_BUILD) | 577 #if !defined (GOOGLE_CHROME_BUILD) |
| 578 // These are unsupported and not fully tested modes, so don't enable them | 578 // These are unsupported and not fully tested modes, so don't enable them |
| 579 // for official Google Chrome builds. | 579 // for official Google Chrome builds. |
| 580 switches::kInProcessPlugins, | 580 switches::kInProcessPlugins, |
| 581 #endif // GOOGLE_CHROME_BUILD | 581 #endif // GOOGLE_CHROME_BUILD |
| 582 switches::kInProcessWebGL, | 582 switches::kInProcessWebGL, |
| 583 switches::kJavaScriptFlags, | 583 switches::kJavaScriptFlags, |
| 584 switches::kLoggingLevel, | 584 switches::kLoggingLevel, |
| 585 switches::kHighLatencyAudio, | 585 switches::kLowLatencyAudio, |
| 586 switches::kNoJsRandomness, | 586 switches::kNoJsRandomness, |
| 587 switches::kNoReferrers, | 587 switches::kNoReferrers, |
| 588 switches::kNoSandbox, | 588 switches::kNoSandbox, |
| 589 switches::kPlaybackMode, | 589 switches::kPlaybackMode, |
| 590 switches::kPpapiOutOfProcess, | 590 switches::kPpapiOutOfProcess, |
| 591 switches::kRecordMode, | 591 switches::kRecordMode, |
| 592 switches::kRegisterPepperPlugins, | 592 switches::kRegisterPepperPlugins, |
| 593 switches::kRemoteShellPort, | 593 switches::kRemoteShellPort, |
| 594 switches::kRendererAssertTest, | 594 switches::kRendererAssertTest, |
| 595 #if !defined(OFFICIAL_BUILD) | 595 #if !defined(OFFICIAL_BUILD) |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 931 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { | 931 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { |
| 932 // Only honor the request if appropriate persmissions are granted. | 932 // Only honor the request if appropriate persmissions are granted. |
| 933 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) | 933 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) |
| 934 content::GetContentClient()->browser()->OpenItem(path); | 934 content::GetContentClient()->browser()->OpenItem(path); |
| 935 } | 935 } |
| 936 | 936 |
| 937 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, bool success) { | 937 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, bool success) { |
| 938 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> | 938 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> |
| 939 MHTMLGenerated(job_id, success); | 939 MHTMLGenerated(job_id, success); |
| 940 } | 940 } |
| OLD | NEW |