Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 10698046: Implements part of Device Motion in the Renderer (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Makes changes suggested by review comments Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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/in_process_webkit/indexed_db_context_impl.h" 58 #include "content/browser/in_process_webkit/indexed_db_context_impl.h"
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 browser_context->GetSpeechRecognitionPreferences())); 563 browser_context->GetSpeechRecognitionPreferences()));
563 channel_->AddFilter(new speech::SpeechRecognitionDispatcherHost( 564 channel_->AddFilter(new speech::SpeechRecognitionDispatcherHost(
564 GetID(), browser_context->GetRequestContext(), 565 GetID(), browser_context->GetRequestContext(),
565 browser_context->GetSpeechRecognitionPreferences())); 566 browser_context->GetSpeechRecognitionPreferences()));
566 #endif 567 #endif
567 channel_->AddFilter(new FileAPIMessageFilter( 568 channel_->AddFilter(new FileAPIMessageFilter(
568 GetID(), 569 GetID(),
569 browser_context->GetRequestContext(), 570 browser_context->GetRequestContext(),
570 BrowserContext::GetFileSystemContext(browser_context), 571 BrowserContext::GetFileSystemContext(browser_context),
571 ChromeBlobStorageContext::GetFor(browser_context))); 572 ChromeBlobStorageContext::GetFor(browser_context)));
573 channel_->AddFilter(new device_orientation::MotionMessageFilter());
572 channel_->AddFilter(new device_orientation::OrientationMessageFilter()); 574 channel_->AddFilter(new device_orientation::OrientationMessageFilter());
573 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID())); 575 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID()));
574 channel_->AddFilter(new MimeRegistryMessageFilter()); 576 channel_->AddFilter(new MimeRegistryMessageFilter());
575 channel_->AddFilter(new DatabaseMessageFilter( 577 channel_->AddFilter(new DatabaseMessageFilter(
576 BrowserContext::GetDatabaseTracker(browser_context))); 578 BrowserContext::GetDatabaseTracker(browser_context)));
577 #if defined(OS_MACOSX) 579 #if defined(OS_MACOSX)
578 channel_->AddFilter(new TextInputClientMessageFilter(GetID())); 580 channel_->AddFilter(new TextInputClientMessageFilter(GetID()));
579 #elif defined(OS_WIN) 581 #elif defined(OS_WIN)
580 channel_->AddFilter(new FontCacheDispatcher()); 582 channel_->AddFilter(new FontCacheDispatcher());
581 #endif 583 #endif
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 switches::kDisableSharedWorkers, 746 switches::kDisableSharedWorkers,
745 switches::kDisableSpeechInput, 747 switches::kDisableSpeechInput,
746 switches::kEnableScriptedSpeech, 748 switches::kEnableScriptedSpeech,
747 switches::kDisableThreadedAnimation, 749 switches::kDisableThreadedAnimation,
748 switches::kDisableWebAudio, 750 switches::kDisableWebAudio,
749 switches::kDisableWebSockets, 751 switches::kDisableWebSockets,
750 switches::kDomAutomationController, 752 switches::kDomAutomationController,
751 switches::kEnableAcceleratedVideoDecode, 753 switches::kEnableAcceleratedVideoDecode,
752 switches::kEnableAccessibilityLogging, 754 switches::kEnableAccessibilityLogging,
753 switches::kEnableDCHECK, 755 switches::kEnableDCHECK,
756 switches::kEnableDeviceMotion,
754 switches::kEnableEncryptedMedia, 757 switches::kEnableEncryptedMedia,
755 switches::kEnableFixedLayout, 758 switches::kEnableFixedLayout,
756 switches::kEnableGamepad, 759 switches::kEnableGamepad,
757 switches::kEnableGPUServiceLogging, 760 switches::kEnableGPUServiceLogging,
758 switches::kEnableGPUClientLogging, 761 switches::kEnableGPUClientLogging,
759 switches::kEnableGpuBenchmarking, 762 switches::kEnableGpuBenchmarking,
760 switches::kEnableLogging, 763 switches::kEnableLogging,
761 switches::kEnableMediaSource, 764 switches::kEnableMediaSource,
762 switches::kEnablePartialSwap, 765 switches::kEnablePartialSwap,
763 switches::kEnablePeerConnection, 766 switches::kEnablePeerConnection,
(...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after
1534 int32 route_id, 1537 int32 route_id,
1535 int32 gpu_process_host_id) { 1538 int32 gpu_process_host_id) {
1536 TRACE_EVENT0("renderer_host", 1539 TRACE_EVENT0("renderer_host",
1537 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); 1540 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost");
1538 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, 1541 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id,
1539 gpu_process_host_id, 1542 gpu_process_host_id,
1540 0); 1543 0);
1541 } 1544 }
1542 1545
1543 } // namespace content 1546 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698