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/public/app/content_main_runner.h" | 5 #include "content/public/app/content_main_runner.h" |
6 | 6 |
| 7 #include <stddef.h> |
7 #include <stdlib.h> | 8 #include <stdlib.h> |
| 9 #include <string.h> |
8 | 10 |
9 #include <string> | 11 #include <string> |
10 | 12 |
11 #include "base/allocator/allocator_extension.h" | 13 #include "base/allocator/allocator_extension.h" |
12 #include "base/at_exit.h" | 14 #include "base/at_exit.h" |
13 #include "base/command_line.h" | 15 #include "base/command_line.h" |
14 #include "base/debug/debugger.h" | 16 #include "base/debug/debugger.h" |
15 #include "base/debug/stack_trace.h" | 17 #include "base/debug/stack_trace.h" |
16 #include "base/files/file_path.h" | 18 #include "base/files/file_path.h" |
17 #include "base/i18n/icu_util.h" | 19 #include "base/i18n/icu_util.h" |
18 #include "base/lazy_instance.h" | 20 #include "base/lazy_instance.h" |
19 #include "base/logging.h" | 21 #include "base/logging.h" |
| 22 #include "base/macros.h" |
20 #include "base/memory/scoped_ptr.h" | 23 #include "base/memory/scoped_ptr.h" |
21 #include "base/memory/scoped_vector.h" | 24 #include "base/memory/scoped_vector.h" |
22 #include "base/metrics/statistics_recorder.h" | 25 #include "base/metrics/statistics_recorder.h" |
23 #include "base/path_service.h" | 26 #include "base/path_service.h" |
24 #include "base/process/launch.h" | 27 #include "base/process/launch.h" |
25 #include "base/process/memory.h" | 28 #include "base/process/memory.h" |
26 #include "base/process/process_handle.h" | 29 #include "base/process/process_handle.h" |
27 #include "base/profiler/alternate_timer.h" | 30 #include "base/profiler/alternate_timer.h" |
28 #include "base/profiler/scoped_tracker.h" | 31 #include "base/profiler/scoped_tracker.h" |
29 #include "base/strings/string_number_conversions.h" | 32 #include "base/strings/string_number_conversions.h" |
30 #include "base/strings/string_util.h" | 33 #include "base/strings/string_util.h" |
31 #include "base/strings/stringprintf.h" | 34 #include "base/strings/stringprintf.h" |
32 #include "base/trace_event/trace_event.h" | 35 #include "base/trace_event/trace_event.h" |
| 36 #include "build/build_config.h" |
33 #include "components/tracing/trace_config_file.h" | 37 #include "components/tracing/trace_config_file.h" |
34 #include "components/tracing/trace_to_console.h" | 38 #include "components/tracing/trace_to_console.h" |
35 #include "components/tracing/tracing_switches.h" | 39 #include "components/tracing/tracing_switches.h" |
36 #include "content/browser/browser_main.h" | 40 #include "content/browser/browser_main.h" |
37 #include "content/common/set_process_title.h" | 41 #include "content/common/set_process_title.h" |
38 #include "content/common/url_schemes.h" | 42 #include "content/common/url_schemes.h" |
39 #include "content/gpu/in_process_gpu_thread.h" | 43 #include "content/gpu/in_process_gpu_thread.h" |
40 #include "content/public/app/content_main.h" | 44 #include "content/public/app/content_main.h" |
41 #include "content/public/app/content_main_delegate.h" | 45 #include "content/public/app/content_main_delegate.h" |
42 #include "content/public/browser/content_browser_client.h" | 46 #include "content/public/browser/content_browser_client.h" |
(...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
850 | 854 |
851 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); | 855 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); |
852 }; | 856 }; |
853 | 857 |
854 // static | 858 // static |
855 ContentMainRunner* ContentMainRunner::Create() { | 859 ContentMainRunner* ContentMainRunner::Create() { |
856 return new ContentMainRunnerImpl(); | 860 return new ContentMainRunnerImpl(); |
857 } | 861 } |
858 | 862 |
859 } // namespace content | 863 } // namespace content |
OLD | NEW |