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 device_orientation::MotionMessageFilter()); |
569 channel_->AddFilter(new device_orientation::OrientationMessageFilter()); | 571 channel_->AddFilter(new device_orientation::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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 switches::kDisableThreadedAnimation, | 748 switches::kDisableThreadedAnimation, |
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::kEnableDCHECK, | 757 switches::kEnableDCHECK, |
| 758 switches::kEnableDeviceMotion, |
756 switches::kEnableEncryptedMedia, | 759 switches::kEnableEncryptedMedia, |
757 switches::kEnableFixedLayout, | 760 switches::kEnableFixedLayout, |
758 switches::kEnableGPUServiceLogging, | 761 switches::kEnableGPUServiceLogging, |
759 switches::kEnableGPUClientLogging, | 762 switches::kEnableGPUClientLogging, |
760 switches::kEnableGpuBenchmarking, | 763 switches::kEnableGpuBenchmarking, |
761 switches::kEnableLogging, | 764 switches::kEnableLogging, |
762 switches::kEnableMediaSource, | 765 switches::kEnableMediaSource, |
763 switches::kEnablePartialSwap, | 766 switches::kEnablePartialSwap, |
764 switches::kEnablePeerConnection, | 767 switches::kEnablePeerConnection, |
765 switches::kEnablePerTilePainting, | 768 switches::kEnablePerTilePainting, |
(...skipping 741 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 |