| 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 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 switches::kDisableIndexedDatabase, | 553 switches::kDisableIndexedDatabase, |
| 554 switches::kDisableJavaScriptI18NAPI, | 554 switches::kDisableJavaScriptI18NAPI, |
| 555 switches::kDisableLocalStorage, | 555 switches::kDisableLocalStorage, |
| 556 switches::kDisableLogging, | 556 switches::kDisableLogging, |
| 557 switches::kDisableSeccompSandbox, | 557 switches::kDisableSeccompSandbox, |
| 558 switches::kDisableSessionStorage, | 558 switches::kDisableSessionStorage, |
| 559 switches::kDisableSharedWorkers, | 559 switches::kDisableSharedWorkers, |
| 560 switches::kDisableSpeechInput, | 560 switches::kDisableSpeechInput, |
| 561 switches::kDisableWebAudio, | 561 switches::kDisableWebAudio, |
| 562 switches::kDisableWebSockets, | 562 switches::kDisableWebSockets, |
| 563 switches::kEnableAccelerated2dCanvas, |
| 563 switches::kEnableAccessibilityLogging, | 564 switches::kEnableAccessibilityLogging, |
| 564 switches::kEnableDCHECK, | 565 switches::kEnableDCHECK, |
| 565 switches::kEnableGPUServiceLogging, | 566 switches::kEnableGPUServiceLogging, |
| 566 switches::kEnableGPUClientLogging, | 567 switches::kEnableGPUClientLogging, |
| 567 switches::kEnableLogging, | 568 switches::kEnableLogging, |
| 568 switches::kEnableMediaStream, | 569 switches::kEnableMediaStream, |
| 569 switches::kDisableFullScreen, | 570 switches::kDisableFullScreen, |
| 570 switches::kEnablePepperTesting, | 571 switches::kEnablePepperTesting, |
| 571 #if defined(OS_MACOSX) | 572 #if defined(OS_MACOSX) |
| 572 // Allow this to be set when invoking the browser and relayed along. | 573 // Allow this to be set when invoking the browser and relayed along. |
| (...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 976 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { | 977 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { |
| 977 // Only honor the request if appropriate persmissions are granted. | 978 // Only honor the request if appropriate persmissions are granted. |
| 978 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) | 979 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) |
| 979 content::GetContentClient()->browser()->OpenItem(path); | 980 content::GetContentClient()->browser()->OpenItem(path); |
| 980 } | 981 } |
| 981 | 982 |
| 982 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, int64 data_size) { | 983 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, int64 data_size) { |
| 983 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> | 984 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> |
| 984 MHTMLGenerated(job_id, data_size); | 985 MHTMLGenerated(job_id, data_size); |
| 985 } | 986 } |
| OLD | NEW |