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