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/shell/app/shell_main_delegate.h" | 5 #include "content/shell/app/shell_main_delegate.h" |
6 | 6 |
7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/cpu.h" | 9 #include "base/cpu.h" |
10 #include "base/files/file.h" | 10 #include "base/files/file.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/path_service.h" | 14 #include "base/path_service.h" |
| 15 #include "base/trace_event/trace_log.h" |
15 #include "build/build_config.h" | 16 #include "build/build_config.h" |
16 #include "cc/base/switches.h" | 17 #include "cc/base/switches.h" |
17 #include "content/common/content_constants_internal.h" | 18 #include "content/common/content_constants_internal.h" |
18 #include "content/public/browser/browser_main_runner.h" | 19 #include "content/public/browser/browser_main_runner.h" |
19 #include "content/public/common/content_switches.h" | 20 #include "content/public/common/content_switches.h" |
20 #include "content/public/common/url_constants.h" | 21 #include "content/public/common/url_constants.h" |
21 #include "content/public/test/layouttest_support.h" | 22 #include "content/public/test/layouttest_support.h" |
22 #include "content/public/test/ppapi_test_utils.h" | 23 #include "content/public/test/ppapi_test_utils.h" |
23 #include "content/shell/app/blink_test_platform_support.h" | 24 #include "content/shell/app/blink_test_platform_support.h" |
24 #include "content/shell/app/shell_crash_reporter_client.h" | 25 #include "content/shell/app/shell_crash_reporter_client.h" |
25 #include "content/shell/browser/layout_test/layout_test_browser_main.h" | 26 #include "content/shell/browser/layout_test/layout_test_browser_main.h" |
26 #include "content/shell/browser/layout_test/layout_test_content_browser_client.h
" | 27 #include "content/shell/browser/layout_test/layout_test_content_browser_client.h
" |
27 #include "content/shell/browser/shell_browser_main.h" | 28 #include "content/shell/browser/shell_browser_main.h" |
28 #include "content/shell/browser/shell_content_browser_client.h" | 29 #include "content/shell/browser/shell_content_browser_client.h" |
29 #include "content/shell/common/layout_test/layout_test_content_client.h" | 30 #include "content/shell/common/layout_test/layout_test_content_client.h" |
30 #include "content/shell/common/layout_test/layout_test_switches.h" | 31 #include "content/shell/common/layout_test/layout_test_switches.h" |
31 #include "content/shell/common/shell_content_client.h" | 32 #include "content/shell/common/shell_content_client.h" |
32 #include "content/shell/common/shell_switches.h" | 33 #include "content/shell/common/shell_switches.h" |
33 #include "content/shell/renderer/layout_test/layout_test_content_renderer_client
.h" | 34 #include "content/shell/renderer/layout_test/layout_test_content_renderer_client
.h" |
34 #include "content/shell/renderer/shell_content_renderer_client.h" | 35 #include "content/shell/renderer/shell_content_renderer_client.h" |
35 #include "content/shell/utility/shell_content_utility_client.h" | 36 #include "content/shell/utility/shell_content_utility_client.h" |
36 #include "gpu/config/gpu_switches.h" | 37 #include "gpu/config/gpu_switches.h" |
| 38 #include "ipc/ipc_features.h" |
37 #include "media/base/media_switches.h" | 39 #include "media/base/media_switches.h" |
38 #include "media/base/mime_util.h" | 40 #include "media/base/mime_util.h" |
39 #include "net/cookies/cookie_monster.h" | 41 #include "net/cookies/cookie_monster.h" |
40 #include "ppapi/features/features.h" | 42 #include "ppapi/features/features.h" |
41 #include "ui/base/resource/resource_bundle.h" | 43 #include "ui/base/resource/resource_bundle.h" |
42 #include "ui/base/ui_base_paths.h" | 44 #include "ui/base/ui_base_paths.h" |
43 #include "ui/base/ui_base_switches.h" | 45 #include "ui/base/ui_base_switches.h" |
44 #include "ui/display/display_switches.h" | 46 #include "ui/display/display_switches.h" |
45 #include "ui/gl/gl_implementation.h" | 47 #include "ui/gl/gl_implementation.h" |
46 #include "ui/gl/gl_switches.h" | 48 #include "ui/gl/gl_switches.h" |
47 | 49 |
48 #include "ipc/ipc_message.h" // For IPC_MESSAGE_LOG_ENABLED. | 50 #if BUILDFLAG(IPC_MESSAGE_LOG_ENABLED) |
49 | |
50 #if defined(IPC_MESSAGE_LOG_ENABLED) | |
51 #define IPC_MESSAGE_MACROS_LOG_ENABLED | 51 #define IPC_MESSAGE_MACROS_LOG_ENABLED |
52 #include "content/public/common/content_ipc_logging.h" | 52 #include "content/public/common/content_ipc_logging.h" |
53 #define IPC_LOG_TABLE_ADD_ENTRY(msg_id, logger) \ | 53 #define IPC_LOG_TABLE_ADD_ENTRY(msg_id, logger) \ |
54 content::RegisterIPCLogger(msg_id, logger) | 54 content::RegisterIPCLogger(msg_id, logger) |
55 #include "content/shell/common/shell_messages.h" | 55 #include "content/shell/common/shell_messages.h" |
56 #endif | 56 #endif |
57 | 57 |
58 #if defined(OS_ANDROID) | 58 #if defined(OS_ANDROID) |
59 #include "base/android/apk_assets.h" | 59 #include "base/android/apk_assets.h" |
60 #include "base/posix/global_descriptors.h" | 60 #include "base/posix/global_descriptors.h" |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 | 369 |
370 return renderer_client_.get(); | 370 return renderer_client_.get(); |
371 } | 371 } |
372 | 372 |
373 ContentUtilityClient* ShellMainDelegate::CreateContentUtilityClient() { | 373 ContentUtilityClient* ShellMainDelegate::CreateContentUtilityClient() { |
374 utility_client_.reset(new ShellContentUtilityClient); | 374 utility_client_.reset(new ShellContentUtilityClient); |
375 return utility_client_.get(); | 375 return utility_client_.get(); |
376 } | 376 } |
377 | 377 |
378 } // namespace content | 378 } // namespace content |
OLD | NEW |