| 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/child/child_thread.h" | 5 #include "content/child/child_thread.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/allocator/allocator_extension.h" | 9 #include "base/allocator/allocator_extension.h" |
| 10 #include "base/base_switches.h" | 10 #include "base/base_switches.h" |
| (...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 // The child process shutdown sequence is a request response based mechanism, | 483 // The child process shutdown sequence is a request response based mechanism, |
| 484 // where we send out an initial feeler request to the child process host | 484 // where we send out an initial feeler request to the child process host |
| 485 // instance in the browser to verify if it's ok to shutdown the child process. | 485 // instance in the browser to verify if it's ok to shutdown the child process. |
| 486 // The browser then sends back a response if it's ok to shutdown. This avoids | 486 // The browser then sends back a response if it's ok to shutdown. This avoids |
| 487 // race conditions if the process refcount is 0 but there's an IPC message | 487 // race conditions if the process refcount is 0 but there's an IPC message |
| 488 // inflight that would addref it. | 488 // inflight that would addref it. |
| 489 Send(new ChildProcessHostMsg_ShutdownRequest); | 489 Send(new ChildProcessHostMsg_ShutdownRequest); |
| 490 } | 490 } |
| 491 | 491 |
| 492 void ChildThread::EnsureConnected() { | 492 void ChildThread::EnsureConnected() { |
| 493 LOG(INFO) << "ChildThread::EnsureConnected()"; | 493 VLOG(0) << "ChildThread::EnsureConnected()"; |
| 494 base::KillProcess(base::GetCurrentProcessHandle(), 0, false); | 494 base::KillProcess(base::GetCurrentProcessHandle(), 0, false); |
| 495 } | 495 } |
| 496 | 496 |
| 497 } // namespace content | 497 } // namespace content |
| OLD | NEW |