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 21 matching lines...) Expand all Loading... |
32 #include "ipc/ipc_channel_proxy.h" | 32 #include "ipc/ipc_channel_proxy.h" |
33 #include "ipc/ipc_platform_file.h" | 33 #include "ipc/ipc_platform_file.h" |
34 #include "mojo/public/cpp/bindings/associated_binding.h" | 34 #include "mojo/public/cpp/bindings/associated_binding.h" |
35 #include "mojo/public/cpp/bindings/associated_binding_set.h" | 35 #include "mojo/public/cpp/bindings/associated_binding_set.h" |
36 #include "mojo/public/cpp/bindings/interface_ptr.h" | 36 #include "mojo/public/cpp/bindings/interface_ptr.h" |
37 #include "services/service_manager/public/cpp/interface_registry.h" | 37 #include "services/service_manager/public/cpp/interface_registry.h" |
38 #include "services/service_manager/public/interfaces/service.mojom.h" | 38 #include "services/service_manager/public/interfaces/service.mojom.h" |
39 #include "ui/gfx/gpu_memory_buffer.h" | 39 #include "ui/gfx/gpu_memory_buffer.h" |
40 #include "ui/gl/gpu_switching_observer.h" | 40 #include "ui/gl/gpu_switching_observer.h" |
41 | 41 |
| 42 #if defined(OS_ANDROID) |
| 43 #include "content/browser/android/synchronous_compositor_observer.h" |
| 44 #endif |
| 45 |
42 namespace base { | 46 namespace base { |
43 class CommandLine; | 47 class CommandLine; |
44 class MessageLoop; | 48 class MessageLoop; |
45 class SharedPersistentMemoryAllocator; | 49 class SharedPersistentMemoryAllocator; |
46 } | 50 } |
47 | 51 |
48 namespace gfx { | 52 namespace gfx { |
49 class Size; | 53 class Size; |
50 } | 54 } |
51 | 55 |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 } | 258 } |
255 | 259 |
256 MessagePortMessageFilter* message_port_message_filter() const { | 260 MessagePortMessageFilter* message_port_message_filter() const { |
257 return message_port_message_filter_.get(); | 261 return message_port_message_filter_.get(); |
258 } | 262 } |
259 | 263 |
260 NotificationMessageFilter* notification_message_filter() const { | 264 NotificationMessageFilter* notification_message_filter() const { |
261 return notification_message_filter_.get(); | 265 return notification_message_filter_.get(); |
262 } | 266 } |
263 | 267 |
| 268 #if defined(OS_ANDROID) |
| 269 SynchronousCompositorObserver* synchronous_compositor_filter() const { |
| 270 return synchronous_compositor_filter_.get(); |
| 271 } |
| 272 #endif |
| 273 |
264 void set_is_for_guests_only_for_testing(bool is_for_guests_only) { | 274 void set_is_for_guests_only_for_testing(bool is_for_guests_only) { |
265 is_for_guests_only_ = is_for_guests_only; | 275 is_for_guests_only_ = is_for_guests_only; |
266 } | 276 } |
267 | 277 |
268 void GetAudioOutputControllers( | 278 void GetAudioOutputControllers( |
269 const GetAudioOutputControllersCallback& callback) const override; | 279 const GetAudioOutputControllersCallback& callback) const override; |
270 | 280 |
271 #if defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) | 281 #if defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) |
272 // Launch the zygote early in the browser startup. | 282 // Launch the zygote early in the browser startup. |
273 static void EarlyZygoteLaunch(); | 283 static void EarlyZygoteLaunch(); |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 | 458 |
449 scoped_refptr<RenderFrameMessageFilter> render_frame_message_filter_; | 459 scoped_refptr<RenderFrameMessageFilter> render_frame_message_filter_; |
450 | 460 |
451 // The filter for MessagePort messages coming from the renderer. | 461 // The filter for MessagePort messages coming from the renderer. |
452 scoped_refptr<MessagePortMessageFilter> message_port_message_filter_; | 462 scoped_refptr<MessagePortMessageFilter> message_port_message_filter_; |
453 | 463 |
454 // The filter for Web Notification messages coming from the renderer. Holds a | 464 // The filter for Web Notification messages coming from the renderer. Holds a |
455 // closure per notification that must be freed when the notification closes. | 465 // closure per notification that must be freed when the notification closes. |
456 scoped_refptr<NotificationMessageFilter> notification_message_filter_; | 466 scoped_refptr<NotificationMessageFilter> notification_message_filter_; |
457 | 467 |
| 468 #if defined(OS_ANDROID) |
| 469 scoped_refptr<SynchronousCompositorObserver> synchronous_compositor_filter_; |
| 470 #endif |
| 471 |
458 // Used in single-process mode. | 472 // Used in single-process mode. |
459 std::unique_ptr<base::Thread> in_process_renderer_; | 473 std::unique_ptr<base::Thread> in_process_renderer_; |
460 | 474 |
461 // True after Init() has been called. | 475 // True after Init() has been called. |
462 bool is_initialized_ = false; | 476 bool is_initialized_ = false; |
463 | 477 |
464 // True after ProcessDied(), until the next call to Init(). | 478 // True after ProcessDied(), until the next call to Init(). |
465 bool is_dead_ = false; | 479 bool is_dead_ = false; |
466 | 480 |
467 // PlzNavigate | 481 // PlzNavigate |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 instance_weak_factory_; | 600 instance_weak_factory_; |
587 | 601 |
588 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 602 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
589 | 603 |
590 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 604 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
591 }; | 605 }; |
592 | 606 |
593 } // namespace content | 607 } // namespace content |
594 | 608 |
595 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 609 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
OLD | NEW |