Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.h

Issue 283313002: Ensure that any IPC sent from a child process that couldn't be deserialized causes that p… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: switch to histograms Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/browser/browser_child_process_host_impl.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698