| 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 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 559 switches::kEnableVideoLogging, | 559 switches::kEnableVideoLogging, |
| 560 switches::kFullMemoryCrashReport, | 560 switches::kFullMemoryCrashReport, |
| 561 #if !defined (GOOGLE_CHROME_BUILD) | 561 #if !defined (GOOGLE_CHROME_BUILD) |
| 562 // These are unsupported and not fully tested modes, so don't enable them | 562 // These are unsupported and not fully tested modes, so don't enable them |
| 563 // for official Google Chrome builds. | 563 // for official Google Chrome builds. |
| 564 switches::kInProcessPlugins, | 564 switches::kInProcessPlugins, |
| 565 #endif // GOOGLE_CHROME_BUILD | 565 #endif // GOOGLE_CHROME_BUILD |
| 566 switches::kInProcessWebGL, | 566 switches::kInProcessWebGL, |
| 567 switches::kJavaScriptFlags, | 567 switches::kJavaScriptFlags, |
| 568 switches::kLoggingLevel, | 568 switches::kLoggingLevel, |
| 569 switches::kLowLatencyAudio, |
| 569 switches::kNoJsRandomness, | 570 switches::kNoJsRandomness, |
| 570 switches::kNoReferrers, | 571 switches::kNoReferrers, |
| 571 switches::kNoSandbox, | 572 switches::kNoSandbox, |
| 572 switches::kPlaybackMode, | 573 switches::kPlaybackMode, |
| 573 switches::kPpapiOutOfProcess, | 574 switches::kPpapiOutOfProcess, |
| 574 switches::kRecordMode, | 575 switches::kRecordMode, |
| 575 switches::kRegisterPepperPlugins, | 576 switches::kRegisterPepperPlugins, |
| 576 switches::kRendererAssertTest, | 577 switches::kRendererAssertTest, |
| 577 #if !defined(OFFICIAL_BUILD) | 578 #if !defined(OFFICIAL_BUILD) |
| 578 switches::kRendererCheckFalseTest, | 579 switches::kRendererCheckFalseTest, |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 907 void BrowserRenderProcessHost::OnUserMetricsRecordAction( | 908 void BrowserRenderProcessHost::OnUserMetricsRecordAction( |
| 908 const std::string& action) { | 909 const std::string& action) { |
| 909 UserMetrics::RecordComputedAction(action); | 910 UserMetrics::RecordComputedAction(action); |
| 910 } | 911 } |
| 911 | 912 |
| 912 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { | 913 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { |
| 913 // Only honor the request if appropriate persmissions are granted. | 914 // Only honor the request if appropriate persmissions are granted. |
| 914 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) | 915 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) |
| 915 content::GetContentClient()->browser()->RevealFolderInOS(path); | 916 content::GetContentClient()->browser()->RevealFolderInOS(path); |
| 916 } | 917 } |
| OLD | NEW |