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 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 switches::kDisableLocalStorage, | 561 switches::kDisableLocalStorage, |
562 switches::kDisableLogging, | 562 switches::kDisableLogging, |
563 switches::kDisableSeccompSandbox, | 563 switches::kDisableSeccompSandbox, |
564 switches::kDisableSessionStorage, | 564 switches::kDisableSessionStorage, |
565 switches::kDisableSharedWorkers, | 565 switches::kDisableSharedWorkers, |
566 switches::kDisableSpeechInput, | 566 switches::kDisableSpeechInput, |
567 switches::kDisableWebAudio, | 567 switches::kDisableWebAudio, |
568 switches::kDisableWebSockets, | 568 switches::kDisableWebSockets, |
569 switches::kEnableAccessibilityLogging, | 569 switches::kEnableAccessibilityLogging, |
570 switches::kEnableDCHECK, | 570 switches::kEnableDCHECK, |
| 571 switches::kEnableGamepad, |
571 switches::kEnableGPUServiceLogging, | 572 switches::kEnableGPUServiceLogging, |
572 switches::kEnableGPUClientLogging, | 573 switches::kEnableGPUClientLogging, |
573 switches::kEnableLogging, | 574 switches::kEnableLogging, |
574 switches::kEnableMediaSource, | 575 switches::kEnableMediaSource, |
575 switches::kEnableMediaStream, | 576 switches::kEnableMediaStream, |
576 switches::kEnableStrictSiteIsolation, | 577 switches::kEnableStrictSiteIsolation, |
577 switches::kDisableFullScreen, | 578 switches::kDisableFullScreen, |
578 switches::kEnablePepperTesting, | 579 switches::kEnablePepperTesting, |
579 #if defined(OS_MACOSX) | 580 #if defined(OS_MACOSX) |
580 // Allow this to be set when invoking the browser and relayed along. | 581 // Allow this to be set when invoking the browser and relayed along. |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
993 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { | 994 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { |
994 // Only honor the request if appropriate persmissions are granted. | 995 // Only honor the request if appropriate persmissions are granted. |
995 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) | 996 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) |
996 content::GetContentClient()->browser()->OpenItem(path); | 997 content::GetContentClient()->browser()->OpenItem(path); |
997 } | 998 } |
998 | 999 |
999 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, int64 data_size) { | 1000 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, int64 data_size) { |
1000 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> | 1001 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> |
1001 MHTMLGenerated(job_id, data_size); | 1002 MHTMLGenerated(job_id, data_size); |
1002 } | 1003 } |
OLD | NEW |