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 #include <algorithm> | 10 #include <algorithm> |
(...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
884 switches::kEnableMemoryBenchmarking)) | 884 switches::kEnableMemoryBenchmarking)) |
885 AddFilter(new MemoryBenchmarkMessageFilter()); | 885 AddFilter(new MemoryBenchmarkMessageFilter()); |
886 #endif | 886 #endif |
887 AddFilter(new VibrationMessageFilter()); | 887 AddFilter(new VibrationMessageFilter()); |
888 AddFilter(new PushMessagingMessageFilter( | 888 AddFilter(new PushMessagingMessageFilter( |
889 GetID(), storage_partition_impl_->GetServiceWorkerContext())); | 889 GetID(), storage_partition_impl_->GetServiceWorkerContext())); |
890 AddFilter(new BatteryStatusMessageFilter()); | 890 AddFilter(new BatteryStatusMessageFilter()); |
891 #if defined(OS_ANDROID) | 891 #if defined(OS_ANDROID) |
892 AddFilter(new ScreenOrientationMessageFilterAndroid()); | 892 AddFilter(new ScreenOrientationMessageFilterAndroid()); |
893 #endif | 893 #endif |
894 AddFilter(new GeofencingDispatcherHost(browser_context_)); | 894 AddFilter(new GeofencingDispatcherHost( |
| 895 storage_partition_impl_->GetGeofencingManager())); |
895 } | 896 } |
896 | 897 |
897 int RenderProcessHostImpl::GetNextRoutingID() { | 898 int RenderProcessHostImpl::GetNextRoutingID() { |
898 return widget_helper_->GetNextRoutingID(); | 899 return widget_helper_->GetNextRoutingID(); |
899 } | 900 } |
900 | 901 |
901 | 902 |
902 void RenderProcessHostImpl::ResumeDeferredNavigation( | 903 void RenderProcessHostImpl::ResumeDeferredNavigation( |
903 const GlobalRequestID& request_id) { | 904 const GlobalRequestID& request_id) { |
904 widget_helper_->ResumeDeferredNavigation(request_id); | 905 widget_helper_->ResumeDeferredNavigation(request_id); |
(...skipping 1347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2252 if (worker_ref_count_ == 0) | 2253 if (worker_ref_count_ == 0) |
2253 Cleanup(); | 2254 Cleanup(); |
2254 } | 2255 } |
2255 | 2256 |
2256 void RenderProcessHostImpl::EnsureMojoActivated() { | 2257 void RenderProcessHostImpl::EnsureMojoActivated() { |
2257 mojo_activation_required_ = true; | 2258 mojo_activation_required_ = true; |
2258 MaybeActivateMojo(); | 2259 MaybeActivateMojo(); |
2259 } | 2260 } |
2260 | 2261 |
2261 } // namespace content | 2262 } // namespace content |
OLD | NEW |