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 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
883 switches::kEnableMemoryBenchmarking)) | 883 switches::kEnableMemoryBenchmarking)) |
884 AddFilter(new MemoryBenchmarkMessageFilter()); | 884 AddFilter(new MemoryBenchmarkMessageFilter()); |
885 #endif | 885 #endif |
886 AddFilter(new VibrationMessageFilter()); | 886 AddFilter(new VibrationMessageFilter()); |
887 AddFilter(new PushMessagingMessageFilter( | 887 AddFilter(new PushMessagingMessageFilter( |
888 GetID(), storage_partition_impl_->GetServiceWorkerContext())); | 888 GetID(), storage_partition_impl_->GetServiceWorkerContext())); |
889 AddFilter(new BatteryStatusMessageFilter()); | 889 AddFilter(new BatteryStatusMessageFilter()); |
890 #if defined(OS_ANDROID) | 890 #if defined(OS_ANDROID) |
891 AddFilter(new ScreenOrientationMessageFilterAndroid()); | 891 AddFilter(new ScreenOrientationMessageFilterAndroid()); |
892 #endif | 892 #endif |
893 AddFilter(new GeofencingDispatcherHost(browser_context_)); | 893 AddFilter(new GeofencingDispatcherHost( |
| 894 browser_context_, storage_partition_impl_->GetServiceWorkerContext())); |
894 } | 895 } |
895 | 896 |
896 int RenderProcessHostImpl::GetNextRoutingID() { | 897 int RenderProcessHostImpl::GetNextRoutingID() { |
897 return widget_helper_->GetNextRoutingID(); | 898 return widget_helper_->GetNextRoutingID(); |
898 } | 899 } |
899 | 900 |
900 | 901 |
901 void RenderProcessHostImpl::ResumeDeferredNavigation( | 902 void RenderProcessHostImpl::ResumeDeferredNavigation( |
902 const GlobalRequestID& request_id) { | 903 const GlobalRequestID& request_id) { |
903 widget_helper_->ResumeDeferredNavigation(request_id); | 904 widget_helper_->ResumeDeferredNavigation(request_id); |
(...skipping 1348 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 |