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/memory/ptr_util.h" |
| 21 #include "base/message_loop/message_loop.h" |
21 #include "base/message_loop/timer_slack.h" | 22 #include "base/message_loop/timer_slack.h" |
22 #include "base/metrics/field_trial.h" | 23 #include "base/metrics/field_trial.h" |
23 #include "base/metrics/histogram_macros.h" | 24 #include "base/metrics/histogram_macros.h" |
24 #include "base/process/process.h" | 25 #include "base/process/process.h" |
25 #include "base/process/process_handle.h" | 26 #include "base/process/process_handle.h" |
26 #include "base/single_thread_task_runner.h" | 27 #include "base/single_thread_task_runner.h" |
27 #include "base/strings/string_number_conversions.h" | 28 #include "base/strings/string_number_conversions.h" |
28 #include "base/strings/string_util.h" | 29 #include "base/strings/string_util.h" |
29 #include "base/synchronization/condition_variable.h" | 30 #include "base/synchronization/condition_variable.h" |
30 #include "base/synchronization/lock.h" | 31 #include "base/synchronization/lock.h" |
(...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
831 Listener* route = router_.GetRoute(routing_id); | 832 Listener* route = router_.GetRoute(routing_id); |
832 if (route) | 833 if (route) |
833 route->OnAssociatedInterfaceRequest(name, request.PassHandle()); | 834 route->OnAssociatedInterfaceRequest(name, request.PassHandle()); |
834 } | 835 } |
835 | 836 |
836 bool ChildThreadImpl::IsInBrowserProcess() const { | 837 bool ChildThreadImpl::IsInBrowserProcess() const { |
837 return static_cast<bool>(browser_process_io_runner_); | 838 return static_cast<bool>(browser_process_io_runner_); |
838 } | 839 } |
839 | 840 |
840 } // namespace content | 841 } // namespace content |
OLD | NEW |