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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 186 void ForceReleaseWorkerRefCounts() override; | 186 void ForceReleaseWorkerRefCounts() override; |
| 187 bool IsWorkerRefCountDisabled() override; | 187 bool IsWorkerRefCountDisabled() override; |
| 188 void PurgeAndSuspend() override; | 188 void PurgeAndSuspend() override; |
| 189 void Resume() override; | 189 void Resume() override; |
| 190 mojom::Renderer* GetRendererInterface() override; | 190 mojom::Renderer* GetRendererInterface() override; |
| 191 resource_coordinator::ResourceCoordinatorInterface* | 191 resource_coordinator::ResourceCoordinatorInterface* |
| 192 GetProcessResourceCoordinator() override; | 192 GetProcessResourceCoordinator() override; |
| 193 | 193 |
| 194 void SetIsNeverSuitableForReuse() override; | 194 void SetIsNeverSuitableForReuse() override; |
| 195 bool MayReuseHost() override; | 195 bool MayReuseHost() override; |
| 196 bool IsUnused() override; | |
| 197 void SetIsUsed() override; | |
| 196 | 198 |
| 197 mojom::RouteProvider* GetRemoteRouteProvider(); | 199 mojom::RouteProvider* GetRemoteRouteProvider(); |
| 198 | 200 |
| 199 // IPC::Sender via RenderProcessHost. | 201 // IPC::Sender via RenderProcessHost. |
| 200 bool Send(IPC::Message* msg) override; | 202 bool Send(IPC::Message* msg) override; |
| 201 | 203 |
| 202 // IPC::Listener via RenderProcessHost. | 204 // IPC::Listener via RenderProcessHost. |
| 203 bool OnMessageReceived(const IPC::Message& msg) override; | 205 bool OnMessageReceived(const IPC::Message& msg) override; |
| 204 void OnAssociatedInterfaceRequest( | 206 void OnAssociatedInterfaceRequest( |
| 205 const std::string& interface_name, | 207 const std::string& interface_name, |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 613 // filtering for this at the render widget level. | 615 // filtering for this at the render widget level. |
| 614 bool ignore_input_events_; | 616 bool ignore_input_events_; |
| 615 | 617 |
| 616 // Records the last time we regarded the child process active. | 618 // Records the last time we regarded the child process active. |
| 617 base::TimeTicks child_process_activity_time_; | 619 base::TimeTicks child_process_activity_time_; |
| 618 | 620 |
| 619 // Indicates whether this RenderProcessHost is exclusively hosting guest | 621 // Indicates whether this RenderProcessHost is exclusively hosting guest |
| 620 // RenderFrames. | 622 // RenderFrames. |
| 621 bool is_for_guests_only_; | 623 bool is_for_guests_only_; |
| 622 | 624 |
| 625 // Indicates whether this RenderProcessHost is unused, meaning that it has | |
| 626 // not any web content, and it has not been given to a SiteInstance that has | |
|
Charlie Reis
2017/06/17 23:13:53
nit: has not committed any web content
alexmos
2017/06/19 20:03:58
Done.
| |
| 627 // a site assigned. | |
| 628 bool is_unused_; | |
| 629 | |
| 623 // Prevents the class from being added as a GpuDataManagerImpl observer more | 630 // Prevents the class from being added as a GpuDataManagerImpl observer more |
| 624 // than once. | 631 // than once. |
| 625 bool gpu_observer_registered_; | 632 bool gpu_observer_registered_; |
| 626 | 633 |
| 627 // Set if a call to Cleanup is required once the RenderProcessHostImpl is no | 634 // Set if a call to Cleanup is required once the RenderProcessHostImpl is no |
| 628 // longer within the RenderProcessHostObserver::RenderProcessExited callbacks. | 635 // longer within the RenderProcessHostObserver::RenderProcessExited callbacks. |
| 629 bool delayed_cleanup_needed_; | 636 bool delayed_cleanup_needed_; |
| 630 | 637 |
| 631 // Indicates whether RenderProcessHostImpl is currently iterating and calling | 638 // Indicates whether RenderProcessHostImpl is currently iterating and calling |
| 632 // through RenderProcessHostObserver::RenderProcessExited. | 639 // through RenderProcessHostObserver::RenderProcessExited. |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 706 FrameSinkProviderImpl frame_sink_provider_; | 713 FrameSinkProviderImpl frame_sink_provider_; |
| 707 | 714 |
| 708 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 715 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 709 | 716 |
| 710 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 717 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 711 }; | 718 }; |
| 712 | 719 |
| 713 } // namespace content | 720 } // namespace content |
| 714 | 721 |
| 715 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 722 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |