| 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 int cdm_id) const override; | 172 int cdm_id) const override; |
| 173 #endif | 173 #endif |
| 174 bool IsProcessBackgrounded() const override; | 174 bool IsProcessBackgrounded() const override; |
| 175 void IncrementServiceWorkerRefCount() override; | 175 void IncrementServiceWorkerRefCount() override; |
| 176 void DecrementServiceWorkerRefCount() override; | 176 void DecrementServiceWorkerRefCount() override; |
| 177 void IncrementSharedWorkerRefCount() override; | 177 void IncrementSharedWorkerRefCount() override; |
| 178 void DecrementSharedWorkerRefCount() override; | 178 void DecrementSharedWorkerRefCount() override; |
| 179 void ForceReleaseWorkerRefCounts() override; | 179 void ForceReleaseWorkerRefCounts() override; |
| 180 bool IsWorkerRefCountDisabled() override; | 180 bool IsWorkerRefCountDisabled() override; |
| 181 void PurgeAndSuspend() override; | 181 void PurgeAndSuspend() override; |
| 182 const base::TimeTicks& GetLastPurgeAndSuspendTime() const override; |
| 182 | 183 |
| 183 mojom::RouteProvider* GetRemoteRouteProvider(); | 184 mojom::RouteProvider* GetRemoteRouteProvider(); |
| 184 | 185 |
| 185 // IPC::Sender via RenderProcessHost. | 186 // IPC::Sender via RenderProcessHost. |
| 186 bool Send(IPC::Message* msg) override; | 187 bool Send(IPC::Message* msg) override; |
| 187 | 188 |
| 188 // IPC::Listener via RenderProcessHost. | 189 // IPC::Listener via RenderProcessHost. |
| 189 bool OnMessageReceived(const IPC::Message& msg) override; | 190 bool OnMessageReceived(const IPC::Message& msg) override; |
| 190 void OnChannelConnected(int32_t peer_pid) override; | 191 void OnChannelConnected(int32_t peer_pid) override; |
| 191 void OnChannelError() override; | 192 void OnChannelError() override; |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 470 std::unique_ptr<base::Thread> in_process_renderer_; | 471 std::unique_ptr<base::Thread> in_process_renderer_; |
| 471 | 472 |
| 472 // True after Init() has been called. We can't just check channel_ because we | 473 // True after Init() has been called. We can't just check channel_ because we |
| 473 // also reset that in the case of process termination. | 474 // also reset that in the case of process termination. |
| 474 bool is_initialized_; | 475 bool is_initialized_; |
| 475 | 476 |
| 476 // PlzNavigate | 477 // PlzNavigate |
| 477 // Stores the time at which the first call to Init happened. | 478 // Stores the time at which the first call to Init happened. |
| 478 base::TimeTicks init_time_; | 479 base::TimeTicks init_time_; |
| 479 | 480 |
| 481 base::TimeTicks last_purge_and_suspend_time_; |
| 482 |
| 480 // Used to launch and terminate the process without blocking the UI thread. | 483 // Used to launch and terminate the process without blocking the UI thread. |
| 481 std::unique_ptr<ChildProcessLauncher> child_process_launcher_; | 484 std::unique_ptr<ChildProcessLauncher> child_process_launcher_; |
| 482 | 485 |
| 483 // Messages we queue before the ChannelProxy is created. | 486 // Messages we queue before the ChannelProxy is created. |
| 484 using MessageQueue = std::queue<std::unique_ptr<IPC::Message>>; | 487 using MessageQueue = std::queue<std::unique_ptr<IPC::Message>>; |
| 485 MessageQueue queued_messages_; | 488 MessageQueue queued_messages_; |
| 486 | 489 |
| 487 // The globally-unique identifier for this RPH. | 490 // The globally-unique identifier for this RPH. |
| 488 const int id_; | 491 const int id_; |
| 489 | 492 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 instance_weak_factory_; | 594 instance_weak_factory_; |
| 592 | 595 |
| 593 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 596 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 594 | 597 |
| 595 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 598 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 596 }; | 599 }; |
| 597 | 600 |
| 598 } // namespace content | 601 } // namespace content |
| 599 | 602 |
| 600 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 603 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |