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 26 matching lines...) Expand all Loading... |
37 #include "base/string_util.h" | 37 #include "base/string_util.h" |
38 #include "base/sys_info.h" | 38 #include "base/sys_info.h" |
39 #include "base/threading/thread.h" | 39 #include "base/threading/thread.h" |
40 #include "base/threading/thread_restrictions.h" | 40 #include "base/threading/thread_restrictions.h" |
41 #include "base/tracked_objects.h" | 41 #include "base/tracked_objects.h" |
42 #include "content/browser/appcache/appcache_dispatcher_host.h" | 42 #include "content/browser/appcache/appcache_dispatcher_host.h" |
43 #include "content/browser/appcache/chrome_appcache_service.h" | 43 #include "content/browser/appcache/chrome_appcache_service.h" |
44 #include "content/browser/browser_main.h" | 44 #include "content/browser/browser_main.h" |
45 #include "content/browser/browser_main_loop.h" | 45 #include "content/browser/browser_main_loop.h" |
46 #include "content/browser/child_process_security_policy_impl.h" | 46 #include "content/browser/child_process_security_policy_impl.h" |
| 47 #include "content/browser/device_orientation/motion_message_filter.h" |
47 #include "content/browser/device_orientation/orientation_message_filter.h" | 48 #include "content/browser/device_orientation/orientation_message_filter.h" |
48 #include "content/browser/dom_storage/dom_storage_context_impl.h" | 49 #include "content/browser/dom_storage/dom_storage_context_impl.h" |
49 #include "content/browser/dom_storage/dom_storage_message_filter.h" | 50 #include "content/browser/dom_storage/dom_storage_message_filter.h" |
50 #include "content/browser/download/mhtml_generation_manager.h" | 51 #include "content/browser/download/mhtml_generation_manager.h" |
51 #include "content/browser/fileapi/chrome_blob_storage_context.h" | 52 #include "content/browser/fileapi/chrome_blob_storage_context.h" |
52 #include "content/browser/fileapi/fileapi_message_filter.h" | 53 #include "content/browser/fileapi/fileapi_message_filter.h" |
53 #include "content/browser/geolocation/geolocation_dispatcher_host.h" | 54 #include "content/browser/geolocation/geolocation_dispatcher_host.h" |
54 #include "content/browser/gpu/gpu_data_manager_impl.h" | 55 #include "content/browser/gpu/gpu_data_manager_impl.h" |
55 #include "content/browser/gpu/gpu_process_host.h" | 56 #include "content/browser/gpu/gpu_process_host.h" |
56 #include "content/browser/in_process_webkit/indexed_db_context_impl.h" | 57 #include "content/browser/in_process_webkit/indexed_db_context_impl.h" |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 browser_context->GetSpeechRecognitionPreferences())); | 504 browser_context->GetSpeechRecognitionPreferences())); |
504 channel_->AddFilter(new speech::SpeechRecognitionDispatcherHost( | 505 channel_->AddFilter(new speech::SpeechRecognitionDispatcherHost( |
505 GetID(), browser_context->GetRequestContext(), | 506 GetID(), browser_context->GetRequestContext(), |
506 browser_context->GetSpeechRecognitionPreferences())); | 507 browser_context->GetSpeechRecognitionPreferences())); |
507 #endif | 508 #endif |
508 channel_->AddFilter(new FileAPIMessageFilter( | 509 channel_->AddFilter(new FileAPIMessageFilter( |
509 GetID(), | 510 GetID(), |
510 browser_context->GetRequestContext(), | 511 browser_context->GetRequestContext(), |
511 BrowserContext::GetFileSystemContext(browser_context), | 512 BrowserContext::GetFileSystemContext(browser_context), |
512 ChromeBlobStorageContext::GetFor(browser_context))); | 513 ChromeBlobStorageContext::GetFor(browser_context))); |
| 514 channel_->AddFilter(new device_orientation::MotionMessageFilter()); |
513 channel_->AddFilter(new device_orientation::OrientationMessageFilter()); | 515 channel_->AddFilter(new device_orientation::OrientationMessageFilter()); |
514 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID())); | 516 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID())); |
515 channel_->AddFilter(new MimeRegistryMessageFilter()); | 517 channel_->AddFilter(new MimeRegistryMessageFilter()); |
516 channel_->AddFilter(new DatabaseMessageFilter( | 518 channel_->AddFilter(new DatabaseMessageFilter( |
517 BrowserContext::GetDatabaseTracker(browser_context))); | 519 BrowserContext::GetDatabaseTracker(browser_context))); |
518 #if defined(OS_MACOSX) | 520 #if defined(OS_MACOSX) |
519 channel_->AddFilter(new TextInputClientMessageFilter(GetID())); | 521 channel_->AddFilter(new TextInputClientMessageFilter(GetID())); |
520 #elif defined(OS_WIN) | 522 #elif defined(OS_WIN) |
521 channel_->AddFilter(new FontCacheDispatcher()); | 523 channel_->AddFilter(new FontCacheDispatcher()); |
522 #endif | 524 #endif |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 switches::kDisableAcceleratedCompositing, | 665 switches::kDisableAcceleratedCompositing, |
664 switches::kDisableApplicationCache, | 666 switches::kDisableApplicationCache, |
665 switches::kDisableAudio, | 667 switches::kDisableAudio, |
666 switches::kDisableBreakpad, | 668 switches::kDisableBreakpad, |
667 #if defined(OS_MACOSX) | 669 #if defined(OS_MACOSX) |
668 switches::kDisableCompositedCoreAnimationPlugins, | 670 switches::kDisableCompositedCoreAnimationPlugins, |
669 #endif | 671 #endif |
670 switches::kDisableDataTransferItems, | 672 switches::kDisableDataTransferItems, |
671 switches::kDisableDatabases, | 673 switches::kDisableDatabases, |
672 switches::kDisableDesktopNotifications, | 674 switches::kDisableDesktopNotifications, |
| 675 switches::kDisableDeviceMotion, |
673 switches::kDisableDeviceOrientation, | 676 switches::kDisableDeviceOrientation, |
674 switches::kDisableFileSystem, | 677 switches::kDisableFileSystem, |
675 switches::kDisableGeolocation, | 678 switches::kDisableGeolocation, |
676 switches::kDisableGLMultisampling, | 679 switches::kDisableGLMultisampling, |
677 switches::kDisableGpuVsync, | 680 switches::kDisableGpuVsync, |
678 switches::kDisableJavaScriptI18NAPI, | 681 switches::kDisableJavaScriptI18NAPI, |
679 switches::kDisableLocalStorage, | 682 switches::kDisableLocalStorage, |
680 switches::kDisableLogging, | 683 switches::kDisableLogging, |
681 switches::kDisablePointerLock, | 684 switches::kDisablePointerLock, |
682 switches::kDisableSeccompFilterSandbox, | 685 switches::kDisableSeccompFilterSandbox, |
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1400 int32 route_id, | 1403 int32 route_id, |
1401 int32 gpu_process_host_id) { | 1404 int32 gpu_process_host_id) { |
1402 TRACE_EVENT0("renderer_host", | 1405 TRACE_EVENT0("renderer_host", |
1403 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1406 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
1404 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1407 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
1405 gpu_process_host_id, | 1408 gpu_process_host_id, |
1406 0); | 1409 0); |
1407 } | 1410 } |
1408 | 1411 |
1409 } // namespace content | 1412 } // namespace content |
OLD | NEW |