Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 476293002: Pass through geofencing API calls to the browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #include "content/browser/browser_plugin/browser_plugin_message_filter.h" 47 #include "content/browser/browser_plugin/browser_plugin_message_filter.h"
48 #include "content/browser/child_process_security_policy_impl.h" 48 #include "content/browser/child_process_security_policy_impl.h"
49 #include "content/browser/device_sensors/device_motion_message_filter.h" 49 #include "content/browser/device_sensors/device_motion_message_filter.h"
50 #include "content/browser/device_sensors/device_orientation_message_filter.h" 50 #include "content/browser/device_sensors/device_orientation_message_filter.h"
51 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" 51 #include "content/browser/dom_storage/dom_storage_context_wrapper.h"
52 #include "content/browser/dom_storage/dom_storage_message_filter.h" 52 #include "content/browser/dom_storage/dom_storage_message_filter.h"
53 #include "content/browser/download/mhtml_generation_manager.h" 53 #include "content/browser/download/mhtml_generation_manager.h"
54 #include "content/browser/fileapi/chrome_blob_storage_context.h" 54 #include "content/browser/fileapi/chrome_blob_storage_context.h"
55 #include "content/browser/fileapi/fileapi_message_filter.h" 55 #include "content/browser/fileapi/fileapi_message_filter.h"
56 #include "content/browser/frame_host/render_frame_message_filter.h" 56 #include "content/browser/frame_host/render_frame_message_filter.h"
57 #include "content/browser/geofencing/geofencing_dispatcher_host.h"
57 #include "content/browser/gpu/compositor_util.h" 58 #include "content/browser/gpu/compositor_util.h"
58 #include "content/browser/gpu/gpu_data_manager_impl.h" 59 #include "content/browser/gpu/gpu_data_manager_impl.h"
59 #include "content/browser/gpu/gpu_process_host.h" 60 #include "content/browser/gpu/gpu_process_host.h"
60 #include "content/browser/gpu/shader_disk_cache.h" 61 #include "content/browser/gpu/shader_disk_cache.h"
61 #include "content/browser/histogram_message_filter.h" 62 #include "content/browser/histogram_message_filter.h"
62 #include "content/browser/indexed_db/indexed_db_context_impl.h" 63 #include "content/browser/indexed_db/indexed_db_context_impl.h"
63 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" 64 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h"
64 #include "content/browser/loader/resource_message_filter.h" 65 #include "content/browser/loader/resource_message_filter.h"
65 #include "content/browser/loader/resource_scheduler_filter.h" 66 #include "content/browser/loader/resource_scheduler_filter.h"
66 #include "content/browser/media/capture/audio_mirroring_manager.h" 67 #include "content/browser/media/capture/audio_mirroring_manager.h"
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 switches::kEnableMemoryBenchmarking)) 853 switches::kEnableMemoryBenchmarking))
853 AddFilter(new MemoryBenchmarkMessageFilter()); 854 AddFilter(new MemoryBenchmarkMessageFilter());
854 #endif 855 #endif
855 AddFilter(new VibrationMessageFilter()); 856 AddFilter(new VibrationMessageFilter());
856 AddFilter(new PushMessagingMessageFilter( 857 AddFilter(new PushMessagingMessageFilter(
857 GetID(), storage_partition_impl_->GetServiceWorkerContext())); 858 GetID(), storage_partition_impl_->GetServiceWorkerContext()));
858 AddFilter(new BatteryStatusMessageFilter()); 859 AddFilter(new BatteryStatusMessageFilter());
859 #if defined(OS_ANDROID) 860 #if defined(OS_ANDROID)
860 AddFilter(new ScreenOrientationMessageFilterAndroid()); 861 AddFilter(new ScreenOrientationMessageFilterAndroid());
861 #endif 862 #endif
863 AddFilter(new GeofencingDispatcherHost());
862 } 864 }
863 865
864 int RenderProcessHostImpl::GetNextRoutingID() { 866 int RenderProcessHostImpl::GetNextRoutingID() {
865 return widget_helper_->GetNextRoutingID(); 867 return widget_helper_->GetNextRoutingID();
866 } 868 }
867 869
868 870
869 void RenderProcessHostImpl::ResumeDeferredNavigation( 871 void RenderProcessHostImpl::ResumeDeferredNavigation(
870 const GlobalRequestID& request_id) { 872 const GlobalRequestID& request_id) {
871 widget_helper_->ResumeDeferredNavigation(request_id); 873 widget_helper_->ResumeDeferredNavigation(request_id);
(...skipping 1331 matching lines...) Expand 10 before | Expand all | Expand 10 after
2203 2205
2204 void RenderProcessHostImpl::DecrementWorkerRefCount() { 2206 void RenderProcessHostImpl::DecrementWorkerRefCount() {
2205 DCHECK_CURRENTLY_ON(BrowserThread::UI); 2207 DCHECK_CURRENTLY_ON(BrowserThread::UI);
2206 DCHECK_GT(worker_ref_count_, 0); 2208 DCHECK_GT(worker_ref_count_, 0);
2207 --worker_ref_count_; 2209 --worker_ref_count_;
2208 if (worker_ref_count_ == 0) 2210 if (worker_ref_count_ == 0)
2209 Cleanup(); 2211 Cleanup();
2210 } 2212 }
2211 2213
2212 } // namespace content 2214 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698