| 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 size_t GetWorkerRefCount() const override; | 178 size_t GetWorkerRefCount() const override; |
| 179 void IncrementServiceWorkerRefCount() override; | 179 void IncrementServiceWorkerRefCount() override; |
| 180 void DecrementServiceWorkerRefCount() override; | 180 void DecrementServiceWorkerRefCount() override; |
| 181 void IncrementSharedWorkerRefCount() override; | 181 void IncrementSharedWorkerRefCount() override; |
| 182 void DecrementSharedWorkerRefCount() override; | 182 void DecrementSharedWorkerRefCount() override; |
| 183 void ForceReleaseWorkerRefCounts() override; | 183 void ForceReleaseWorkerRefCounts() override; |
| 184 bool IsWorkerRefCountDisabled() override; | 184 bool IsWorkerRefCountDisabled() override; |
| 185 void PurgeAndSuspend() override; | 185 void PurgeAndSuspend() override; |
| 186 void Resume() override; | 186 void Resume() override; |
| 187 mojom::Renderer* GetRendererInterface() override; | 187 mojom::Renderer* GetRendererInterface() override; |
| 188 resource_coordinator::ResourceCoordinatorInterface* |
| 189 GetProcessResourceCoordinator() override; |
| 190 |
| 188 void SetIsNeverSuitableForReuse() override; | 191 void SetIsNeverSuitableForReuse() override; |
| 189 bool MayReuseHost() override; | 192 bool MayReuseHost() override; |
| 190 | 193 |
| 191 mojom::RouteProvider* GetRemoteRouteProvider(); | 194 mojom::RouteProvider* GetRemoteRouteProvider(); |
| 192 | 195 |
| 193 // IPC::Sender via RenderProcessHost. | 196 // IPC::Sender via RenderProcessHost. |
| 194 bool Send(IPC::Message* msg) override; | 197 bool Send(IPC::Message* msg) override; |
| 195 | 198 |
| 196 // IPC::Listener via RenderProcessHost. | 199 // IPC::Listener via RenderProcessHost. |
| 197 bool OnMessageReceived(const IPC::Message& msg) override; | 200 bool OnMessageReceived(const IPC::Message& msg) override; |
| (...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 | 676 |
| 674 std::unique_ptr<OffscreenCanvasProviderImpl> offscreen_canvas_provider_; | 677 std::unique_ptr<OffscreenCanvasProviderImpl> offscreen_canvas_provider_; |
| 675 | 678 |
| 676 mojom::RouteProviderAssociatedPtr remote_route_provider_; | 679 mojom::RouteProviderAssociatedPtr remote_route_provider_; |
| 677 mojom::RendererAssociatedPtr renderer_interface_; | 680 mojom::RendererAssociatedPtr renderer_interface_; |
| 678 | 681 |
| 679 // Tracks active audio streams within the render process; used to determine if | 682 // Tracks active audio streams within the render process; used to determine if |
| 680 // if a process should be backgrounded. | 683 // if a process should be backgrounded. |
| 681 int audio_stream_count_ = 0; | 684 int audio_stream_count_ = 0; |
| 682 | 685 |
| 686 std::unique_ptr<resource_coordinator::ResourceCoordinatorInterface> |
| 687 process_resource_coordinator_; |
| 688 |
| 683 // A WeakPtrFactory which is reset every time Cleanup() runs. Used to vend | 689 // A WeakPtrFactory which is reset every time Cleanup() runs. Used to vend |
| 684 // WeakPtrs which are invalidated any time the RPHI is recycled. | 690 // WeakPtrs which are invalidated any time the RPHI is recycled. |
| 685 std::unique_ptr<base::WeakPtrFactory<RenderProcessHostImpl>> | 691 std::unique_ptr<base::WeakPtrFactory<RenderProcessHostImpl>> |
| 686 instance_weak_factory_; | 692 instance_weak_factory_; |
| 687 | 693 |
| 688 FrameSinkProviderImpl frame_sink_provider_; | 694 FrameSinkProviderImpl frame_sink_provider_; |
| 689 | 695 |
| 690 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 696 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 691 | 697 |
| 692 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 698 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 693 }; | 699 }; |
| 694 | 700 |
| 695 } // namespace content | 701 } // namespace content |
| 696 | 702 |
| 697 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 703 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |