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/alias.h" | 13 #include "base/debug/alias.h" |
14 #include "base/debug/leak_annotations.h" | 14 #include "base/debug/leak_annotations.h" |
15 #include "base/debug/profiler.h" | 15 #include "base/debug/profiler.h" |
16 #include "base/lazy_instance.h" | 16 #include "base/lazy_instance.h" |
17 #include "base/location.h" | 17 #include "base/location.h" |
18 #include "base/logging.h" | 18 #include "base/logging.h" |
19 #include "base/macros.h" | 19 #include "base/macros.h" |
| 20 #include "base/memory/ptr_util.h" |
20 #include "base/message_loop/timer_slack.h" | 21 #include "base/message_loop/timer_slack.h" |
21 #include "base/metrics/field_trial.h" | 22 #include "base/metrics/field_trial.h" |
22 #include "base/metrics/histogram_macros.h" | 23 #include "base/metrics/histogram_macros.h" |
23 #include "base/process/process.h" | 24 #include "base/process/process.h" |
24 #include "base/process/process_handle.h" | 25 #include "base/process/process_handle.h" |
25 #include "base/single_thread_task_runner.h" | 26 #include "base/single_thread_task_runner.h" |
26 #include "base/strings/string_number_conversions.h" | 27 #include "base/strings/string_number_conversions.h" |
27 #include "base/strings/string_util.h" | 28 #include "base/strings/string_util.h" |
28 #include "base/synchronization/condition_variable.h" | 29 #include "base/synchronization/condition_variable.h" |
29 #include "base/synchronization/lock.h" | 30 #include "base/synchronization/lock.h" |
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
862 connected_to_browser_ = true; | 863 connected_to_browser_ = true; |
863 child_info_ = local_info; | 864 child_info_ = local_info; |
864 browser_info_ = remote_info; | 865 browser_info_ = remote_info; |
865 } | 866 } |
866 | 867 |
867 bool ChildThreadImpl::IsInBrowserProcess() const { | 868 bool ChildThreadImpl::IsInBrowserProcess() const { |
868 return static_cast<bool>(browser_process_io_runner_); | 869 return static_cast<bool>(browser_process_io_runner_); |
869 } | 870 } |
870 | 871 |
871 } // namespace content | 872 } // namespace content |
OLD | NEW |