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

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

Issue 19231006: chrome: respect --child-clean-exit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Made comments better. Created 7 years, 4 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 #include <algorithm> 10 #include <algorithm>
(...skipping 1605 matching lines...) Expand 10 before | Expand all | Expand 10 after
1616 child_process_launcher_->GetChildTerminationStatus(already_dead, 1616 child_process_launcher_->GetChildTerminationStatus(already_dead,
1617 &exit_code) : 1617 &exit_code) :
1618 base::TERMINATION_STATUS_NORMAL_TERMINATION; 1618 base::TERMINATION_STATUS_NORMAL_TERMINATION;
1619 1619
1620 RendererClosedDetails details(GetHandle(), status, exit_code); 1620 RendererClosedDetails details(GetHandle(), status, exit_code);
1621 NotificationService::current()->Notify( 1621 NotificationService::current()->Notify(
1622 NOTIFICATION_RENDERER_PROCESS_CLOSED, 1622 NOTIFICATION_RENDERER_PROCESS_CLOSED,
1623 Source<RenderProcessHost>(this), 1623 Source<RenderProcessHost>(this),
1624 Details<RendererClosedDetails>(&details)); 1624 Details<RendererClosedDetails>(&details));
1625 1625
1626 channel_.reset();
1626 child_process_launcher_.reset(); 1627 child_process_launcher_.reset();
1627 channel_.reset();
1628 gpu_message_filter_ = NULL; 1628 gpu_message_filter_ = NULL;
1629 1629
1630 IDMap<IPC::Listener>::iterator iter(&listeners_); 1630 IDMap<IPC::Listener>::iterator iter(&listeners_);
1631 while (!iter.IsAtEnd()) { 1631 while (!iter.IsAtEnd()) {
1632 iter.GetCurrentValue()->OnMessageReceived( 1632 iter.GetCurrentValue()->OnMessageReceived(
1633 ViewHostMsg_RenderProcessGone(iter.GetCurrentKey(), 1633 ViewHostMsg_RenderProcessGone(iter.GetCurrentKey(),
1634 static_cast<int>(status), 1634 static_cast<int>(status),
1635 exit_code)); 1635 exit_code));
1636 iter.Advance(); 1636 iter.Advance();
1637 } 1637 }
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
1789 // Skip widgets in other processes. 1789 // Skip widgets in other processes.
1790 if (widgets[i]->GetProcess()->GetID() != GetID()) 1790 if (widgets[i]->GetProcess()->GetID() != GetID())
1791 continue; 1791 continue;
1792 1792
1793 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); 1793 RenderViewHost* rvh = RenderViewHost::From(widgets[i]);
1794 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); 1794 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences());
1795 } 1795 }
1796 } 1796 }
1797 1797
1798 } // namespace content 1798 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/child_process_launcher.cc ('k') | content/browser/zygote_host/zygote_host_impl_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698