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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 | 182 |
183 // IPC::Sender via RenderProcessHost. | 183 // IPC::Sender via RenderProcessHost. |
184 bool Send(IPC::Message* msg) override; | 184 bool Send(IPC::Message* msg) override; |
185 | 185 |
186 // IPC::Listener via RenderProcessHost. | 186 // IPC::Listener via RenderProcessHost. |
187 bool OnMessageReceived(const IPC::Message& msg) override; | 187 bool OnMessageReceived(const IPC::Message& msg) override; |
188 void OnChannelConnected(int32_t peer_pid) override; | 188 void OnChannelConnected(int32_t peer_pid) override; |
189 void OnChannelError() override; | 189 void OnChannelError() override; |
190 void OnBadMessageReceived(const IPC::Message& message) override; | 190 void OnBadMessageReceived(const IPC::Message& message) override; |
191 | 191 |
| 192 void OnPrefetchFinished(); |
| 193 |
192 // ChildProcessLauncher::Client implementation. | 194 // ChildProcessLauncher::Client implementation. |
193 void OnProcessLaunched() override; | 195 void OnProcessLaunched() override; |
194 void OnProcessLaunchFailed(int error_code) override; | 196 void OnProcessLaunchFailed(int error_code) override; |
195 | 197 |
196 scoped_refptr<AudioRendererHost> audio_renderer_host() const; | 198 scoped_refptr<AudioRendererHost> audio_renderer_host() const; |
197 | 199 |
198 // Call this function when it is evident that the child process is actively | 200 // Call this function when it is evident that the child process is actively |
199 // performing some operation, for example if we just received an IPC message. | 201 // performing some operation, for example if we just received an IPC message. |
200 void mark_child_process_activity_time() { | 202 void mark_child_process_activity_time() { |
201 child_process_activity_time_ = base::TimeTicks::Now(); | 203 child_process_activity_time_ = base::TimeTicks::Now(); |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 instance_weak_factory_; | 581 instance_weak_factory_; |
580 | 582 |
581 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 583 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
582 | 584 |
583 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 585 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
584 }; | 586 }; |
585 | 587 |
586 } // namespace content | 588 } // namespace content |
587 | 589 |
588 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 590 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
OLD | NEW |