| 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 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 switches::kEnableVideoLogging, | 579 switches::kEnableVideoLogging, |
| 580 switches::kFullMemoryCrashReport, | 580 switches::kFullMemoryCrashReport, |
| 581 #if !defined (GOOGLE_CHROME_BUILD) | 581 #if !defined (GOOGLE_CHROME_BUILD) |
| 582 // These are unsupported and not fully tested modes, so don't enable them | 582 // These are unsupported and not fully tested modes, so don't enable them |
| 583 // for official Google Chrome builds. | 583 // for official Google Chrome builds. |
| 584 switches::kInProcessPlugins, | 584 switches::kInProcessPlugins, |
| 585 #endif // GOOGLE_CHROME_BUILD | 585 #endif // GOOGLE_CHROME_BUILD |
| 586 switches::kInProcessWebGL, | 586 switches::kInProcessWebGL, |
| 587 switches::kJavaScriptFlags, | 587 switches::kJavaScriptFlags, |
| 588 switches::kLoggingLevel, | 588 switches::kLoggingLevel, |
| 589 switches::kLowLatencyAudio, | 589 switches::kHighLatencyAudio, |
| 590 switches::kNoJsRandomness, | 590 switches::kNoJsRandomness, |
| 591 switches::kNoReferrers, | 591 switches::kNoReferrers, |
| 592 switches::kNoSandbox, | 592 switches::kNoSandbox, |
| 593 switches::kPlaybackMode, | 593 switches::kPlaybackMode, |
| 594 switches::kPpapiOutOfProcess, | 594 switches::kPpapiOutOfProcess, |
| 595 switches::kRecordMode, | 595 switches::kRecordMode, |
| 596 switches::kRegisterPepperPlugins, | 596 switches::kRegisterPepperPlugins, |
| 597 switches::kRemoteShellPort, | 597 switches::kRemoteShellPort, |
| 598 switches::kRendererAssertTest, | 598 switches::kRendererAssertTest, |
| 599 #if !defined(OFFICIAL_BUILD) | 599 #if !defined(OFFICIAL_BUILD) |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 992 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { | 992 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { |
| 993 // Only honor the request if appropriate persmissions are granted. | 993 // Only honor the request if appropriate persmissions are granted. |
| 994 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) | 994 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) |
| 995 content::GetContentClient()->browser()->OpenItem(path); | 995 content::GetContentClient()->browser()->OpenItem(path); |
| 996 } | 996 } |
| 997 | 997 |
| 998 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, int64 data_size) { | 998 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, int64 data_size) { |
| 999 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> | 999 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> |
| 1000 MHTMLGenerated(job_id, data_size); | 1000 MHTMLGenerated(job_id, data_size); |
| 1001 } | 1001 } |
| OLD | NEW |