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 1599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1610 Source<RenderProcessHost>(this), | 1610 Source<RenderProcessHost>(this), |
1611 Details<RendererClosedDetails>(&details)); | 1611 Details<RendererClosedDetails>(&details)); |
1612 | 1612 |
1613 child_process_launcher_.reset(); | 1613 child_process_launcher_.reset(); |
1614 channel_.reset(); | 1614 channel_.reset(); |
1615 gpu_message_filter_ = NULL; | 1615 gpu_message_filter_ = NULL; |
1616 | 1616 |
1617 IDMap<IPC::Listener>::iterator iter(&listeners_); | 1617 IDMap<IPC::Listener>::iterator iter(&listeners_); |
1618 while (!iter.IsAtEnd()) { | 1618 while (!iter.IsAtEnd()) { |
1619 iter.GetCurrentValue()->OnMessageReceived( | 1619 iter.GetCurrentValue()->OnMessageReceived( |
1620 ViewHostMsg_RenderViewGone(iter.GetCurrentKey(), | 1620 ViewHostMsg_RenderProcessGone(iter.GetCurrentKey(), |
1621 static_cast<int>(status), | 1621 static_cast<int>(status), |
palmer
2013/07/09 17:47:15
Nit: Whitespace.
nasko
2013/07/09 19:12:48
Done.
| |
1622 exit_code)); | 1622 exit_code)); |
1623 iter.Advance(); | 1623 iter.Advance(); |
1624 } | 1624 } |
1625 | 1625 |
1626 ClearTransportDIBCache(); | 1626 ClearTransportDIBCache(); |
1627 | 1627 |
1628 // this object is not deleted at this point and may be reused later. | 1628 // this object is not deleted at this point and may be reused later. |
1629 // TODO(darin): clean this up | 1629 // TODO(darin): clean this up |
1630 } | 1630 } |
1631 | 1631 |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1776 // Skip widgets in other processes. | 1776 // Skip widgets in other processes. |
1777 if (widgets[i]->GetProcess()->GetID() != GetID()) | 1777 if (widgets[i]->GetProcess()->GetID() != GetID()) |
1778 continue; | 1778 continue; |
1779 | 1779 |
1780 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); | 1780 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); |
1781 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1781 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
1782 } | 1782 } |
1783 } | 1783 } |
1784 | 1784 |
1785 } // namespace content | 1785 } // namespace content |
OLD | NEW |