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 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 switches::kDisableIndexedDatabase, | 547 switches::kDisableIndexedDatabase, |
548 switches::kDisableJavaScriptI18NAPI, | 548 switches::kDisableJavaScriptI18NAPI, |
549 switches::kDisableLocalStorage, | 549 switches::kDisableLocalStorage, |
550 switches::kDisableLogging, | 550 switches::kDisableLogging, |
551 switches::kDisableSeccompSandbox, | 551 switches::kDisableSeccompSandbox, |
552 switches::kDisableSessionStorage, | 552 switches::kDisableSessionStorage, |
553 switches::kDisableSharedWorkers, | 553 switches::kDisableSharedWorkers, |
554 switches::kDisableSpeechInput, | 554 switches::kDisableSpeechInput, |
555 switches::kDisableWebAudio, | 555 switches::kDisableWebAudio, |
556 switches::kDisableWebSockets, | 556 switches::kDisableWebSockets, |
| 557 switches::kEnableAccessibilityLogging, |
557 switches::kEnableAdaptive, | 558 switches::kEnableAdaptive, |
558 switches::kEnableBenchmarking, | 559 switches::kEnableBenchmarking, |
559 switches::kEnableDCHECK, | 560 switches::kEnableDCHECK, |
560 switches::kEnableGPUServiceLogging, | 561 switches::kEnableGPUServiceLogging, |
561 switches::kEnableGPUClientLogging, | 562 switches::kEnableGPUClientLogging, |
562 switches::kEnableLogging, | 563 switches::kEnableLogging, |
563 switches::kEnableMediaStream, | 564 switches::kEnableMediaStream, |
564 switches::kEnablePepperTesting, | 565 switches::kEnablePepperTesting, |
565 #if defined(OS_MACOSX) | 566 #if defined(OS_MACOSX) |
566 // Allow this to be set when invoking the browser and relayed along. | 567 // Allow this to be set when invoking the browser and relayed along. |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
928 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { | 929 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { |
929 // Only honor the request if appropriate persmissions are granted. | 930 // Only honor the request if appropriate persmissions are granted. |
930 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) | 931 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) |
931 content::GetContentClient()->browser()->OpenItem(path); | 932 content::GetContentClient()->browser()->OpenItem(path); |
932 } | 933 } |
933 | 934 |
934 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, bool success) { | 935 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, bool success) { |
935 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> | 936 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> |
936 MHTMLGenerated(job_id, success); | 937 MHTMLGenerated(job_id, success); |
937 } | 938 } |
OLD | NEW |