| 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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 540 switches::kDisableDesktopNotifications, | 540 switches::kDisableDesktopNotifications, |
| 541 switches::kDisableDeviceOrientation, | 541 switches::kDisableDeviceOrientation, |
| 542 switches::kDisableFileSystem, | 542 switches::kDisableFileSystem, |
| 543 switches::kDisableGeolocation, | 543 switches::kDisableGeolocation, |
| 544 switches::kDisableGLMultisampling, | 544 switches::kDisableGLMultisampling, |
| 545 switches::kDisableGLSLTranslator, | 545 switches::kDisableGLSLTranslator, |
| 546 switches::kDisableIndexedDatabase, | 546 switches::kDisableIndexedDatabase, |
| 547 switches::kDisableJavaScriptI18NAPI, | 547 switches::kDisableJavaScriptI18NAPI, |
| 548 switches::kDisableLocalStorage, | 548 switches::kDisableLocalStorage, |
| 549 switches::kDisableLogging, | 549 switches::kDisableLogging, |
| 550 #if defined(GOOGLE_CHROME_BUILD) && !defined(OS_CHROMEOS) && !defined(OS_MACOSX) | |
| 551 // Enabled by default in Google Chrome builds, except on CrOS. | |
| 552 switches::kDisablePrintPreview, | 550 switches::kDisablePrintPreview, |
| 553 #else | |
| 554 // Disabled by default in Chromium builds and on CrOS. | |
| 555 switches::kEnablePrintPreview, | 551 switches::kEnablePrintPreview, |
| 556 #endif | |
| 557 switches::kDisableSeccompSandbox, | 552 switches::kDisableSeccompSandbox, |
| 558 switches::kDisableSessionStorage, | 553 switches::kDisableSessionStorage, |
| 559 switches::kDisableSharedWorkers, | 554 switches::kDisableSharedWorkers, |
| 560 switches::kDisableSpeechInput, | 555 switches::kDisableSpeechInput, |
| 561 switches::kDisableWebSockets, | 556 switches::kDisableWebSockets, |
| 562 switches::kDomAutomationController, | 557 switches::kDomAutomationController, |
| 563 switches::kDumpHistogramsOnExit, | 558 switches::kDumpHistogramsOnExit, |
| 564 switches::kEnableAcceleratedDecoding, | 559 switches::kEnableAcceleratedDecoding, |
| 565 switches::kEnableAdaptive, | 560 switches::kEnableAdaptive, |
| 566 switches::kEnableBenchmarking, | 561 switches::kEnableBenchmarking, |
| (...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 970 void BrowserRenderProcessHost::OnUserMetricsRecordAction( | 965 void BrowserRenderProcessHost::OnUserMetricsRecordAction( |
| 971 const std::string& action) { | 966 const std::string& action) { |
| 972 UserMetrics::RecordComputedAction(action); | 967 UserMetrics::RecordComputedAction(action); |
| 973 } | 968 } |
| 974 | 969 |
| 975 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { | 970 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { |
| 976 // Only honor the request if appropriate persmissions are granted. | 971 // Only honor the request if appropriate persmissions are granted. |
| 977 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) | 972 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) |
| 978 content::GetContentClient()->browser()->RevealFolderInOS(path); | 973 content::GetContentClient()->browser()->RevealFolderInOS(path); |
| 979 } | 974 } |
| OLD | NEW |