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 "base/allocator/allocator_extension.h" | 7 #include "base/allocator/allocator_extension.h" |
8 #include "base/base_switches.h" | 8 #include "base/base_switches.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "base/process.h" | 12 #include "base/process/kill.h" |
13 #include "base/process_util.h" | 13 #include "base/process/process_handle.h" |
14 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
15 #include "base/threading/thread_local.h" | 15 #include "base/threading/thread_local.h" |
16 #include "base/tracked_objects.h" | 16 #include "base/tracked_objects.h" |
17 #include "components/tracing/child_trace_message_filter.h" | 17 #include "components/tracing/child_trace_message_filter.h" |
18 #include "content/child/child_histogram_message_filter.h" | 18 #include "content/child/child_histogram_message_filter.h" |
19 #include "content/child/child_process.h" | 19 #include "content/child/child_process.h" |
20 #include "content/child/child_resource_message_filter.h" | 20 #include "content/child/child_resource_message_filter.h" |
21 #include "content/child/fileapi/file_system_dispatcher.h" | 21 #include "content/child/fileapi/file_system_dispatcher.h" |
22 #include "content/child/quota_dispatcher.h" | 22 #include "content/child/quota_dispatcher.h" |
23 #include "content/child/resource_dispatcher.h" | 23 #include "content/child/resource_dispatcher.h" |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 // inflight that would addref it. | 406 // inflight that would addref it. |
407 Send(new ChildProcessHostMsg_ShutdownRequest); | 407 Send(new ChildProcessHostMsg_ShutdownRequest); |
408 } | 408 } |
409 | 409 |
410 void ChildThread::EnsureConnected() { | 410 void ChildThread::EnsureConnected() { |
411 LOG(INFO) << "ChildThread::EnsureConnected()"; | 411 LOG(INFO) << "ChildThread::EnsureConnected()"; |
412 base::KillProcess(base::GetCurrentProcessHandle(), 0, false); | 412 base::KillProcess(base::GetCurrentProcessHandle(), 0, false); |
413 } | 413 } |
414 | 414 |
415 } // namespace content | 415 } // namespace content |
OLD | NEW |