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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 switches::kDisableGLSLTranslator, | 529 switches::kDisableGLSLTranslator, |
530 switches::kDisableGpuVsync, | 530 switches::kDisableGpuVsync, |
531 switches::kDisableIndexedDatabase, | 531 switches::kDisableIndexedDatabase, |
532 switches::kDisableJavaScriptI18NAPI, | 532 switches::kDisableJavaScriptI18NAPI, |
533 switches::kDisableLocalStorage, | 533 switches::kDisableLocalStorage, |
534 switches::kDisableLogging, | 534 switches::kDisableLogging, |
535 switches::kDisableSeccompSandbox, | 535 switches::kDisableSeccompSandbox, |
536 switches::kDisableSessionStorage, | 536 switches::kDisableSessionStorage, |
537 switches::kDisableSharedWorkers, | 537 switches::kDisableSharedWorkers, |
538 switches::kDisableSpeechInput, | 538 switches::kDisableSpeechInput, |
| 539 switches::kDisableWebAudio, |
539 switches::kDisableWebSockets, | 540 switches::kDisableWebSockets, |
540 switches::kEnableAdaptive, | 541 switches::kEnableAdaptive, |
541 switches::kEnableBenchmarking, | 542 switches::kEnableBenchmarking, |
542 switches::kEnableDCHECK, | 543 switches::kEnableDCHECK, |
543 switches::kEnableGPUServiceLogging, | 544 switches::kEnableGPUServiceLogging, |
544 switches::kEnableGPUClientLogging, | 545 switches::kEnableGPUClientLogging, |
545 switches::kEnableLogging, | 546 switches::kEnableLogging, |
546 switches::kEnableMediaStream, | 547 switches::kEnableMediaStream, |
547 switches::kEnableOpenMax, | 548 switches::kEnableOpenMax, |
548 #if defined(ENABLE_P2P_APIS) | 549 #if defined(ENABLE_P2P_APIS) |
549 switches::kEnableP2PApi, | 550 switches::kEnableP2PApi, |
550 #endif | 551 #endif |
551 switches::kEnablePepperTesting, | 552 switches::kEnablePepperTesting, |
552 #if defined(OS_MACOSX) | 553 #if defined(OS_MACOSX) |
553 // Allow this to be set when invoking the browser and relayed along. | 554 // Allow this to be set when invoking the browser and relayed along. |
554 switches::kEnableSandboxLogging, | 555 switches::kEnableSandboxLogging, |
555 #endif | 556 #endif |
556 switches::kEnableSeccompSandbox, | 557 switches::kEnableSeccompSandbox, |
557 switches::kEnableStatsTable, | 558 switches::kEnableStatsTable, |
558 switches::kEnableVideoFullscreen, | 559 switches::kEnableVideoFullscreen, |
559 switches::kEnableVideoLogging, | 560 switches::kEnableVideoLogging, |
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::kNoJsRandomness, | 570 switches::kNoJsRandomness, |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
917 void BrowserRenderProcessHost::OnUserMetricsRecordAction( | 917 void BrowserRenderProcessHost::OnUserMetricsRecordAction( |
918 const std::string& action) { | 918 const std::string& action) { |
919 UserMetrics::RecordComputedAction(action); | 919 UserMetrics::RecordComputedAction(action); |
920 } | 920 } |
921 | 921 |
922 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { | 922 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { |
923 // Only honor the request if appropriate persmissions are granted. | 923 // Only honor the request if appropriate persmissions are granted. |
924 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) | 924 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) |
925 content::GetContentClient()->browser()->RevealFolderInOS(path); | 925 content::GetContentClient()->browser()->RevealFolderInOS(path); |
926 } | 926 } |
OLD | NEW |