| 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 1904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1915 child_process_launcher_.reset(); | 1915 child_process_launcher_.reset(); |
| 1916 channel_.reset(); | 1916 channel_.reset(); |
| 1917 | 1917 |
| 1918 within_process_died_observer_ = true; | 1918 within_process_died_observer_ = true; |
| 1919 NotificationService::current()->Notify( | 1919 NotificationService::current()->Notify( |
| 1920 NOTIFICATION_RENDERER_PROCESS_CLOSED, | 1920 NOTIFICATION_RENDERER_PROCESS_CLOSED, |
| 1921 Source<RenderProcessHost>(this), | 1921 Source<RenderProcessHost>(this), |
| 1922 Details<RendererClosedDetails>(&details)); | 1922 Details<RendererClosedDetails>(&details)); |
| 1923 FOR_EACH_OBSERVER(RenderProcessHostObserver, | 1923 FOR_EACH_OBSERVER(RenderProcessHostObserver, |
| 1924 observers_, | 1924 observers_, |
| 1925 RenderProcessExited(this, GetHandle(), status, exit_code)); | 1925 RenderProcessExited(this, status, exit_code)); |
| 1926 within_process_died_observer_ = false; | 1926 within_process_died_observer_ = false; |
| 1927 | 1927 |
| 1928 gpu_message_filter_ = NULL; | 1928 gpu_message_filter_ = NULL; |
| 1929 message_port_message_filter_ = NULL; | 1929 message_port_message_filter_ = NULL; |
| 1930 RemoveUserData(kSessionStorageHolderKey); | 1930 RemoveUserData(kSessionStorageHolderKey); |
| 1931 | 1931 |
| 1932 IDMap<IPC::Listener>::iterator iter(&listeners_); | 1932 IDMap<IPC::Listener>::iterator iter(&listeners_); |
| 1933 while (!iter.IsAtEnd()) { | 1933 while (!iter.IsAtEnd()) { |
| 1934 iter.GetCurrentValue()->OnMessageReceived( | 1934 iter.GetCurrentValue()->OnMessageReceived( |
| 1935 ViewHostMsg_RenderProcessGone(iter.GetCurrentKey(), | 1935 ViewHostMsg_RenderProcessGone(iter.GetCurrentKey(), |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2249 if (worker_ref_count_ == 0) | 2249 if (worker_ref_count_ == 0) |
| 2250 Cleanup(); | 2250 Cleanup(); |
| 2251 } | 2251 } |
| 2252 | 2252 |
| 2253 void RenderProcessHostImpl::EnsureMojoActivated() { | 2253 void RenderProcessHostImpl::EnsureMojoActivated() { |
| 2254 mojo_activation_required_ = true; | 2254 mojo_activation_required_ = true; |
| 2255 MaybeActivateMojo(); | 2255 MaybeActivateMojo(); |
| 2256 } | 2256 } |
| 2257 | 2257 |
| 2258 } // namespace content | 2258 } // namespace content |
| OLD | NEW |