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) | |
vandebo (ex-Chrome)
2011/08/16 21:57:48
Do we still need this for CrOS?
Lei Zhang
2011/08/16 22:17:04
CrOS has no way for the user to set command line f
| |
551 // Enabled by default in Google Chrome builds, except on CrOS. | |
552 switches::kDisablePrintPreview, | |
553 #else | |
554 // Disabled by default in Chromium builds and on CrOS. | |
555 switches::kEnablePrintPreview, | 550 switches::kEnablePrintPreview, |
556 #endif | |
557 switches::kDisableSeccompSandbox, | 551 switches::kDisableSeccompSandbox, |
558 switches::kDisableSessionStorage, | 552 switches::kDisableSessionStorage, |
559 switches::kDisableSharedWorkers, | 553 switches::kDisableSharedWorkers, |
560 switches::kDisableSpeechInput, | 554 switches::kDisableSpeechInput, |
561 switches::kDisableWebSockets, | 555 switches::kDisableWebSockets, |
562 switches::kDomAutomationController, | 556 switches::kDomAutomationController, |
563 switches::kDumpHistogramsOnExit, | 557 switches::kDumpHistogramsOnExit, |
564 switches::kEnableAcceleratedDecoding, | 558 switches::kEnableAcceleratedDecoding, |
565 switches::kEnableAdaptive, | 559 switches::kEnableAdaptive, |
566 switches::kEnableBenchmarking, | 560 switches::kEnableBenchmarking, |
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
970 void BrowserRenderProcessHost::OnUserMetricsRecordAction( | 964 void BrowserRenderProcessHost::OnUserMetricsRecordAction( |
971 const std::string& action) { | 965 const std::string& action) { |
972 UserMetrics::RecordComputedAction(action); | 966 UserMetrics::RecordComputedAction(action); |
973 } | 967 } |
974 | 968 |
975 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { | 969 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { |
976 // Only honor the request if appropriate persmissions are granted. | 970 // Only honor the request if appropriate persmissions are granted. |
977 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) | 971 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) |
978 content::GetContentClient()->browser()->RevealFolderInOS(path); | 972 content::GetContentClient()->browser()->RevealFolderInOS(path); |
979 } | 973 } |
OLD | NEW |