| 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 27 matching lines...) Expand all Loading... |
| 38 #include "base/supports_user_data.h" | 38 #include "base/supports_user_data.h" |
| 39 #include "base/sys_info.h" | 39 #include "base/sys_info.h" |
| 40 #include "base/threading/thread.h" | 40 #include "base/threading/thread.h" |
| 41 #include "base/threading/thread_restrictions.h" | 41 #include "base/threading/thread_restrictions.h" |
| 42 #include "base/tracked_objects.h" | 42 #include "base/tracked_objects.h" |
| 43 #include "content/browser/appcache/appcache_dispatcher_host.h" | 43 #include "content/browser/appcache/appcache_dispatcher_host.h" |
| 44 #include "content/browser/appcache/chrome_appcache_service.h" | 44 #include "content/browser/appcache/chrome_appcache_service.h" |
| 45 #include "content/browser/browser_main.h" | 45 #include "content/browser/browser_main.h" |
| 46 #include "content/browser/browser_main_loop.h" | 46 #include "content/browser/browser_main_loop.h" |
| 47 #include "content/browser/child_process_security_policy_impl.h" | 47 #include "content/browser/child_process_security_policy_impl.h" |
| 48 #include "content/browser/device_orientation/motion_message_filter.h" |
| 48 #include "content/browser/device_orientation/orientation_message_filter.h" | 49 #include "content/browser/device_orientation/orientation_message_filter.h" |
| 49 #include "content/browser/dom_storage/dom_storage_context_impl.h" | 50 #include "content/browser/dom_storage/dom_storage_context_impl.h" |
| 50 #include "content/browser/dom_storage/dom_storage_message_filter.h" | 51 #include "content/browser/dom_storage/dom_storage_message_filter.h" |
| 51 #include "content/browser/download/mhtml_generation_manager.h" | 52 #include "content/browser/download/mhtml_generation_manager.h" |
| 52 #include "content/browser/fileapi/chrome_blob_storage_context.h" | 53 #include "content/browser/fileapi/chrome_blob_storage_context.h" |
| 53 #include "content/browser/fileapi/fileapi_message_filter.h" | 54 #include "content/browser/fileapi/fileapi_message_filter.h" |
| 54 #include "content/browser/geolocation/geolocation_dispatcher_host.h" | 55 #include "content/browser/geolocation/geolocation_dispatcher_host.h" |
| 55 #include "content/browser/gpu/gpu_data_manager_impl.h" | 56 #include "content/browser/gpu/gpu_data_manager_impl.h" |
| 56 #include "content/browser/gpu/gpu_process_host.h" | 57 #include "content/browser/gpu/gpu_process_host.h" |
| 57 #include "content/browser/histogram_message_filter.h" | 58 #include "content/browser/histogram_message_filter.h" |
| (...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 559 browser_context->GetSpeechRecognitionPreferences())); | 560 browser_context->GetSpeechRecognitionPreferences())); |
| 560 channel_->AddFilter(new speech::SpeechRecognitionDispatcherHost( | 561 channel_->AddFilter(new speech::SpeechRecognitionDispatcherHost( |
| 561 GetID(), browser_context->GetRequestContext(), | 562 GetID(), browser_context->GetRequestContext(), |
| 562 browser_context->GetSpeechRecognitionPreferences())); | 563 browser_context->GetSpeechRecognitionPreferences())); |
| 563 #endif | 564 #endif |
| 564 channel_->AddFilter(new FileAPIMessageFilter( | 565 channel_->AddFilter(new FileAPIMessageFilter( |
| 565 GetID(), | 566 GetID(), |
| 566 browser_context->GetRequestContext(), | 567 browser_context->GetRequestContext(), |
| 567 BrowserContext::GetFileSystemContext(browser_context), | 568 BrowserContext::GetFileSystemContext(browser_context), |
| 568 ChromeBlobStorageContext::GetFor(browser_context))); | 569 ChromeBlobStorageContext::GetFor(browser_context))); |
| 570 channel_->AddFilter(new MotionMessageFilter()); |
| 569 channel_->AddFilter(new OrientationMessageFilter()); | 571 channel_->AddFilter(new OrientationMessageFilter()); |
| 570 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID())); | 572 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID())); |
| 571 channel_->AddFilter(new MimeRegistryMessageFilter()); | 573 channel_->AddFilter(new MimeRegistryMessageFilter()); |
| 572 channel_->AddFilter(new DatabaseMessageFilter( | 574 channel_->AddFilter(new DatabaseMessageFilter( |
| 573 BrowserContext::GetDatabaseTracker(browser_context))); | 575 BrowserContext::GetDatabaseTracker(browser_context))); |
| 574 #if defined(OS_MACOSX) | 576 #if defined(OS_MACOSX) |
| 575 channel_->AddFilter(new TextInputClientMessageFilter(GetID())); | 577 channel_->AddFilter(new TextInputClientMessageFilter(GetID())); |
| 576 #elif defined(OS_WIN) | 578 #elif defined(OS_WIN) |
| 577 channel_->AddFilter(new FontCacheDispatcher()); | 579 channel_->AddFilter(new FontCacheDispatcher()); |
| 578 #endif | 580 #endif |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 747 #if defined(OS_ANDROID) | 749 #if defined(OS_ANDROID) |
| 748 switches::kEnableWebAudio, | 750 switches::kEnableWebAudio, |
| 749 #else | 751 #else |
| 750 switches::kDisableWebAudio, | 752 switches::kDisableWebAudio, |
| 751 #endif | 753 #endif |
| 752 switches::kDisableWebSockets, | 754 switches::kDisableWebSockets, |
| 753 switches::kDomAutomationController, | 755 switches::kDomAutomationController, |
| 754 switches::kEnableAccessibilityLogging, | 756 switches::kEnableAccessibilityLogging, |
| 755 switches::kEnableCssExclusions, | 757 switches::kEnableCssExclusions, |
| 756 switches::kEnableDCHECK, | 758 switches::kEnableDCHECK, |
| 759 switches::kEnableDeviceMotion, |
| 757 switches::kEnableEncryptedMedia, | 760 switches::kEnableEncryptedMedia, |
| 758 switches::kEnableFixedLayout, | 761 switches::kEnableFixedLayout, |
| 759 switches::kEnableGPUServiceLogging, | 762 switches::kEnableGPUServiceLogging, |
| 760 switches::kEnableGPUClientLogging, | 763 switches::kEnableGPUClientLogging, |
| 761 switches::kEnableGpuBenchmarking, | 764 switches::kEnableGpuBenchmarking, |
| 762 switches::kEnableLogging, | 765 switches::kEnableLogging, |
| 763 switches::kEnableMediaSource, | 766 switches::kEnableMediaSource, |
| 764 switches::kEnablePartialSwap, | 767 switches::kEnablePartialSwap, |
| 765 switches::kEnablePeerConnection, | 768 switches::kEnablePeerConnection, |
| 766 switches::kEnablePerTilePainting, | 769 switches::kEnablePerTilePainting, |
| (...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1507 int32 route_id, | 1510 int32 route_id, |
| 1508 int32 gpu_process_host_id) { | 1511 int32 gpu_process_host_id) { |
| 1509 TRACE_EVENT0("renderer_host", | 1512 TRACE_EVENT0("renderer_host", |
| 1510 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1513 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
| 1511 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1514 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
| 1512 gpu_process_host_id, | 1515 gpu_process_host_id, |
| 1513 0); | 1516 0); |
| 1514 } | 1517 } |
| 1515 | 1518 |
| 1516 } // namespace content | 1519 } // namespace content |
| OLD | NEW |