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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 OVERRIDE; | 131 OVERRIDE; |
132 virtual void NotifyTimezoneChange() OVERRIDE; | 132 virtual void NotifyTimezoneChange() OVERRIDE; |
133 | 133 |
134 // IPC::Sender via RenderProcessHost. | 134 // IPC::Sender via RenderProcessHost. |
135 virtual bool Send(IPC::Message* msg) OVERRIDE; | 135 virtual bool Send(IPC::Message* msg) OVERRIDE; |
136 | 136 |
137 // IPC::Listener via RenderProcessHost. | 137 // IPC::Listener via RenderProcessHost. |
138 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 138 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
139 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; | 139 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; |
140 virtual void OnChannelError() OVERRIDE; | 140 virtual void OnChannelError() OVERRIDE; |
| 141 virtual void OnBadMessageReceived(const IPC::Message& message) OVERRIDE; |
141 | 142 |
142 // ChildProcessLauncher::Client implementation. | 143 // ChildProcessLauncher::Client implementation. |
143 virtual void OnProcessLaunched() OVERRIDE; | 144 virtual void OnProcessLaunched() OVERRIDE; |
144 | 145 |
145 scoped_refptr<AudioRendererHost> audio_renderer_host() const; | 146 scoped_refptr<AudioRendererHost> audio_renderer_host() const; |
146 | 147 |
147 // Call this function when it is evident that the child process is actively | 148 // Call this function when it is evident that the child process is actively |
148 // performing some operation, for example if we just received an IPC message. | 149 // performing some operation, for example if we just received an IPC message. |
149 void mark_child_process_activity_time() { | 150 void mark_child_process_activity_time() { |
150 child_process_activity_time_ = base::TimeTicks::Now(); | 151 child_process_activity_time_ = base::TimeTicks::Now(); |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 base::TimeTicks survive_for_worker_start_time_; | 424 base::TimeTicks survive_for_worker_start_time_; |
424 | 425 |
425 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 426 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
426 | 427 |
427 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 428 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
428 }; | 429 }; |
429 | 430 |
430 } // namespace content | 431 } // namespace content |
431 | 432 |
432 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 433 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
OLD | NEW |