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