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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 #include "content/browser/browser_main.h" | 43 #include "content/browser/browser_main.h" |
44 #include "content/browser/browser_main_loop.h" | 44 #include "content/browser/browser_main_loop.h" |
45 #include "content/browser/child_process_security_policy_impl.h" | 45 #include "content/browser/child_process_security_policy_impl.h" |
46 #include "content/browser/chrome_blob_storage_context.h" | 46 #include "content/browser/chrome_blob_storage_context.h" |
47 #include "content/browser/device_orientation/message_filter.h" | 47 #include "content/browser/device_orientation/message_filter.h" |
48 #include "content/browser/download/mhtml_generation_manager.h" | 48 #include "content/browser/download/mhtml_generation_manager.h" |
49 #include "content/browser/file_system/file_system_dispatcher_host.h" | 49 #include "content/browser/file_system/file_system_dispatcher_host.h" |
50 #include "content/browser/geolocation/geolocation_dispatcher_host.h" | 50 #include "content/browser/geolocation/geolocation_dispatcher_host.h" |
51 #include "content/browser/gpu/gpu_data_manager_impl.h" | 51 #include "content/browser/gpu/gpu_data_manager_impl.h" |
52 #include "content/browser/gpu/gpu_process_host.h" | 52 #include "content/browser/gpu/gpu_process_host.h" |
| 53 #include "content/browser/in_process_webkit/dom_storage_context_impl.h" |
53 #include "content/browser/in_process_webkit/dom_storage_message_filter.h" | 54 #include "content/browser/in_process_webkit/dom_storage_message_filter.h" |
54 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" | 55 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" |
| 56 #include "content/browser/in_process_webkit/indexed_db_context_impl.h" |
55 #include "content/browser/mime_registry_message_filter.h" | 57 #include "content/browser/mime_registry_message_filter.h" |
56 #include "content/browser/plugin_service_impl.h" | 58 #include "content/browser/plugin_service_impl.h" |
57 #include "content/browser/profiler_message_filter.h" | 59 #include "content/browser/profiler_message_filter.h" |
58 #include "content/browser/renderer_host/blob_message_filter.h" | 60 #include "content/browser/renderer_host/blob_message_filter.h" |
59 #include "content/browser/renderer_host/clipboard_message_filter.h" | 61 #include "content/browser/renderer_host/clipboard_message_filter.h" |
60 #include "content/browser/renderer_host/database_message_filter.h" | 62 #include "content/browser/renderer_host/database_message_filter.h" |
61 #include "content/browser/renderer_host/file_utilities_message_filter.h" | 63 #include "content/browser/renderer_host/file_utilities_message_filter.h" |
62 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" | 64 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" |
63 #include "content/browser/renderer_host/gpu_message_filter.h" | 65 #include "content/browser/renderer_host/gpu_message_filter.h" |
64 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" | 66 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 channel_->AddFilter(new AudioInputRendererHost( | 468 channel_->AddFilter(new AudioInputRendererHost( |
467 resource_context, audio_manager)); | 469 resource_context, audio_manager)); |
468 channel_->AddFilter(new AudioRendererHost(resource_context, audio_manager)); | 470 channel_->AddFilter(new AudioRendererHost(resource_context, audio_manager)); |
469 channel_->AddFilter(new VideoCaptureHost(resource_context, audio_manager)); | 471 channel_->AddFilter(new VideoCaptureHost(resource_context, audio_manager)); |
470 channel_->AddFilter(new AppCacheDispatcherHost( | 472 channel_->AddFilter(new AppCacheDispatcherHost( |
471 static_cast<ChromeAppCacheService*>( | 473 static_cast<ChromeAppCacheService*>( |
472 BrowserContext::GetAppCacheService(browser_context)), | 474 BrowserContext::GetAppCacheService(browser_context)), |
473 GetID())); | 475 GetID())); |
474 channel_->AddFilter(new ClipboardMessageFilter()); | 476 channel_->AddFilter(new ClipboardMessageFilter()); |
475 channel_->AddFilter(new DOMStorageMessageFilter(GetID(), | 477 channel_->AddFilter(new DOMStorageMessageFilter(GetID(), |
476 BrowserContext::GetWebKitContext(browser_context))); | 478 static_cast<DOMStorageContextImpl*>( |
| 479 BrowserContext::GetDOMStorageContext(browser_context)))); |
477 channel_->AddFilter(new IndexedDBDispatcherHost(GetID(), | 480 channel_->AddFilter(new IndexedDBDispatcherHost(GetID(), |
478 BrowserContext::GetWebKitContext(browser_context))); | 481 static_cast<IndexedDBContextImpl*>( |
| 482 BrowserContext::GetIndexedDBContext(browser_context)))); |
479 channel_->AddFilter(GeolocationDispatcherHost::New( | 483 channel_->AddFilter(GeolocationDispatcherHost::New( |
480 GetID(), browser_context->GetGeolocationPermissionContext())); | 484 GetID(), browser_context->GetGeolocationPermissionContext())); |
481 channel_->AddFilter(new GpuMessageFilter(GetID(), widget_helper_.get())); | 485 channel_->AddFilter(new GpuMessageFilter(GetID(), widget_helper_.get())); |
482 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost( | 486 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost( |
483 resource_context, GetID(), audio_manager)); | 487 resource_context, GetID(), audio_manager)); |
484 channel_->AddFilter(new PepperFileMessageFilter(GetID(), browser_context)); | 488 channel_->AddFilter(new PepperFileMessageFilter(GetID(), browser_context)); |
485 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, | 489 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, |
486 GetID(), resource_context)); | 490 GetID(), resource_context)); |
487 #if defined(ENABLE_INPUT_SPEECH) | 491 #if defined(ENABLE_INPUT_SPEECH) |
488 channel_->AddFilter(new speech_input::SpeechInputDispatcherHost( | 492 channel_->AddFilter(new speech_input::SpeechInputDispatcherHost( |
(...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1313 // Only honor the request if appropriate persmissions are granted. | 1317 // Only honor the request if appropriate persmissions are granted. |
1314 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(), | 1318 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(), |
1315 path)) | 1319 path)) |
1316 content::GetContentClient()->browser()->OpenItem(path); | 1320 content::GetContentClient()->browser()->OpenItem(path); |
1317 } | 1321 } |
1318 | 1322 |
1319 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { | 1323 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { |
1320 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> | 1324 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> |
1321 MHTMLGenerated(job_id, data_size); | 1325 MHTMLGenerated(job_id, data_size); |
1322 } | 1326 } |
OLD | NEW |