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

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

Issue 10827415: Chromium-side implementation of DeviceMotion. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Test should set the kEnableDeviceMotion flag Created 8 years, 4 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 | Annotate | Revision Log
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/histogram_message_filter.h" 58 #include "content/browser/histogram_message_filter.h"
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 browser_context->GetSpeechRecognitionPreferences())); 566 browser_context->GetSpeechRecognitionPreferences()));
566 channel_->AddFilter(new speech::SpeechRecognitionDispatcherHost( 567 channel_->AddFilter(new speech::SpeechRecognitionDispatcherHost(
567 GetID(), browser_context->GetRequestContext(), 568 GetID(), browser_context->GetRequestContext(),
568 browser_context->GetSpeechRecognitionPreferences())); 569 browser_context->GetSpeechRecognitionPreferences()));
569 #endif 570 #endif
570 channel_->AddFilter(new FileAPIMessageFilter( 571 channel_->AddFilter(new FileAPIMessageFilter(
571 GetID(), 572 GetID(),
572 browser_context->GetRequestContext(), 573 browser_context->GetRequestContext(),
573 BrowserContext::GetFileSystemContext(browser_context), 574 BrowserContext::GetFileSystemContext(browser_context),
574 ChromeBlobStorageContext::GetFor(browser_context))); 575 ChromeBlobStorageContext::GetFor(browser_context)));
576 channel_->AddFilter(new MotionMessageFilter());
575 channel_->AddFilter(new OrientationMessageFilter()); 577 channel_->AddFilter(new OrientationMessageFilter());
576 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID())); 578 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID()));
577 channel_->AddFilter(new MimeRegistryMessageFilter()); 579 channel_->AddFilter(new MimeRegistryMessageFilter());
578 channel_->AddFilter(new DatabaseMessageFilter( 580 channel_->AddFilter(new DatabaseMessageFilter(
579 BrowserContext::GetDatabaseTracker(browser_context))); 581 BrowserContext::GetDatabaseTracker(browser_context)));
580 #if defined(OS_MACOSX) 582 #if defined(OS_MACOSX)
581 channel_->AddFilter(new TextInputClientMessageFilter(GetID())); 583 channel_->AddFilter(new TextInputClientMessageFilter(GetID()));
582 #elif defined(OS_WIN) 584 #elif defined(OS_WIN)
583 channel_->AddFilter(new FontCacheDispatcher()); 585 channel_->AddFilter(new FontCacheDispatcher());
584 #endif 586 #endif
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 #if defined(OS_ANDROID) 755 #if defined(OS_ANDROID)
754 switches::kEnableWebAudio, 756 switches::kEnableWebAudio,
755 #else 757 #else
756 switches::kDisableWebAudio, 758 switches::kDisableWebAudio,
757 #endif 759 #endif
758 switches::kDisableWebSockets, 760 switches::kDisableWebSockets,
759 switches::kDomAutomationController, 761 switches::kDomAutomationController,
760 switches::kEnableAccessibilityLogging, 762 switches::kEnableAccessibilityLogging,
761 switches::kEnableCssExclusions, 763 switches::kEnableCssExclusions,
762 switches::kEnableDCHECK, 764 switches::kEnableDCHECK,
765 switches::kEnableDeviceMotion,
763 switches::kEnableEncryptedMedia, 766 switches::kEnableEncryptedMedia,
764 switches::kEnableFixedLayout, 767 switches::kEnableFixedLayout,
765 switches::kEnableGPUServiceLogging, 768 switches::kEnableGPUServiceLogging,
766 switches::kEnableGPUClientLogging, 769 switches::kEnableGPUClientLogging,
767 switches::kEnableGpuBenchmarking, 770 switches::kEnableGpuBenchmarking,
768 switches::kEnableLogging, 771 switches::kEnableLogging,
769 switches::kEnableMediaSource, 772 switches::kEnableMediaSource,
770 switches::kEnablePartialSwap, 773 switches::kEnablePartialSwap,
771 switches::kEnablePeerConnection, 774 switches::kEnablePeerConnection,
772 switches::kEnablePerTilePainting, 775 switches::kEnablePerTilePainting,
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
1513 int32 route_id, 1516 int32 route_id,
1514 int32 gpu_process_host_id) { 1517 int32 gpu_process_host_id) {
1515 TRACE_EVENT0("renderer_host", 1518 TRACE_EVENT0("renderer_host",
1516 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); 1519 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost");
1517 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, 1520 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id,
1518 gpu_process_host_id, 1521 gpu_process_host_id,
1519 0); 1522 0);
1520 } 1523 }
1521 1524
1522 } // namespace content 1525 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/device_orientation/device_orientation_browsertest.cc ('k') | content/content_renderer.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698