| 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 857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 868 switches::kEnableMemoryBenchmarking)) | 868 switches::kEnableMemoryBenchmarking)) |
| 869 AddFilter(new MemoryBenchmarkMessageFilter()); | 869 AddFilter(new MemoryBenchmarkMessageFilter()); |
| 870 #endif | 870 #endif |
| 871 AddFilter(new VibrationMessageFilter()); | 871 AddFilter(new VibrationMessageFilter()); |
| 872 AddFilter(new PushMessagingMessageFilter( | 872 AddFilter(new PushMessagingMessageFilter( |
| 873 GetID(), storage_partition_impl_->GetServiceWorkerContext())); | 873 GetID(), storage_partition_impl_->GetServiceWorkerContext())); |
| 874 AddFilter(new BatteryStatusMessageFilter()); | 874 AddFilter(new BatteryStatusMessageFilter()); |
| 875 #if defined(OS_ANDROID) | 875 #if defined(OS_ANDROID) |
| 876 AddFilter(new ScreenOrientationMessageFilterAndroid()); | 876 AddFilter(new ScreenOrientationMessageFilterAndroid()); |
| 877 #endif | 877 #endif |
| 878 AddFilter(new GeofencingDispatcherHost(browser_context_)); | 878 AddFilter(new GeofencingDispatcherHost( |
| 879 storage_partition_impl_->GetGeofencingManager())); |
| 879 } | 880 } |
| 880 | 881 |
| 881 int RenderProcessHostImpl::GetNextRoutingID() { | 882 int RenderProcessHostImpl::GetNextRoutingID() { |
| 882 return widget_helper_->GetNextRoutingID(); | 883 return widget_helper_->GetNextRoutingID(); |
| 883 } | 884 } |
| 884 | 885 |
| 885 | 886 |
| 886 void RenderProcessHostImpl::ResumeDeferredNavigation( | 887 void RenderProcessHostImpl::ResumeDeferredNavigation( |
| 887 const GlobalRequestID& request_id) { | 888 const GlobalRequestID& request_id) { |
| 888 widget_helper_->ResumeDeferredNavigation(request_id); | 889 widget_helper_->ResumeDeferredNavigation(request_id); |
| (...skipping 1348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2237 | 2238 |
| 2238 void RenderProcessHostImpl::DecrementWorkerRefCount() { | 2239 void RenderProcessHostImpl::DecrementWorkerRefCount() { |
| 2239 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2240 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 2240 DCHECK_GT(worker_ref_count_, 0); | 2241 DCHECK_GT(worker_ref_count_, 0); |
| 2241 --worker_ref_count_; | 2242 --worker_ref_count_; |
| 2242 if (worker_ref_count_ == 0) | 2243 if (worker_ref_count_ == 0) |
| 2243 Cleanup(); | 2244 Cleanup(); |
| 2244 } | 2245 } |
| 2245 | 2246 |
| 2246 } // namespace content | 2247 } // namespace content |
| OLD | NEW |