| 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_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 void SetWebRtcLogMessageCallback( | 130 void SetWebRtcLogMessageCallback( |
| 131 base::Callback<void(const std::string&)> callback) override; | 131 base::Callback<void(const std::string&)> callback) override; |
| 132 WebRtcStopRtpDumpCallback StartRtpDump( | 132 WebRtcStopRtpDumpCallback StartRtpDump( |
| 133 bool incoming, | 133 bool incoming, |
| 134 bool outgoing, | 134 bool outgoing, |
| 135 const WebRtcRtpPacketCallback& packet_callback) override; | 135 const WebRtcRtpPacketCallback& packet_callback) override; |
| 136 #endif | 136 #endif |
| 137 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; | 137 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; |
| 138 void NotifyTimezoneChange() override; | 138 void NotifyTimezoneChange() override; |
| 139 ServiceRegistry* GetServiceRegistry() override; | 139 ServiceRegistry* GetServiceRegistry() override; |
| 140 const base::TimeTicks& GetInitTimeForPlzNavigate() const override; |
| 140 | 141 |
| 141 // IPC::Sender via RenderProcessHost. | 142 // IPC::Sender via RenderProcessHost. |
| 142 bool Send(IPC::Message* msg) override; | 143 bool Send(IPC::Message* msg) override; |
| 143 | 144 |
| 144 // IPC::Listener via RenderProcessHost. | 145 // IPC::Listener via RenderProcessHost. |
| 145 bool OnMessageReceived(const IPC::Message& msg) override; | 146 bool OnMessageReceived(const IPC::Message& msg) override; |
| 146 void OnChannelConnected(int32 peer_pid) override; | 147 void OnChannelConnected(int32 peer_pid) override; |
| 147 void OnChannelError() override; | 148 void OnChannelError() override; |
| 148 void OnBadMessageReceived(const IPC::Message& message) override; | 149 void OnBadMessageReceived(const IPC::Message& message) override; |
| 149 | 150 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 // Called when the existence of the other renderer process which is connected | 248 // Called when the existence of the other renderer process which is connected |
| 248 // to the Worker in this renderer process has changed. | 249 // to the Worker in this renderer process has changed. |
| 249 // It is only called when "enable-embedded-shared-worker" flag is set. | 250 // It is only called when "enable-embedded-shared-worker" flag is set. |
| 250 void IncrementWorkerRefCount(); | 251 void IncrementWorkerRefCount(); |
| 251 void DecrementWorkerRefCount(); | 252 void DecrementWorkerRefCount(); |
| 252 | 253 |
| 253 // Call this function to resume the navigation when it was deferred | 254 // Call this function to resume the navigation when it was deferred |
| 254 // immediately after receiving response headers. | 255 // immediately after receiving response headers. |
| 255 void ResumeResponseDeferredAtStart(const GlobalRequestID& request_id); | 256 void ResumeResponseDeferredAtStart(const GlobalRequestID& request_id); |
| 256 | 257 |
| 257 // PlzNavigate | |
| 258 // Returns the time the first call to Init completed successfully (after a new | |
| 259 // renderer process was created); further calls to Init won't change this | |
| 260 // value. | |
| 261 // Note: Will disappear after PlzNavitate is completed. | |
| 262 const base::TimeTicks& init_time() const { return init_time_; } | |
| 263 | |
| 264 protected: | 258 protected: |
| 265 // A proxy for our IPC::Channel that lives on the IO thread (see | 259 // A proxy for our IPC::Channel that lives on the IO thread (see |
| 266 // browser_process.h) | 260 // browser_process.h) |
| 267 scoped_ptr<IPC::ChannelProxy> channel_; | 261 scoped_ptr<IPC::ChannelProxy> channel_; |
| 268 | 262 |
| 269 // A host object ChannelMojo needs. The lifetime is bound to | 263 // A host object ChannelMojo needs. The lifetime is bound to |
| 270 // the RenderProcessHostImpl, not the channel. | 264 // the RenderProcessHostImpl, not the channel. |
| 271 scoped_ptr<IPC::ChannelMojoHost> channel_mojo_host_; | 265 scoped_ptr<IPC::ChannelMojoHost> channel_mojo_host_; |
| 272 | 266 |
| 273 // True if fast shutdown has been performed on this RPH. | 267 // True if fast shutdown has been performed on this RPH. |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 base::TimeTicks survive_for_worker_start_time_; | 454 base::TimeTicks survive_for_worker_start_time_; |
| 461 | 455 |
| 462 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 456 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 463 | 457 |
| 464 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 458 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 465 }; | 459 }; |
| 466 | 460 |
| 467 } // namespace content | 461 } // namespace content |
| 468 | 462 |
| 469 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 463 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |