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