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

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

Issue 65273002: Add a mechanism to pause and resume geolocation requests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unsused CVC.isGeolocationActiveForTest API Created 7 years 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
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 #ifndef CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <string> 10 #include <string>
11 11
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/observer_list.h" 13 #include "base/observer_list.h"
14 #include "base/process/process.h" 14 #include "base/process/process.h"
15 #include "base/timer/timer.h" 15 #include "base/timer/timer.h"
16 #include "content/browser/child_process_launcher.h" 16 #include "content/browser/child_process_launcher.h"
17 #include "content/browser/geolocation/geolocation_dispatcher_host.h"
17 #include "content/browser/power_monitor_message_broadcaster.h" 18 #include "content/browser/power_monitor_message_broadcaster.h"
18 #include "content/common/content_export.h" 19 #include "content/common/content_export.h"
19 #include "content/public/browser/global_request_id.h" 20 #include "content/public/browser/global_request_id.h"
20 #include "content/public/browser/gpu_data_manager_observer.h" 21 #include "content/public/browser/gpu_data_manager_observer.h"
21 #include "content/public/browser/render_process_host.h" 22 #include "content/public/browser/render_process_host.h"
22 #include "ipc/ipc_channel_proxy.h" 23 #include "ipc/ipc_channel_proxy.h"
23 #include "ui/surface/transport_dib.h" 24 #include "ui/surface/transport_dib.h"
24 25
25 class CommandLine; 26 class CommandLine;
26 struct ViewHostMsg_CompositorSurfaceBuffersSwapped_Params; 27 struct ViewHostMsg_CompositorSurfaceBuffersSwapped_Params;
27 28
28 namespace base { 29 namespace base {
29 class MessageLoop; 30 class MessageLoop;
30 } 31 }
31 32
32 namespace gfx { 33 namespace gfx {
33 class Size; 34 class Size;
34 } 35 }
35 36
36 namespace content { 37 namespace content {
37 class AudioRendererHost; 38 class AudioRendererHost;
38 class BrowserDemuxerAndroid; 39 class BrowserDemuxerAndroid;
40 class GeolocationDispatcherHost;
39 class GpuMessageFilter; 41 class GpuMessageFilter;
40 class MessagePortMessageFilter; 42 class MessagePortMessageFilter;
41 class PeerConnectionTrackerHost; 43 class PeerConnectionTrackerHost;
42 class RendererMainThread; 44 class RendererMainThread;
43 class RenderWidgetHelper; 45 class RenderWidgetHelper;
44 class RenderWidgetHost; 46 class RenderWidgetHost;
45 class RenderWidgetHostImpl; 47 class RenderWidgetHostImpl;
46 class RenderWidgetHostViewFrameSubscriber; 48 class RenderWidgetHostViewFrameSubscriber;
47 class StoragePartition; 49 class StoragePartition;
48 class StoragePartitionImpl; 50 class StoragePartitionImpl;
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // any RenderViewHosts that are swapped out. 148 // any RenderViewHosts that are swapped out.
147 int GetActiveViewCount(); 149 int GetActiveViewCount();
148 150
149 // Start and end frame subscription for a specific renderer. 151 // Start and end frame subscription for a specific renderer.
150 // This API only supports subscription to accelerated composited frames. 152 // This API only supports subscription to accelerated composited frames.
151 void BeginFrameSubscription( 153 void BeginFrameSubscription(
152 int route_id, 154 int route_id,
153 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber); 155 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber);
154 void EndFrameSubscription(int route_id); 156 void EndFrameSubscription(int route_id);
155 157
158 scoped_refptr<GeolocationDispatcherHost>
159 geolocation_dispatcher_host() const {
160 return geolocation_dispatcher_host_;
161 }
162
156 // Register/unregister the host identified by the host id in the global host 163 // Register/unregister the host identified by the host id in the global host
157 // list. 164 // list.
158 static void RegisterHost(int host_id, RenderProcessHost* host); 165 static void RegisterHost(int host_id, RenderProcessHost* host);
159 static void UnregisterHost(int host_id); 166 static void UnregisterHost(int host_id);
160 167
161 // Returns true if |host| is suitable for launching a new view with |site_url| 168 // Returns true if |host| is suitable for launching a new view with |site_url|
162 // in the given |browser_context|. 169 // in the given |browser_context|.
163 static bool IsSuitableHost(RenderProcessHost* host, 170 static bool IsSuitableHost(RenderProcessHost* host,
164 BrowserContext* browser_context, 171 BrowserContext* browser_context,
165 const GURL& site_url); 172 const GURL& site_url);
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 361
355 // Forwards power state messages to the renderer process. 362 // Forwards power state messages to the renderer process.
356 PowerMonitorMessageBroadcaster power_monitor_broadcaster_; 363 PowerMonitorMessageBroadcaster power_monitor_broadcaster_;
357 364
358 scoped_refptr<AudioRendererHost> audio_renderer_host_; 365 scoped_refptr<AudioRendererHost> audio_renderer_host_;
359 366
360 #if defined(OS_ANDROID) 367 #if defined(OS_ANDROID)
361 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_; 368 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_;
362 #endif 369 #endif
363 370
371 // Message filter for geolocation messages.
372 scoped_refptr<GeolocationDispatcherHost> geolocation_dispatcher_host_;
373
364 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 374 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
365 }; 375 };
366 376
367 } // namespace content 377 } // namespace content
368 378
369 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ 379 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698