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