| 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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 new IndexedDBDispatcherHost(id(), browser_context()->GetWebKitContext())); | 374 new IndexedDBDispatcherHost(id(), browser_context()->GetWebKitContext())); |
| 375 channel_->AddFilter( | 375 channel_->AddFilter( |
| 376 GeolocationDispatcherHost::New( | 376 GeolocationDispatcherHost::New( |
| 377 id(), browser_context()->GetGeolocationPermissionContext())); | 377 id(), browser_context()->GetGeolocationPermissionContext())); |
| 378 channel_->AddFilter(new GpuMessageFilter(id(), widget_helper_.get())); | 378 channel_->AddFilter(new GpuMessageFilter(id(), widget_helper_.get())); |
| 379 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost( | 379 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost( |
| 380 &browser_context()->GetResourceContext(), id())); | 380 &browser_context()->GetResourceContext(), id())); |
| 381 channel_->AddFilter(new PepperFileMessageFilter(id(), browser_context())); | 381 channel_->AddFilter(new PepperFileMessageFilter(id(), browser_context())); |
| 382 channel_->AddFilter( | 382 channel_->AddFilter( |
| 383 new PepperMessageFilter(&browser_context()->GetResourceContext())); | 383 new PepperMessageFilter(&browser_context()->GetResourceContext())); |
| 384 channel_->AddFilter(new speech_input::SpeechInputDispatcherHost(id())); | 384 channel_->AddFilter(new speech_input::SpeechInputDispatcherHost( |
| 385 id(), browser_context()->GetRequestContext(), |
| 386 browser_context()->GetSpeechInputPreferences())); |
| 385 channel_->AddFilter( | 387 channel_->AddFilter( |
| 386 new FileSystemDispatcherHost(browser_context()->GetRequestContext(), | 388 new FileSystemDispatcherHost(browser_context()->GetRequestContext(), |
| 387 browser_context()->GetFileSystemContext())); | 389 browser_context()->GetFileSystemContext())); |
| 388 channel_->AddFilter(new device_orientation::MessageFilter()); | 390 channel_->AddFilter(new device_orientation::MessageFilter()); |
| 389 channel_->AddFilter( | 391 channel_->AddFilter( |
| 390 new BlobMessageFilter(id(), browser_context()->GetBlobStorageContext())); | 392 new BlobMessageFilter(id(), browser_context()->GetBlobStorageContext())); |
| 391 channel_->AddFilter(new FileUtilitiesMessageFilter(id())); | 393 channel_->AddFilter(new FileUtilitiesMessageFilter(id())); |
| 392 channel_->AddFilter(new MimeRegistryMessageFilter()); | 394 channel_->AddFilter(new MimeRegistryMessageFilter()); |
| 393 channel_->AddFilter(new DatabaseMessageFilter( | 395 channel_->AddFilter(new DatabaseMessageFilter( |
| 394 browser_context()->GetDatabaseTracker())); | 396 browser_context()->GetDatabaseTracker())); |
| (...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 992 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { | 994 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { |
| 993 // Only honor the request if appropriate persmissions are granted. | 995 // Only honor the request if appropriate persmissions are granted. |
| 994 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) | 996 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) |
| 995 content::GetContentClient()->browser()->OpenItem(path); | 997 content::GetContentClient()->browser()->OpenItem(path); |
| 996 } | 998 } |
| 997 | 999 |
| 998 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, int64 data_size) { | 1000 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, int64 data_size) { |
| 999 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> | 1001 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> |
| 1000 MHTMLGenerated(job_id, data_size); | 1002 MHTMLGenerated(job_id, data_size); |
| 1001 } | 1003 } |
| OLD | NEW |