Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/render_process_host_impl.h" | 8 #include "content/browser/renderer_host/render_process_host_impl.h" |
| 9 | 9 |
| 10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
| (...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 493 #if defined(ENABLE_WEBRTC) | 493 #if defined(ENABLE_WEBRTC) |
| 494 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost( | 494 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost( |
| 495 resource_context, GetID(), content::BrowserMainLoop::GetAudioManager())); | 495 resource_context, GetID(), content::BrowserMainLoop::GetAudioManager())); |
| 496 #endif | 496 #endif |
| 497 channel_->AddFilter(new PepperFileMessageFilter(GetID(), browser_context)); | 497 channel_->AddFilter(new PepperFileMessageFilter(GetID(), browser_context)); |
| 498 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, | 498 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, |
| 499 GetID(), resource_context)); | 499 GetID(), resource_context)); |
| 500 #if defined(ENABLE_INPUT_SPEECH) | 500 #if defined(ENABLE_INPUT_SPEECH) |
| 501 channel_->AddFilter(new speech::InputTagSpeechDispatcherHost( | 501 channel_->AddFilter(new speech::InputTagSpeechDispatcherHost( |
| 502 GetID(), browser_context->GetRequestContext(), | 502 GetID(), browser_context->GetRequestContext(), |
| 503 browser_context->GetSpeechRecognitionPreferences(), | 503 browser_context->GetSpeechRecognitionPreferences())); |
| 504 content::BrowserMainLoop::GetAudioManager())); | |
|
Primiano Tucci (use gerrit)
2012/04/16 11:46:43
This is not tightly related with this CL. Just not
| |
| 505 #endif | 504 #endif |
| 506 channel_->AddFilter(new FileAPIMessageFilter( | 505 channel_->AddFilter(new FileAPIMessageFilter( |
| 507 GetID(), | 506 GetID(), |
| 508 browser_context->GetRequestContext(), | 507 browser_context->GetRequestContext(), |
| 509 BrowserContext::GetFileSystemContext(browser_context), | 508 BrowserContext::GetFileSystemContext(browser_context), |
| 510 ChromeBlobStorageContext::GetFor(browser_context))); | 509 ChromeBlobStorageContext::GetFor(browser_context))); |
| 511 channel_->AddFilter(new device_orientation::MessageFilter()); | 510 channel_->AddFilter(new device_orientation::MessageFilter()); |
| 512 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID())); | 511 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID())); |
| 513 channel_->AddFilter(new MimeRegistryMessageFilter()); | 512 channel_->AddFilter(new MimeRegistryMessageFilter()); |
| 514 channel_->AddFilter(new DatabaseMessageFilter( | 513 channel_->AddFilter(new DatabaseMessageFilter( |
| (...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1341 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { | 1340 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { |
| 1342 // Only honor the request if appropriate persmissions are granted. | 1341 // Only honor the request if appropriate persmissions are granted. |
| 1343 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(), | 1342 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(), |
| 1344 path)) | 1343 path)) |
| 1345 content::GetContentClient()->browser()->OpenItem(path); | 1344 content::GetContentClient()->browser()->OpenItem(path); |
| 1346 } | 1345 } |
| 1347 | 1346 |
| 1348 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { | 1347 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { |
| 1349 MHTMLGenerationManager::GetInstance()->MHTMLGenerated(job_id, data_size); | 1348 MHTMLGenerationManager::GetInstance()->MHTMLGenerated(job_id, data_size); |
| 1350 } | 1349 } |
| OLD | NEW |