Chromium Code Reviews| 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 #include "content/renderer/render_thread_impl.h" | 5 #include "content/renderer/render_thread_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 855 GetRemoteInterfaces()->GetInterface( | 855 GetRemoteInterfaces()->GetInterface( |
| 856 mojo::GetProxy(&storage_partition_service_)); | 856 mojo::GetProxy(&storage_partition_service_)); |
| 857 | 857 |
| 858 is_renderer_suspended_ = false; | 858 is_renderer_suspended_ = false; |
| 859 } | 859 } |
| 860 | 860 |
| 861 RenderThreadImpl::~RenderThreadImpl() { | 861 RenderThreadImpl::~RenderThreadImpl() { |
| 862 } | 862 } |
| 863 | 863 |
| 864 void RenderThreadImpl::Shutdown() { | 864 void RenderThreadImpl::Shutdown() { |
| 865 exit(0); | |
|
Torne
2016/09/13 15:08:08
One more comment while I think of it: single-proce
| |
| 866 | |
| 865 FOR_EACH_OBSERVER( | 867 FOR_EACH_OBSERVER( |
| 866 RenderThreadObserver, observers_, OnRenderProcessShutdown()); | 868 RenderThreadObserver, observers_, OnRenderProcessShutdown()); |
| 867 | 869 |
| 868 if (memory_observer_) { | 870 if (memory_observer_) { |
| 869 message_loop()->RemoveTaskObserver(memory_observer_.get()); | 871 message_loop()->RemoveTaskObserver(memory_observer_.get()); |
| 870 memory_observer_.reset(); | 872 memory_observer_.reset(); |
| 871 } | 873 } |
| 872 | 874 |
| 873 // Wait for all databases to be closed. | 875 // Wait for all databases to be closed. |
| 874 if (blink_platform_impl_) { | 876 if (blink_platform_impl_) { |
| (...skipping 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2245 if (blink::mainThreadIsolate()) { | 2247 if (blink::mainThreadIsolate()) { |
| 2246 blink::mainThreadIsolate()->MemoryPressureNotification( | 2248 blink::mainThreadIsolate()->MemoryPressureNotification( |
| 2247 v8::MemoryPressureLevel::kCritical); | 2249 v8::MemoryPressureLevel::kCritical); |
| 2248 blink::MemoryPressureNotificationToWorkerThreadIsolates( | 2250 blink::MemoryPressureNotificationToWorkerThreadIsolates( |
| 2249 v8::MemoryPressureLevel::kCritical); | 2251 v8::MemoryPressureLevel::kCritical); |
| 2250 } | 2252 } |
| 2251 } | 2253 } |
| 2252 | 2254 |
| 2253 | 2255 |
| 2254 } // namespace content | 2256 } // namespace content |
| OLD | NEW |