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

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

Issue 9514016: Fixing a problem, where a hung renderer process is not killed when navigating away (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <queue> 10 #include <queue>
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 virtual void Cleanup() OVERRIDE; 80 virtual void Cleanup() OVERRIDE;
81 virtual void AddPendingView() OVERRIDE; 81 virtual void AddPendingView() OVERRIDE;
82 virtual void RemovePendingView() OVERRIDE; 82 virtual void RemovePendingView() OVERRIDE;
83 virtual void SetSuddenTerminationAllowed(bool enabled) OVERRIDE; 83 virtual void SetSuddenTerminationAllowed(bool enabled) OVERRIDE;
84 virtual bool SuddenTerminationAllowed() const OVERRIDE; 84 virtual bool SuddenTerminationAllowed() const OVERRIDE;
85 virtual IPC::ChannelProxy* GetChannel() OVERRIDE; 85 virtual IPC::ChannelProxy* GetChannel() OVERRIDE;
86 virtual listeners_iterator ListenersIterator() OVERRIDE; 86 virtual listeners_iterator ListenersIterator() OVERRIDE;
87 virtual bool FastShutdownForPageCount(size_t count) OVERRIDE; 87 virtual bool FastShutdownForPageCount(size_t count) OVERRIDE;
88 virtual bool FastShutdownStarted() const OVERRIDE; 88 virtual bool FastShutdownStarted() const OVERRIDE;
89 virtual base::TimeDelta GetChildProcessIdleTime() const OVERRIDE; 89 virtual base::TimeDelta GetChildProcessIdleTime() const OVERRIDE;
90 virtual bool AllowTerminateOnUnresponsive() const OVERRIDE;
Charlie Reis 2012/03/01 21:08:17 Let's rename this to TerminateOnUnresponsiveAllowe
nasko 2012/03/01 22:50:15 Done.
90 91
91 // IPC::Channel::Sender via RenderProcessHost. 92 // IPC::Channel::Sender via RenderProcessHost.
92 virtual bool Send(IPC::Message* msg) OVERRIDE; 93 virtual bool Send(IPC::Message* msg) OVERRIDE;
93 94
94 // IPC::Channel::Listener via RenderProcessHost. 95 // IPC::Channel::Listener via RenderProcessHost.
95 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 96 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
96 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; 97 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
97 virtual void OnChannelError() OVERRIDE; 98 virtual void OnChannelError() OVERRIDE;
98 99
99 // ChildProcessLauncher::Client implementation. 100 // ChildProcessLauncher::Client implementation.
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 // filtering for this at the render widget level. 243 // filtering for this at the render widget level.
243 bool ignore_input_events_; 244 bool ignore_input_events_;
244 245
245 // Records the last time we regarded the child process active. 246 // Records the last time we regarded the child process active.
246 base::TimeTicks child_process_activity_time_; 247 base::TimeTicks child_process_activity_time_;
247 248
248 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 249 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
249 }; 250 };
250 251
251 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ 252 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698