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_impl.h" | 5 #include "content/child/child_thread_impl.h" |
6 | 6 |
7 #include <signal.h> | 7 #include <signal.h> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/base_switches.h" | 11 #include "base/base_switches.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/debug/leak_annotations.h" | 13 #include "base/debug/leak_annotations.h" |
14 #include "base/debug/profiler.h" | 14 #include "base/debug/profiler.h" |
15 #include "base/lazy_instance.h" | 15 #include "base/lazy_instance.h" |
16 #include "base/location.h" | 16 #include "base/location.h" |
17 #include "base/logging.h" | 17 #include "base/logging.h" |
18 #include "base/macros.h" | 18 #include "base/macros.h" |
19 #include "base/message_loop/timer_slack.h" | 19 #include "base/message_loop/timer_slack.h" |
20 #include "base/metrics/field_trial.h" | 20 #include "base/metrics/field_trial.h" |
21 #include "base/metrics/histogram_macros.h" | 21 #include "base/metrics/histogram_macros.h" |
22 #include "base/process/process.h" | 22 #include "base/process/process.h" |
23 #include "base/process/process_handle.h" | 23 #include "base/process/process_handle.h" |
24 #include "base/single_thread_task_runner.h" | 24 #include "base/single_thread_task_runner.h" |
25 #include "base/strings/string_number_conversions.h" | 25 #include "base/strings/string_number_conversions.h" |
26 #include "base/strings/string_util.h" | 26 #include "base/strings/string_util.h" |
27 #include "base/synchronization/condition_variable.h" | 27 #include "base/synchronization/condition_variable.h" |
28 #include "base/synchronization/lock.h" | 28 #include "base/synchronization/lock.h" |
29 #include "base/thread_task_runner_handle.h" | |
30 #include "base/threading/thread_local.h" | 29 #include "base/threading/thread_local.h" |
| 30 #include "base/threading/thread_task_runner_handle.h" |
31 #include "base/timer/elapsed_timer.h" | 31 #include "base/timer/elapsed_timer.h" |
32 #include "base/tracked_objects.h" | 32 #include "base/tracked_objects.h" |
33 #include "build/build_config.h" | 33 #include "build/build_config.h" |
34 #include "components/tracing/child_trace_message_filter.h" | 34 #include "components/tracing/child_trace_message_filter.h" |
35 #include "content/child/child_discardable_shared_memory_manager.h" | 35 #include "content/child/child_discardable_shared_memory_manager.h" |
36 #include "content/child/child_gpu_memory_buffer_manager.h" | 36 #include "content/child/child_gpu_memory_buffer_manager.h" |
37 #include "content/child/child_histogram_message_filter.h" | 37 #include "content/child/child_histogram_message_filter.h" |
38 #include "content/child/child_process.h" | 38 #include "content/child/child_process.h" |
39 #include "content/child/child_resource_message_filter.h" | 39 #include "content/child/child_resource_message_filter.h" |
40 #include "content/child/child_shared_bitmap_manager.h" | 40 #include "content/child/child_shared_bitmap_manager.h" |
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
721 void ChildThreadImpl::EnsureConnected() { | 721 void ChildThreadImpl::EnsureConnected() { |
722 VLOG(0) << "ChildThreadImpl::EnsureConnected()"; | 722 VLOG(0) << "ChildThreadImpl::EnsureConnected()"; |
723 base::Process::Current().Terminate(0, false); | 723 base::Process::Current().Terminate(0, false); |
724 } | 724 } |
725 | 725 |
726 bool ChildThreadImpl::IsInBrowserProcess() const { | 726 bool ChildThreadImpl::IsInBrowserProcess() const { |
727 return browser_process_io_runner_; | 727 return browser_process_io_runner_; |
728 } | 728 } |
729 | 729 |
730 } // namespace content | 730 } // namespace content |
OLD | NEW |