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

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

Issue 14678012: Implement the content/renderer and content/browser part of the Device Motion API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: factored out as much code as possible from the templated reader Created 7 years, 6 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 #include <algorithm> 10 #include <algorithm>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" 59 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h"
60 #include "content/browser/indexed_db/indexed_db_context_impl.h" 60 #include "content/browser/indexed_db/indexed_db_context_impl.h"
61 #include "content/browser/loader/resource_message_filter.h" 61 #include "content/browser/loader/resource_message_filter.h"
62 #include "content/browser/loader/resource_scheduler_filter.h" 62 #include "content/browser/loader/resource_scheduler_filter.h"
63 #include "content/browser/media/media_internals.h" 63 #include "content/browser/media/media_internals.h"
64 #include "content/browser/mime_registry_message_filter.h" 64 #include "content/browser/mime_registry_message_filter.h"
65 #include "content/browser/plugin_service_impl.h" 65 #include "content/browser/plugin_service_impl.h"
66 #include "content/browser/profiler_message_filter.h" 66 #include "content/browser/profiler_message_filter.h"
67 #include "content/browser/renderer_host/clipboard_message_filter.h" 67 #include "content/browser/renderer_host/clipboard_message_filter.h"
68 #include "content/browser/renderer_host/database_message_filter.h" 68 #include "content/browser/renderer_host/database_message_filter.h"
69 #include "content/browser/renderer_host/device_motion_browser_message_filter.h"
69 #include "content/browser/renderer_host/file_utilities_message_filter.h" 70 #include "content/browser/renderer_host/file_utilities_message_filter.h"
70 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" 71 #include "content/browser/renderer_host/gamepad_browser_message_filter.h"
71 #include "content/browser/renderer_host/gpu_message_filter.h" 72 #include "content/browser/renderer_host/gpu_message_filter.h"
72 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" 73 #include "content/browser/renderer_host/media/audio_input_renderer_host.h"
73 #include "content/browser/renderer_host/media/audio_mirroring_manager.h" 74 #include "content/browser/renderer_host/media/audio_mirroring_manager.h"
74 #include "content/browser/renderer_host/media/audio_renderer_host.h" 75 #include "content/browser/renderer_host/media/audio_renderer_host.h"
75 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" 76 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h"
76 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" 77 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h"
77 #include "content/browser/renderer_host/media/video_capture_host.h" 78 #include "content/browser/renderer_host/media/video_capture_host.h"
78 #include "content/browser/renderer_host/memory_benchmark_message_filter.h" 79 #include "content/browser/renderer_host/memory_benchmark_message_filter.h"
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 #endif 702 #endif
702 703
703 channel_->AddFilter(new TraceMessageFilter()); 704 channel_->AddFilter(new TraceMessageFilter());
704 channel_->AddFilter(new ResolveProxyMsgHelper( 705 channel_->AddFilter(new ResolveProxyMsgHelper(
705 browser_context->GetRequestContextForRenderProcess(GetID()))); 706 browser_context->GetRequestContextForRenderProcess(GetID())));
706 channel_->AddFilter(new QuotaDispatcherHost( 707 channel_->AddFilter(new QuotaDispatcherHost(
707 GetID(), 708 GetID(),
708 storage_partition_impl_->GetQuotaManager(), 709 storage_partition_impl_->GetQuotaManager(),
709 GetContentClient()->browser()->CreateQuotaPermissionContext())); 710 GetContentClient()->browser()->CreateQuotaPermissionContext()));
710 channel_->AddFilter(new GamepadBrowserMessageFilter()); 711 channel_->AddFilter(new GamepadBrowserMessageFilter());
712 channel_->AddFilter(new DeviceMotionBrowserMessageFilter());
711 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); 713 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER));
712 channel_->AddFilter(new HistogramMessageFilter()); 714 channel_->AddFilter(new HistogramMessageFilter());
713 channel_->AddFilter(new HyphenatorMessageFilter(this)); 715 channel_->AddFilter(new HyphenatorMessageFilter(this));
714 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) 716 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID))
715 if (CommandLine::ForCurrentProcess()->HasSwitch( 717 if (CommandLine::ForCurrentProcess()->HasSwitch(
716 switches::kEnableMemoryBenchmarking)) 718 switches::kEnableMemoryBenchmarking))
717 channel_->AddFilter(new MemoryBenchmarkMessageFilter()); 719 channel_->AddFilter(new MemoryBenchmarkMessageFilter());
718 #endif 720 #endif
719 } 721 }
720 722
(...skipping 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after
1794 continue; 1796 continue;
1795 1797
1796 RenderViewHost* rvh = 1798 RenderViewHost* rvh =
1797 RenderViewHost::From(const_cast<RenderWidgetHost*>(widget)); 1799 RenderViewHost::From(const_cast<RenderWidgetHost*>(widget));
1798 1800
1799 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); 1801 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences());
1800 } 1802 }
1801 } 1803 }
1802 1804
1803 } // namespace content 1805 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698