Chromium Code Reviews| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 54 class InProcessChildThreadParams; | 54 class InProcessChildThreadParams; |
| 55 class MessagePortMessageFilter; | 55 class MessagePortMessageFilter; |
| 56 class MojoChildConnection; | 56 class MojoChildConnection; |
| 57 class NotificationMessageFilter; | 57 class NotificationMessageFilter; |
| 58 #if defined(ENABLE_WEBRTC) | 58 #if defined(ENABLE_WEBRTC) |
| 59 class P2PSocketDispatcherHost; | 59 class P2PSocketDispatcherHost; |
| 60 #endif | 60 #endif |
| 61 class PermissionServiceContext; | 61 class PermissionServiceContext; |
| 62 class PeerConnectionTrackerHost; | 62 class PeerConnectionTrackerHost; |
| 63 class RendererMainThread; | 63 class RendererMainThread; |
| 64 class RenderFrameMessageFilter; | |
| 64 class RenderWidgetHelper; | 65 class RenderWidgetHelper; |
| 65 class RenderWidgetHost; | 66 class RenderWidgetHost; |
| 66 class RenderWidgetHostImpl; | 67 class RenderWidgetHostImpl; |
| 67 class RenderWidgetHostViewFrameSubscriber; | 68 class RenderWidgetHostViewFrameSubscriber; |
| 68 class StoragePartition; | 69 class StoragePartition; |
| 69 class StoragePartitionImpl; | 70 class StoragePartitionImpl; |
| 70 | 71 |
| 71 namespace mojom { | 72 namespace mojom { |
| 72 class StoragePartitionService; | 73 class StoragePartitionService; |
| 73 } | 74 } |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 239 | 240 |
| 240 static void RegisterRendererMainThreadFactory( | 241 static void RegisterRendererMainThreadFactory( |
| 241 RendererMainThreadFactoryFunction create); | 242 RendererMainThreadFactoryFunction create); |
| 242 | 243 |
| 243 #if defined(OS_ANDROID) | 244 #if defined(OS_ANDROID) |
| 244 const scoped_refptr<BrowserDemuxerAndroid>& browser_demuxer_android() { | 245 const scoped_refptr<BrowserDemuxerAndroid>& browser_demuxer_android() { |
| 245 return browser_demuxer_android_; | 246 return browser_demuxer_android_; |
| 246 } | 247 } |
| 247 #endif | 248 #endif |
| 248 | 249 |
| 250 RenderFrameMessageFilter* render_frame_message_filter() const { | |
|
jam
2016/07/26 19:13:32
nit: add a _for_testing suffix since it's only cal
Ken Rockot(use gerrit already)
2016/07/26 21:00:34
Done
| |
| 251 return render_frame_message_filter_.get(); | |
| 252 } | |
| 253 | |
| 249 MessagePortMessageFilter* message_port_message_filter() const { | 254 MessagePortMessageFilter* message_port_message_filter() const { |
| 250 return message_port_message_filter_.get(); | 255 return message_port_message_filter_.get(); |
| 251 } | 256 } |
| 252 | 257 |
| 253 NotificationMessageFilter* notification_message_filter() const { | 258 NotificationMessageFilter* notification_message_filter() const { |
| 254 return notification_message_filter_.get(); | 259 return notification_message_filter_.get(); |
| 255 } | 260 } |
| 256 | 261 |
| 257 void set_is_for_guests_only_for_testing(bool is_for_guests_only) { | 262 void set_is_for_guests_only_for_testing(bool is_for_guests_only) { |
| 258 is_for_guests_only_ = is_for_guests_only; | 263 is_for_guests_only_ = is_for_guests_only; |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 371 int32_t visible_widgets_; | 376 int32_t visible_widgets_; |
| 372 | 377 |
| 373 // Whether this process currently has backgrounded priority. Tracked so that | 378 // Whether this process currently has backgrounded priority. Tracked so that |
| 374 // UpdateProcessPriority() can avoid redundantly setting the priority. | 379 // UpdateProcessPriority() can avoid redundantly setting the priority. |
| 375 bool is_process_backgrounded_; | 380 bool is_process_backgrounded_; |
| 376 | 381 |
| 377 // Used to allow a RenderWidgetHost to intercept various messages on the | 382 // Used to allow a RenderWidgetHost to intercept various messages on the |
| 378 // IO thread. | 383 // IO thread. |
| 379 scoped_refptr<RenderWidgetHelper> widget_helper_; | 384 scoped_refptr<RenderWidgetHelper> widget_helper_; |
| 380 | 385 |
| 386 scoped_refptr<RenderFrameMessageFilter> render_frame_message_filter_; | |
| 387 | |
| 381 // The filter for MessagePort messages coming from the renderer. | 388 // The filter for MessagePort messages coming from the renderer. |
| 382 scoped_refptr<MessagePortMessageFilter> message_port_message_filter_; | 389 scoped_refptr<MessagePortMessageFilter> message_port_message_filter_; |
| 383 | 390 |
| 384 // The filter for Web Notification messages coming from the renderer. Holds a | 391 // The filter for Web Notification messages coming from the renderer. Holds a |
| 385 // closure per notification that must be freed when the notification closes. | 392 // closure per notification that must be freed when the notification closes. |
| 386 scoped_refptr<NotificationMessageFilter> notification_message_filter_; | 393 scoped_refptr<NotificationMessageFilter> notification_message_filter_; |
| 387 | 394 |
| 388 // Used in single-process mode. | 395 // Used in single-process mode. |
| 389 std::unique_ptr<base::Thread> in_process_renderer_; | 396 std::unique_ptr<base::Thread> in_process_renderer_; |
| 390 | 397 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 512 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; | 519 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; |
| 513 | 520 |
| 514 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 521 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 515 | 522 |
| 516 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 523 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 517 }; | 524 }; |
| 518 | 525 |
| 519 } // namespace content | 526 } // namespace content |
| 520 | 527 |
| 521 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 528 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |