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> |
11 | 11 |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
14 #include "base/process/process.h" | 14 #include "base/process/process.h" |
15 #include "base/synchronization/waitable_event.h" | 15 #include "base/synchronization/waitable_event.h" |
16 #include "content/browser/child_process_launcher.h" | 16 #include "content/browser/child_process_launcher.h" |
17 #include "content/browser/dom_storage/session_storage_namespace_impl.h" | 17 #include "content/browser/dom_storage/session_storage_namespace_impl.h" |
18 #include "content/browser/power_monitor_message_broadcaster.h" | 18 #include "content/browser/power_monitor_message_broadcaster.h" |
19 #include "content/common/content_export.h" | 19 #include "content/common/content_export.h" |
20 #include "content/common/mojo/service_registry_impl.h" | 20 #include "content/common/mojo/service_registry_impl.h" |
21 #include "content/public/browser/render_process_host.h" | 21 #include "content/public/browser/render_process_host.h" |
22 #include "ipc/ipc_channel_proxy.h" | 22 #include "ipc/ipc_channel_proxy.h" |
23 #include "ipc/ipc_platform_file.h" | 23 #include "ipc/ipc_platform_file.h" |
24 #include "mojo/public/cpp/bindings/interface_ptr.h" | 24 #include "mojo/public/cpp/bindings/interface_ptr.h" |
25 #include "ui/gfx/gpu_memory_buffer.h" | 25 #include "ui/gfx/gpu_memory_buffer.h" |
26 #include "ui/gl/gpu_switching_observer.h" | 26 #include "ui/gl/gpu_switching_observer.h" |
27 | 27 |
28 #if defined(OS_MACOSX) && !defined(OS_IOS) | |
29 #include "content/common/mac/io_surface_manager_token.h" | |
30 #endif | |
31 | |
32 namespace base { | 28 namespace base { |
33 class CommandLine; | 29 class CommandLine; |
34 class MessageLoop; | 30 class MessageLoop; |
35 } | 31 } |
36 | 32 |
37 namespace gfx { | 33 namespace gfx { |
38 class Size; | 34 class Size; |
39 } | 35 } |
40 | 36 |
41 namespace gpu { | 37 namespace gpu { |
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 SubscriptionSet subscription_set_; | 471 SubscriptionSet subscription_set_; |
476 | 472 |
477 // Maintains ValueStates which are not currently subscribed too so we can | 473 // Maintains ValueStates which are not currently subscribed too so we can |
478 // pass them to the GpuService if a Valuebuffer ever subscribes to the | 474 // pass them to the GpuService if a Valuebuffer ever subscribes to the |
479 // respective subscription target | 475 // respective subscription target |
480 scoped_refptr<gpu::ValueStateMap> pending_valuebuffer_state_; | 476 scoped_refptr<gpu::ValueStateMap> pending_valuebuffer_state_; |
481 | 477 |
482 // Whether or not the CHROMIUM_subscribe_uniform WebGL extension is enabled | 478 // Whether or not the CHROMIUM_subscribe_uniform WebGL extension is enabled |
483 bool subscribe_uniform_enabled_; | 479 bool subscribe_uniform_enabled_; |
484 | 480 |
485 #if defined(OS_MACOSX) && !defined(OS_IOS) | |
486 // Unique unguessable token that the child process is using to acquire | |
487 // IOSurface references. | |
488 IOSurfaceManagerToken io_surface_manager_token_; | |
489 #endif | |
490 | |
491 bool channel_connected_; | 481 bool channel_connected_; |
492 bool sent_render_process_ready_; | 482 bool sent_render_process_ready_; |
493 | 483 |
494 #if defined(OS_ANDROID) | 484 #if defined(OS_ANDROID) |
495 // UI thread is the source of sync IPCs and all shutdown signals. | 485 // UI thread is the source of sync IPCs and all shutdown signals. |
496 // Therefore a proper shutdown event to unblock the UI thread is not | 486 // Therefore a proper shutdown event to unblock the UI thread is not |
497 // possible without massive refactoring shutdown code. | 487 // possible without massive refactoring shutdown code. |
498 // Luckily Android never performs a clean shutdown. So explicitly | 488 // Luckily Android never performs a clean shutdown. So explicitly |
499 // ignore this problem. | 489 // ignore this problem. |
500 base::WaitableEvent never_signaled_; | 490 base::WaitableEvent never_signaled_; |
501 #endif | 491 #endif |
502 | 492 |
503 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 493 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
504 | 494 |
505 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 495 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
506 }; | 496 }; |
507 | 497 |
508 } // namespace content | 498 } // namespace content |
509 | 499 |
510 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 500 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
OLD | NEW |