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

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

Issue 10008015: 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: Fixed problems when navigating to page that doesn't involve network IO. Created 8 years, 8 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 public base::WaitableEventWatcher::Delegate { 54 public base::WaitableEventWatcher::Delegate {
55 public: 55 public:
56 explicit RenderProcessHostImpl(content::BrowserContext* browser_context); 56 explicit RenderProcessHostImpl(content::BrowserContext* browser_context);
57 virtual ~RenderProcessHostImpl(); 57 virtual ~RenderProcessHostImpl();
58 58
59 // RenderProcessHost implementation (public portion). 59 // RenderProcessHost implementation (public portion).
60 virtual void EnableSendQueue() OVERRIDE; 60 virtual void EnableSendQueue() OVERRIDE;
61 virtual bool Init(bool is_accessibility_enabled) OVERRIDE; 61 virtual bool Init(bool is_accessibility_enabled) OVERRIDE;
62 virtual int GetNextRoutingID() OVERRIDE; 62 virtual int GetNextRoutingID() OVERRIDE;
63 virtual void CancelResourceRequests(int render_widget_id) OVERRIDE; 63 virtual void CancelResourceRequests(int render_widget_id) OVERRIDE;
64 virtual void CrossSiteSwapOutACK(const ViewMsg_SwapOut_Params& params) 64 virtual void SimulateSwapOutACK(
65 OVERRIDE; 65 const ViewMsg_SwapOut_Params& params) OVERRIDE;
66 virtual bool WaitForUpdateMsg(int render_widget_id, 66 virtual bool WaitForUpdateMsg(int render_widget_id,
67 const base::TimeDelta& max_delay, 67 const base::TimeDelta& max_delay,
68 IPC::Message* msg) OVERRIDE; 68 IPC::Message* msg) OVERRIDE;
69 virtual void ReceivedBadMessage() OVERRIDE; 69 virtual void ReceivedBadMessage() OVERRIDE;
70 virtual void WidgetRestored() OVERRIDE; 70 virtual void WidgetRestored() OVERRIDE;
71 virtual void WidgetHidden() OVERRIDE; 71 virtual void WidgetHidden() OVERRIDE;
72 virtual int VisibleWidgetCount() const OVERRIDE; 72 virtual int VisibleWidgetCount() const OVERRIDE;
73 virtual bool FastShutdownIfPossible() OVERRIDE; 73 virtual bool FastShutdownIfPossible() OVERRIDE;
74 virtual void DumpHandles() OVERRIDE; 74 virtual void DumpHandles() OVERRIDE;
75 virtual base::ProcessHandle GetHandle() OVERRIDE; 75 virtual base::ProcessHandle GetHandle() OVERRIDE;
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 // filtering for this at the render widget level. 258 // filtering for this at the render widget level.
259 bool ignore_input_events_; 259 bool ignore_input_events_;
260 260
261 // Records the last time we regarded the child process active. 261 // Records the last time we regarded the child process active.
262 base::TimeTicks child_process_activity_time_; 262 base::TimeTicks child_process_activity_time_;
263 263
264 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 264 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
265 }; 265 };
266 266
267 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ 267 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698