Chromium Code Reviews| 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 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 527 CommandLine* renderer_cmd) const { | 527 CommandLine* renderer_cmd) const { |
| 528 // Propagate the following switches to the renderer command line (along | 528 // Propagate the following switches to the renderer command line (along |
| 529 // with any associated values) if present in the browser command line. | 529 // with any associated values) if present in the browser command line. |
| 530 static const char* const kSwitchNames[] = { | 530 static const char* const kSwitchNames[] = { |
| 531 // We propagate the Chrome Frame command line here as well in case the | 531 // We propagate the Chrome Frame command line here as well in case the |
| 532 // renderer is not run in the sandbox. | 532 // renderer is not run in the sandbox. |
| 533 switches::kAuditAllHandles, | 533 switches::kAuditAllHandles, |
| 534 switches::kAuditHandles, | 534 switches::kAuditHandles, |
| 535 switches::kChromeFrame, | 535 switches::kChromeFrame, |
| 536 switches::kDisable3DAPIs, | 536 switches::kDisable3DAPIs, |
| 537 switches::kDisableAccelerated2dCanvas, | |
|
jamesr
2011/09/22 21:14:36
what does this line actually do?
| |
| 537 switches::kDisableAcceleratedCompositing, | 538 switches::kDisableAcceleratedCompositing, |
| 538 switches::kDisableApplicationCache, | 539 switches::kDisableApplicationCache, |
| 539 switches::kDisableAudio, | 540 switches::kDisableAudio, |
| 540 switches::kDisableBreakpad, | 541 switches::kDisableBreakpad, |
| 541 switches::kDisableDataTransferItems, | 542 switches::kDisableDataTransferItems, |
| 542 switches::kDisableDatabases, | 543 switches::kDisableDatabases, |
| 543 switches::kDisableDesktopNotifications, | 544 switches::kDisableDesktopNotifications, |
| 544 switches::kDisableDeviceOrientation, | 545 switches::kDisableDeviceOrientation, |
| 546 switches::kDisableExperimentalWebGL, | |
| 545 switches::kDisableFileSystem, | 547 switches::kDisableFileSystem, |
| 546 switches::kDisableGeolocation, | 548 switches::kDisableGeolocation, |
| 547 switches::kDisableGLMultisampling, | 549 switches::kDisableGLMultisampling, |
| 548 switches::kDisableGLSLTranslator, | 550 switches::kDisableGLSLTranslator, |
| 549 switches::kDisableGpuDriverBugWorkarounds, | 551 switches::kDisableGpuDriverBugWorkarounds, |
| 550 switches::kDisableGpuVsync, | 552 switches::kDisableGpuVsync, |
| 551 switches::kDisableIndexedDatabase, | 553 switches::kDisableIndexedDatabase, |
| 552 switches::kDisableJavaScriptI18NAPI, | 554 switches::kDisableJavaScriptI18NAPI, |
| 553 switches::kDisableLocalStorage, | 555 switches::kDisableLocalStorage, |
| 554 switches::kDisableLogging, | 556 switches::kDisableLogging, |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 990 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { | 992 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { |
| 991 // Only honor the request if appropriate persmissions are granted. | 993 // Only honor the request if appropriate persmissions are granted. |
| 992 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) | 994 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) |
| 993 content::GetContentClient()->browser()->OpenItem(path); | 995 content::GetContentClient()->browser()->OpenItem(path); |
| 994 } | 996 } |
| 995 | 997 |
| 996 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, bool success) { | 998 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, bool success) { |
| 997 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> | 999 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> |
| 998 MHTMLGenerated(job_id, success); | 1000 MHTMLGenerated(job_id, success); |
| 999 } | 1001 } |
| OLD | NEW |