| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 virtual IPC::ChannelProxy* GetChannel() OVERRIDE; | 117 virtual IPC::ChannelProxy* GetChannel() OVERRIDE; |
| 118 virtual void AddFilter(BrowserMessageFilter* filter) OVERRIDE; | 118 virtual void AddFilter(BrowserMessageFilter* filter) OVERRIDE; |
| 119 virtual bool FastShutdownForPageCount(size_t count) OVERRIDE; | 119 virtual bool FastShutdownForPageCount(size_t count) OVERRIDE; |
| 120 virtual bool FastShutdownStarted() const OVERRIDE; | 120 virtual bool FastShutdownStarted() const OVERRIDE; |
| 121 virtual base::TimeDelta GetChildProcessIdleTime() const OVERRIDE; | 121 virtual base::TimeDelta GetChildProcessIdleTime() const OVERRIDE; |
| 122 virtual void ResumeRequestsForView(int route_id) OVERRIDE; | 122 virtual void ResumeRequestsForView(int route_id) OVERRIDE; |
| 123 virtual void FilterURL(bool empty_allowed, GURL* url) OVERRIDE; | 123 virtual void FilterURL(bool empty_allowed, GURL* url) OVERRIDE; |
| 124 #if defined(ENABLE_WEBRTC) | 124 #if defined(ENABLE_WEBRTC) |
| 125 virtual void EnableAecDump(const base::FilePath& file) OVERRIDE; | 125 virtual void EnableAecDump(const base::FilePath& file) OVERRIDE; |
| 126 virtual void DisableAecDump() OVERRIDE; | 126 virtual void DisableAecDump() OVERRIDE; |
| 127 virtual void SetWebRtcLogMessageCallback( |
| 128 base::Callback<void(const std::string&)> callback) OVERRIDE; |
| 127 #endif | 129 #endif |
| 128 | 130 |
| 129 // IPC::Sender via RenderProcessHost. | 131 // IPC::Sender via RenderProcessHost. |
| 130 virtual bool Send(IPC::Message* msg) OVERRIDE; | 132 virtual bool Send(IPC::Message* msg) OVERRIDE; |
| 131 | 133 |
| 132 // IPC::Listener via RenderProcessHost. | 134 // IPC::Listener via RenderProcessHost. |
| 133 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 135 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 134 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; | 136 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; |
| 135 virtual void OnChannelError() OVERRIDE; | 137 virtual void OnChannelError() OVERRIDE; |
| 136 | 138 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 158 void BeginFrameSubscription( | 160 void BeginFrameSubscription( |
| 159 int route_id, | 161 int route_id, |
| 160 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber); | 162 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber); |
| 161 void EndFrameSubscription(int route_id); | 163 void EndFrameSubscription(int route_id); |
| 162 | 164 |
| 163 scoped_refptr<GeolocationDispatcherHost> | 165 scoped_refptr<GeolocationDispatcherHost> |
| 164 geolocation_dispatcher_host() const { | 166 geolocation_dispatcher_host() const { |
| 165 return make_scoped_refptr(geolocation_dispatcher_host_); | 167 return make_scoped_refptr(geolocation_dispatcher_host_); |
| 166 } | 168 } |
| 167 | 169 |
| 170 #if defined(ENABLE_WEBRTC) |
| 171 // Fires the webrtc log message callback with |message|, if callback is set. |
| 172 void WebRtcLogMessage(const std::string& message); |
| 173 #endif |
| 174 |
| 168 // Register/unregister the host identified by the host id in the global host | 175 // Register/unregister the host identified by the host id in the global host |
| 169 // list. | 176 // list. |
| 170 static void RegisterHost(int host_id, RenderProcessHost* host); | 177 static void RegisterHost(int host_id, RenderProcessHost* host); |
| 171 static void UnregisterHost(int host_id); | 178 static void UnregisterHost(int host_id); |
| 172 | 179 |
| 173 // Implementation of FilterURL below that can be shared with the mock class. | 180 // Implementation of FilterURL below that can be shared with the mock class. |
| 174 static void FilterURL(RenderProcessHost* rph, bool empty_allowed, GURL* url); | 181 static void FilterURL(RenderProcessHost* rph, bool empty_allowed, GURL* url); |
| 175 | 182 |
| 176 // Returns true if |host| is suitable for launching a new view with |site_url| | 183 // Returns true if |host| is suitable for launching a new view with |site_url| |
| 177 // in the given |browser_context|. | 184 // in the given |browser_context|. |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 | 389 |
| 383 scoped_refptr<AudioRendererHost> audio_renderer_host_; | 390 scoped_refptr<AudioRendererHost> audio_renderer_host_; |
| 384 | 391 |
| 385 #if defined(OS_ANDROID) | 392 #if defined(OS_ANDROID) |
| 386 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_; | 393 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_; |
| 387 #endif | 394 #endif |
| 388 | 395 |
| 389 // Message filter for geolocation messages. | 396 // Message filter for geolocation messages. |
| 390 GeolocationDispatcherHost* geolocation_dispatcher_host_; | 397 GeolocationDispatcherHost* geolocation_dispatcher_host_; |
| 391 | 398 |
| 399 #if defined(ENABLE_WEBRTC) |
| 400 base::Callback<void(const std::string&)> webrtc_log_message_callback_; |
| 401 #endif |
| 402 |
| 392 // Lives on the browser's ChildThread. | 403 // Lives on the browser's ChildThread. |
| 393 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 404 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 394 | 405 |
| 395 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 406 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 396 }; | 407 }; |
| 397 | 408 |
| 398 } // namespace content | 409 } // namespace content |
| 399 | 410 |
| 400 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 411 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |