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

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

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: Incorporating Charlie's feedback. 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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 1314 matching lines...) Expand 10 before | Expand all | Expand 10 after
1325 // Only honor the request if appropriate persmissions are granted. 1325 // Only honor the request if appropriate persmissions are granted.
1326 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(), 1326 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(),
1327 path)) 1327 path))
1328 content::GetContentClient()->browser()->OpenItem(path); 1328 content::GetContentClient()->browser()->OpenItem(path);
1329 } 1329 }
1330 1330
1331 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { 1331 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) {
1332 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> 1332 content::GetContentClient()->browser()->GetMHTMLGenerationManager()->
1333 MHTMLGenerated(job_id, data_size); 1333 MHTMLGenerated(job_id, data_size);
1334 } 1334 }
1335
1336 bool RenderProcessHostImpl::TerminateOnUnresponsiveAllowed() const {
1337 if (listeners_.size() > 1)
1338 return false;
1339
1340 return true;
1341 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698