| 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 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 #include "content/browser/fileapi/chrome_blob_storage_context.h" | 50 #include "content/browser/fileapi/chrome_blob_storage_context.h" |
| 51 #include "content/browser/fileapi/fileapi_message_filter.h" | 51 #include "content/browser/fileapi/fileapi_message_filter.h" |
| 52 #include "content/browser/geolocation/geolocation_dispatcher_host.h" | 52 #include "content/browser/geolocation/geolocation_dispatcher_host.h" |
| 53 #include "content/browser/gpu/gpu_data_manager_impl.h" | 53 #include "content/browser/gpu/gpu_data_manager_impl.h" |
| 54 #include "content/browser/gpu/gpu_process_host.h" | 54 #include "content/browser/gpu/gpu_process_host.h" |
| 55 #include "content/browser/histogram_message_filter.h" | 55 #include "content/browser/histogram_message_filter.h" |
| 56 #include "content/browser/hyphenator/hyphenator_message_filter.h" | 56 #include "content/browser/hyphenator/hyphenator_message_filter.h" |
| 57 #include "content/browser/in_process_webkit/indexed_db_context_impl.h" | 57 #include "content/browser/in_process_webkit/indexed_db_context_impl.h" |
| 58 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" | 58 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" |
| 59 #include "content/browser/loader/resource_message_filter.h" | 59 #include "content/browser/loader/resource_message_filter.h" |
| 60 #include "content/browser/loader/resource_scheduler_filter.h" | |
| 61 #include "content/browser/media/media_internals.h" | 60 #include "content/browser/media/media_internals.h" |
| 62 #include "content/browser/mime_registry_message_filter.h" | 61 #include "content/browser/mime_registry_message_filter.h" |
| 63 #include "content/browser/plugin_service_impl.h" | 62 #include "content/browser/plugin_service_impl.h" |
| 64 #include "content/browser/profiler_message_filter.h" | 63 #include "content/browser/profiler_message_filter.h" |
| 65 #include "content/browser/renderer_host/clipboard_message_filter.h" | 64 #include "content/browser/renderer_host/clipboard_message_filter.h" |
| 66 #include "content/browser/renderer_host/database_message_filter.h" | 65 #include "content/browser/renderer_host/database_message_filter.h" |
| 67 #include "content/browser/renderer_host/file_utilities_message_filter.h" | 66 #include "content/browser/renderer_host/file_utilities_message_filter.h" |
| 68 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" | 67 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" |
| 69 #include "content/browser/renderer_host/gpu_message_filter.h" | 68 #include "content/browser/renderer_host/gpu_message_filter.h" |
| 70 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" | 69 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 | 475 |
| 477 fast_shutdown_started_ = false; | 476 fast_shutdown_started_ = false; |
| 478 } | 477 } |
| 479 | 478 |
| 480 is_initialized_ = true; | 479 is_initialized_ = true; |
| 481 return true; | 480 return true; |
| 482 } | 481 } |
| 483 | 482 |
| 484 void RenderProcessHostImpl::CreateMessageFilters() { | 483 void RenderProcessHostImpl::CreateMessageFilters() { |
| 485 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 484 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 486 channel_->AddFilter(new ResourceSchedulerFilter(GetID())); | |
| 487 MediaInternals* media_internals = MediaInternals::GetInstance();; | 485 MediaInternals* media_internals = MediaInternals::GetInstance();; |
| 488 // Add BrowserPluginMessageFilter to ensure it gets the first stab at messages | 486 // Add BrowserPluginMessageFilter to ensure it gets the first stab at messages |
| 489 // from guests. | 487 // from guests. |
| 490 if (IsGuest()) { | 488 if (IsGuest()) { |
| 491 scoped_refptr<BrowserPluginMessageFilter> bp_message_filter( | 489 scoped_refptr<BrowserPluginMessageFilter> bp_message_filter( |
| 492 new BrowserPluginMessageFilter( | 490 new BrowserPluginMessageFilter( |
| 493 GetID(), | 491 GetID(), |
| 494 GetBrowserContext())); | 492 GetBrowserContext())); |
| 495 channel_->AddFilter(bp_message_filter); | 493 channel_->AddFilter(bp_message_filter); |
| 496 } | 494 } |
| (...skipping 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1626 TRACE_EVENT0("renderer_host", | 1624 TRACE_EVENT0("renderer_host", |
| 1627 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1625 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
| 1628 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; | 1626 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
| 1629 ack_params.sync_point = 0; | 1627 ack_params.sync_point = 0; |
| 1630 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1628 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
| 1631 gpu_process_host_id, | 1629 gpu_process_host_id, |
| 1632 ack_params); | 1630 ack_params); |
| 1633 } | 1631 } |
| 1634 | 1632 |
| 1635 } // namespace content | 1633 } // namespace content |
| OLD | NEW |