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 |
11 #include <map> | 11 #include <map> |
12 #include <memory> | 12 #include <memory> |
13 #include <queue> | 13 #include <queue> |
14 #include <string> | 14 #include <string> |
15 | 15 |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
18 #include "base/observer_list.h" | 18 #include "base/observer_list.h" |
19 #include "base/process/process.h" | 19 #include "base/process/process.h" |
20 #include "base/single_thread_task_runner.h" | 20 #include "base/single_thread_task_runner.h" |
21 #include "base/synchronization/waitable_event.h" | 21 #include "base/synchronization/waitable_event.h" |
22 #include "build/build_config.h" | 22 #include "build/build_config.h" |
| 23 #include "components/display_compositor/host_shared_bitmap_manager.h" |
23 #include "content/browser/child_process_launcher.h" | 24 #include "content/browser/child_process_launcher.h" |
24 #include "content/browser/dom_storage/session_storage_namespace_impl.h" | 25 #include "content/browser/dom_storage/session_storage_namespace_impl.h" |
25 #include "content/browser/renderer_host/offscreen_canvas_compositor_frame_sink_p
rovider_impl.h" | 26 #include "content/browser/renderer_host/offscreen_canvas_compositor_frame_sink_p
rovider_impl.h" |
26 #include "content/browser/webrtc/webrtc_eventlog_host.h" | 27 #include "content/browser/webrtc/webrtc_eventlog_host.h" |
27 #include "content/common/associated_interfaces.mojom.h" | 28 #include "content/common/associated_interfaces.mojom.h" |
28 #include "content/common/content_export.h" | 29 #include "content/common/content_export.h" |
29 #include "content/common/indexed_db/indexed_db.mojom.h" | 30 #include "content/common/indexed_db/indexed_db.mojom.h" |
30 #include "content/common/renderer.mojom.h" | 31 #include "content/common/renderer.mojom.h" |
31 #include "content/public/browser/render_process_host.h" | 32 #include "content/public/browser/render_process_host.h" |
32 #include "content/public/common/service_manager_connection.h" | 33 #include "content/public/common/service_manager_connection.h" |
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 std::unique_ptr<OffscreenCanvasCompositorFrameSinkProviderImpl> | 598 std::unique_ptr<OffscreenCanvasCompositorFrameSinkProviderImpl> |
598 offscreen_canvas_provider_; | 599 offscreen_canvas_provider_; |
599 | 600 |
600 mojom::RouteProviderAssociatedPtr remote_route_provider_; | 601 mojom::RouteProviderAssociatedPtr remote_route_provider_; |
601 mojom::RendererAssociatedPtr renderer_interface_; | 602 mojom::RendererAssociatedPtr renderer_interface_; |
602 | 603 |
603 // Tracks active audio streams within the render process; used to determine if | 604 // Tracks active audio streams within the render process; used to determine if |
604 // if a process should be backgrounded. | 605 // if a process should be backgrounded. |
605 int audio_stream_count_ = 0; | 606 int audio_stream_count_ = 0; |
606 | 607 |
| 608 display_compositor::HostSharedBitmapManagerClient bitmap_manager_client_; |
| 609 |
607 // A WeakPtrFactory which is reset every time Cleanup() runs. Used to vend | 610 // A WeakPtrFactory which is reset every time Cleanup() runs. Used to vend |
608 // WeakPtrs which are invalidated any time the RPHI is recycled. | 611 // WeakPtrs which are invalidated any time the RPHI is recycled. |
609 std::unique_ptr<base::WeakPtrFactory<RenderProcessHostImpl>> | 612 std::unique_ptr<base::WeakPtrFactory<RenderProcessHostImpl>> |
610 instance_weak_factory_; | 613 instance_weak_factory_; |
611 | 614 |
612 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 615 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
613 | 616 |
614 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 617 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
615 }; | 618 }; |
616 | 619 |
617 } // namespace content | 620 } // namespace content |
618 | 621 |
619 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 622 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
OLD | NEW |