| 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_RENDER_PROCESS_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_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 26 matching lines...) Expand all Loading... |
| 37 class ChannelMojoHost; | 37 class ChannelMojoHost; |
| 38 } | 38 } |
| 39 | 39 |
| 40 namespace content { | 40 namespace content { |
| 41 class AudioRendererHost; | 41 class AudioRendererHost; |
| 42 class BrowserCdmManager; | 42 class BrowserCdmManager; |
| 43 class BrowserDemuxerAndroid; | 43 class BrowserDemuxerAndroid; |
| 44 class GpuMessageFilter; | 44 class GpuMessageFilter; |
| 45 class MessagePortMessageFilter; | 45 class MessagePortMessageFilter; |
| 46 class MojoApplicationHost; | 46 class MojoApplicationHost; |
| 47 class NotificationMessageFilter; |
| 47 #if defined(ENABLE_WEBRTC) | 48 #if defined(ENABLE_WEBRTC) |
| 48 class P2PSocketDispatcherHost; | 49 class P2PSocketDispatcherHost; |
| 49 #endif | 50 #endif |
| 50 class PeerConnectionTrackerHost; | 51 class PeerConnectionTrackerHost; |
| 51 class RendererMainThread; | 52 class RendererMainThread; |
| 52 class RenderWidgetHelper; | 53 class RenderWidgetHelper; |
| 53 class RenderWidgetHost; | 54 class RenderWidgetHost; |
| 54 class RenderWidgetHostImpl; | 55 class RenderWidgetHostImpl; |
| 55 class RenderWidgetHostViewFrameSubscriber; | 56 class RenderWidgetHostViewFrameSubscriber; |
| 56 class StoragePartition; | 57 class StoragePartition; |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 #if defined(ENABLE_BROWSER_CDMS) | 234 #if defined(ENABLE_BROWSER_CDMS) |
| 234 const scoped_refptr<BrowserCdmManager>& browser_cdm_manager() { | 235 const scoped_refptr<BrowserCdmManager>& browser_cdm_manager() { |
| 235 return browser_cdm_manager_; | 236 return browser_cdm_manager_; |
| 236 } | 237 } |
| 237 #endif | 238 #endif |
| 238 | 239 |
| 239 MessagePortMessageFilter* message_port_message_filter() const { | 240 MessagePortMessageFilter* message_port_message_filter() const { |
| 240 return message_port_message_filter_.get(); | 241 return message_port_message_filter_.get(); |
| 241 } | 242 } |
| 242 | 243 |
| 244 NotificationMessageFilter* notification_message_filter() const { |
| 245 return notification_message_filter_.get(); |
| 246 } |
| 247 |
| 243 void set_is_isolated_guest_for_testing(bool is_isolated_guest) { | 248 void set_is_isolated_guest_for_testing(bool is_isolated_guest) { |
| 244 is_isolated_guest_ = is_isolated_guest; | 249 is_isolated_guest_ = is_isolated_guest; |
| 245 } | 250 } |
| 246 | 251 |
| 247 // Called when the existence of the other renderer process which is connected | 252 // Called when the existence of the other renderer process which is connected |
| 248 // to the Worker in this renderer process has changed. | 253 // to the Worker in this renderer process has changed. |
| 249 // It is only called when "enable-embedded-shared-worker" flag is set. | 254 // It is only called when "enable-embedded-shared-worker" flag is set. |
| 250 void IncrementWorkerRefCount(); | 255 void IncrementWorkerRefCount(); |
| 251 void DecrementWorkerRefCount(); | 256 void DecrementWorkerRefCount(); |
| 252 | 257 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 // Thread safety note: this field is to be accessed from the UI thread. | 359 // Thread safety note: this field is to be accessed from the UI thread. |
| 355 // We don't keep a reference to it, to avoid it being destroyed on the UI | 360 // We don't keep a reference to it, to avoid it being destroyed on the UI |
| 356 // thread, but we clear this field when we clear channel_. When channel_ goes | 361 // thread, but we clear this field when we clear channel_. When channel_ goes |
| 357 // away, it posts a task to the IO thread to destroy it there, so we know that | 362 // away, it posts a task to the IO thread to destroy it there, so we know that |
| 358 // it's valid if non-NULL. | 363 // it's valid if non-NULL. |
| 359 GpuMessageFilter* gpu_message_filter_; | 364 GpuMessageFilter* gpu_message_filter_; |
| 360 | 365 |
| 361 // The filter for MessagePort messages coming from the renderer. | 366 // The filter for MessagePort messages coming from the renderer. |
| 362 scoped_refptr<MessagePortMessageFilter> message_port_message_filter_; | 367 scoped_refptr<MessagePortMessageFilter> message_port_message_filter_; |
| 363 | 368 |
| 369 // The filter for Web Notification messages coming from the renderer. Holds a |
| 370 // closure per notification that must be freed when the notification closes. |
| 371 scoped_refptr<NotificationMessageFilter> notification_message_filter_; |
| 372 |
| 364 // Used in single-process mode. | 373 // Used in single-process mode. |
| 365 scoped_ptr<base::Thread> in_process_renderer_; | 374 scoped_ptr<base::Thread> in_process_renderer_; |
| 366 | 375 |
| 367 // True after Init() has been called. We can't just check channel_ because we | 376 // True after Init() has been called. We can't just check channel_ because we |
| 368 // also reset that in the case of process termination. | 377 // also reset that in the case of process termination. |
| 369 bool is_initialized_; | 378 bool is_initialized_; |
| 370 | 379 |
| 371 // PlzNavigate | 380 // PlzNavigate |
| 372 // Stores the time at which the first call to Init happened. | 381 // Stores the time at which the first call to Init happened. |
| 373 base::TimeTicks init_time_; | 382 base::TimeTicks init_time_; |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 base::TimeTicks survive_for_worker_start_time_; | 466 base::TimeTicks survive_for_worker_start_time_; |
| 458 | 467 |
| 459 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 468 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 460 | 469 |
| 461 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 470 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 462 }; | 471 }; |
| 463 | 472 |
| 464 } // namespace content | 473 } // namespace content |
| 465 | 474 |
| 466 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 475 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |