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 bool Send(IPC::Message* msg) override; | 172 bool Send(IPC::Message* msg) override; |
173 | 173 |
174 // IPC::Listener via RenderProcessHost. | 174 // IPC::Listener via RenderProcessHost. |
175 bool OnMessageReceived(const IPC::Message& msg) override; | 175 bool OnMessageReceived(const IPC::Message& msg) override; |
176 void OnChannelConnected(int32_t peer_pid) override; | 176 void OnChannelConnected(int32_t peer_pid) override; |
177 void OnChannelError() override; | 177 void OnChannelError() override; |
178 void OnBadMessageReceived(const IPC::Message& message) override; | 178 void OnBadMessageReceived(const IPC::Message& message) override; |
179 | 179 |
180 // ChildProcessLauncher::Client implementation. | 180 // ChildProcessLauncher::Client implementation. |
181 void OnProcessLaunched() override; | 181 void OnProcessLaunched() override; |
182 void OnProcessLaunchFailed() override; | 182 void OnProcessLaunchFailed(int error_code) override; |
183 | 183 |
184 scoped_refptr<AudioRendererHost> audio_renderer_host() const; | 184 scoped_refptr<AudioRendererHost> audio_renderer_host() const; |
185 | 185 |
186 // Call this function when it is evident that the child process is actively | 186 // Call this function when it is evident that the child process is actively |
187 // performing some operation, for example if we just received an IPC message. | 187 // performing some operation, for example if we just received an IPC message. |
188 void mark_child_process_activity_time() { | 188 void mark_child_process_activity_time() { |
189 child_process_activity_time_ = base::TimeTicks::Now(); | 189 child_process_activity_time_ = base::TimeTicks::Now(); |
190 } | 190 } |
191 | 191 |
192 // Used to extend the lifetime of the sessions until the render view | 192 // Used to extend the lifetime of the sessions until the render view |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; | 513 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; |
514 | 514 |
515 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 515 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
516 | 516 |
517 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 517 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
518 }; | 518 }; |
519 | 519 |
520 } // namespace content | 520 } // namespace content |
521 | 521 |
522 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 522 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
OLD | NEW |