| 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 #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> |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 class BrowserDemuxerAndroid; | 39 class BrowserDemuxerAndroid; |
| 40 class GeolocationDispatcherHost; | 40 class GeolocationDispatcherHost; |
| 41 class GpuMessageFilter; | 41 class GpuMessageFilter; |
| 42 class MessagePortMessageFilter; | 42 class MessagePortMessageFilter; |
| 43 class PeerConnectionTrackerHost; | 43 class PeerConnectionTrackerHost; |
| 44 class RendererMainThread; | 44 class RendererMainThread; |
| 45 class RenderWidgetHelper; | 45 class RenderWidgetHelper; |
| 46 class RenderWidgetHost; | 46 class RenderWidgetHost; |
| 47 class RenderWidgetHostImpl; | 47 class RenderWidgetHostImpl; |
| 48 class RenderWidgetHostViewFrameSubscriber; | 48 class RenderWidgetHostViewFrameSubscriber; |
| 49 class ScreenOrientationDispatcherHost; | |
| 50 class StoragePartition; | 49 class StoragePartition; |
| 51 class StoragePartitionImpl; | 50 class StoragePartitionImpl; |
| 52 | 51 |
| 53 // Implements a concrete RenderProcessHost for the browser process for talking | 52 // Implements a concrete RenderProcessHost for the browser process for talking |
| 54 // to actual renderer processes (as opposed to mocks). | 53 // to actual renderer processes (as opposed to mocks). |
| 55 // | 54 // |
| 56 // Represents the browser side of the browser <--> renderer communication | 55 // Represents the browser side of the browser <--> renderer communication |
| 57 // channel. There will be one RenderProcessHost per renderer process. | 56 // channel. There will be one RenderProcessHost per renderer process. |
| 58 // | 57 // |
| 59 // This object is refcounted so that it can release its resources when all | 58 // This object is refcounted so that it can release its resources when all |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 scoped_refptr<GeolocationDispatcherHost> | 162 scoped_refptr<GeolocationDispatcherHost> |
| 164 geolocation_dispatcher_host() const { | 163 geolocation_dispatcher_host() const { |
| 165 return make_scoped_refptr(geolocation_dispatcher_host_); | 164 return make_scoped_refptr(geolocation_dispatcher_host_); |
| 166 } | 165 } |
| 167 | 166 |
| 168 #if defined(ENABLE_WEBRTC) | 167 #if defined(ENABLE_WEBRTC) |
| 169 // Fires the webrtc log message callback with |message|, if callback is set. | 168 // Fires the webrtc log message callback with |message|, if callback is set. |
| 170 void WebRtcLogMessage(const std::string& message); | 169 void WebRtcLogMessage(const std::string& message); |
| 171 #endif | 170 #endif |
| 172 | 171 |
| 173 scoped_refptr<ScreenOrientationDispatcherHost> | |
| 174 screen_orientation_dispatcher_host() const; | |
| 175 | |
| 176 // Register/unregister the host identified by the host id in the global host | 172 // Register/unregister the host identified by the host id in the global host |
| 177 // list. | 173 // list. |
| 178 static void RegisterHost(int host_id, RenderProcessHost* host); | 174 static void RegisterHost(int host_id, RenderProcessHost* host); |
| 179 static void UnregisterHost(int host_id); | 175 static void UnregisterHost(int host_id); |
| 180 | 176 |
| 181 // Implementation of FilterURL below that can be shared with the mock class. | 177 // Implementation of FilterURL below that can be shared with the mock class. |
| 182 static void FilterURL(RenderProcessHost* rph, bool empty_allowed, GURL* url); | 178 static void FilterURL(RenderProcessHost* rph, bool empty_allowed, GURL* url); |
| 183 | 179 |
| 184 // Returns true if |host| is suitable for launching a new view with |site_url| | 180 // Returns true if |host| is suitable for launching a new view with |site_url| |
| 185 // in the given |browser_context|. | 181 // in the given |browser_context|. |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 // Message filter for geolocation messages. | 401 // Message filter for geolocation messages. |
| 406 GeolocationDispatcherHost* geolocation_dispatcher_host_; | 402 GeolocationDispatcherHost* geolocation_dispatcher_host_; |
| 407 | 403 |
| 408 #if defined(ENABLE_WEBRTC) | 404 #if defined(ENABLE_WEBRTC) |
| 409 base::Callback<void(const std::string&)> webrtc_log_message_callback_; | 405 base::Callback<void(const std::string&)> webrtc_log_message_callback_; |
| 410 #endif | 406 #endif |
| 411 | 407 |
| 412 // Lives on the browser's ChildThread. | 408 // Lives on the browser's ChildThread. |
| 413 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 409 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 414 | 410 |
| 415 // Message filter and dispatcher for screen orientation. | |
| 416 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host_; | |
| 417 | |
| 418 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 411 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 419 }; | 412 }; |
| 420 | 413 |
| 421 } // namespace content | 414 } // namespace content |
| 422 | 415 |
| 423 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 416 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |