OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |