| 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 void SetIsNeverSuitableForReuse() override; | 188 void SetIsNeverSuitableForReuse() override; |
| 189 bool MayReuseHost() override; | 189 bool MayReuseHost() override; |
| 190 bool CanBecomeDedicatedProcess() override; |
| 191 void UnsetCanBecomeDedicatedProcess() override; |
| 190 | 192 |
| 191 mojom::RouteProvider* GetRemoteRouteProvider(); | 193 mojom::RouteProvider* GetRemoteRouteProvider(); |
| 192 | 194 |
| 193 // IPC::Sender via RenderProcessHost. | 195 // IPC::Sender via RenderProcessHost. |
| 194 bool Send(IPC::Message* msg) override; | 196 bool Send(IPC::Message* msg) override; |
| 195 | 197 |
| 196 // IPC::Listener via RenderProcessHost. | 198 // IPC::Listener via RenderProcessHost. |
| 197 bool OnMessageReceived(const IPC::Message& msg) override; | 199 bool OnMessageReceived(const IPC::Message& msg) override; |
| 198 void OnAssociatedInterfaceRequest( | 200 void OnAssociatedInterfaceRequest( |
| 199 const std::string& interface_name, | 201 const std::string& interface_name, |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 // filtering for this at the render widget level. | 603 // filtering for this at the render widget level. |
| 602 bool ignore_input_events_; | 604 bool ignore_input_events_; |
| 603 | 605 |
| 604 // Records the last time we regarded the child process active. | 606 // Records the last time we regarded the child process active. |
| 605 base::TimeTicks child_process_activity_time_; | 607 base::TimeTicks child_process_activity_time_; |
| 606 | 608 |
| 607 // Indicates whether this RenderProcessHost is exclusively hosting guest | 609 // Indicates whether this RenderProcessHost is exclusively hosting guest |
| 608 // RenderFrames. | 610 // RenderFrames. |
| 609 bool is_for_guests_only_; | 611 bool is_for_guests_only_; |
| 610 | 612 |
| 613 // Indicates whether this RenderProcessHost can host any site that requires a |
| 614 // dedicated process. |
| 615 bool can_become_dedicated_process_; |
| 616 |
| 611 // Prevents the class from being added as a GpuDataManagerImpl observer more | 617 // Prevents the class from being added as a GpuDataManagerImpl observer more |
| 612 // than once. | 618 // than once. |
| 613 bool gpu_observer_registered_; | 619 bool gpu_observer_registered_; |
| 614 | 620 |
| 615 // Set if a call to Cleanup is required once the RenderProcessHostImpl is no | 621 // Set if a call to Cleanup is required once the RenderProcessHostImpl is no |
| 616 // longer within the RenderProcessHostObserver::RenderProcessExited callbacks. | 622 // longer within the RenderProcessHostObserver::RenderProcessExited callbacks. |
| 617 bool delayed_cleanup_needed_; | 623 bool delayed_cleanup_needed_; |
| 618 | 624 |
| 619 // Indicates whether RenderProcessHostImpl is currently iterating and calling | 625 // Indicates whether RenderProcessHostImpl is currently iterating and calling |
| 620 // through RenderProcessHostObserver::RenderProcessExited. | 626 // through RenderProcessHostObserver::RenderProcessExited. |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |