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(browser_context_)); | 896 AddFilter( |
897 new GeofencingDispatcherHost(browser_context_, service_worker_filter)); | |
Michael van Ouwerkerk
2014/10/09 12:28:09
This should pass in storage_partition_impl_->GetSe
Marijn Kruisselbrink
2014/10/09 22:28:59
That's not enough. To go from registration handle
michaeln
2014/10/13 00:32:49
Kinda messy, no?
I'm not sure the mapping is need
Marijn Kruisselbrink
2014/10/13 19:29:48
Yes, that sounds much better. I've now changed it
| |
897 } | 898 } |
898 | 899 |
899 int RenderProcessHostImpl::GetNextRoutingID() { | 900 int RenderProcessHostImpl::GetNextRoutingID() { |
900 return widget_helper_->GetNextRoutingID(); | 901 return widget_helper_->GetNextRoutingID(); |
901 } | 902 } |
902 | 903 |
903 | 904 |
904 void RenderProcessHostImpl::ResumeDeferredNavigation( | 905 void RenderProcessHostImpl::ResumeDeferredNavigation( |
905 const GlobalRequestID& request_id) { | 906 const GlobalRequestID& request_id) { |
906 widget_helper_->ResumeDeferredNavigation(request_id); | 907 widget_helper_->ResumeDeferredNavigation(request_id); |
(...skipping 1343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2250 if (worker_ref_count_ == 0) | 2251 if (worker_ref_count_ == 0) |
2251 Cleanup(); | 2252 Cleanup(); |
2252 } | 2253 } |
2253 | 2254 |
2254 void RenderProcessHostImpl::EnsureMojoActivated() { | 2255 void RenderProcessHostImpl::EnsureMojoActivated() { |
2255 mojo_activation_required_ = true; | 2256 mojo_activation_required_ = true; |
2256 MaybeActivateMojo(); | 2257 MaybeActivateMojo(); |
2257 } | 2258 } |
2258 | 2259 |
2259 } // namespace content | 2260 } // namespace content |
OLD | NEW |