Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(744)

Side by Side Diff: content/app/content_main_runner.cc

Issue 376573003: Pull necessary dependencies to be able to process mojo.gyp on iOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/all.gyp ('k') | content/content_app.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include "base/allocator/allocator_extension.h" 9 #include "base/allocator/allocator_extension.h"
10 #include "base/at_exit.h" 10 #include "base/at_exit.h"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/debug/debugger.h" 12 #include "base/debug/debugger.h"
13 #include "base/debug/trace_event.h" 13 #include "base/debug/trace_event.h"
14 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
15 #include "base/i18n/icu_util.h" 15 #include "base/i18n/icu_util.h"
16 #include "base/lazy_instance.h" 16 #include "base/lazy_instance.h"
17 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "base/memory/scoped_ptr.h" 18 #include "base/memory/scoped_ptr.h"
19 #include "base/memory/scoped_vector.h" 19 #include "base/memory/scoped_vector.h"
20 #include "base/metrics/stats_table.h" 20 #include "base/metrics/stats_table.h"
21 #include "base/path_service.h" 21 #include "base/path_service.h"
22 #include "base/process/launch.h" 22 #include "base/process/launch.h"
23 #include "base/process/memory.h" 23 #include "base/process/memory.h"
24 #include "base/process/process_handle.h" 24 #include "base/process/process_handle.h"
25 #include "base/profiler/alternate_timer.h" 25 #include "base/profiler/alternate_timer.h"
26 #include "base/strings/string_number_conversions.h" 26 #include "base/strings/string_number_conversions.h"
27 #include "base/strings/string_util.h" 27 #include "base/strings/string_util.h"
28 #include "base/strings/stringprintf.h" 28 #include "base/strings/stringprintf.h"
29 #include "content/app/mojo/mojo_init.h"
29 #include "content/browser/browser_main.h" 30 #include "content/browser/browser_main.h"
30 #include "content/common/set_process_title.h" 31 #include "content/common/set_process_title.h"
31 #include "content/common/url_schemes.h" 32 #include "content/common/url_schemes.h"
32 #include "content/gpu/in_process_gpu_thread.h" 33 #include "content/gpu/in_process_gpu_thread.h"
33 #include "content/public/app/content_main.h" 34 #include "content/public/app/content_main.h"
34 #include "content/public/app/content_main_delegate.h" 35 #include "content/public/app/content_main_delegate.h"
35 #include "content/public/app/startup_helper_win.h" 36 #include "content/public/app/startup_helper_win.h"
36 #include "content/public/browser/content_browser_client.h" 37 #include "content/public/browser/content_browser_client.h"
37 #include "content/public/common/content_client.h" 38 #include "content/public/common/content_client.h"
38 #include "content/public/common/content_constants.h" 39 #include "content/public/common/content_constants.h"
(...skipping 17 matching lines...) Expand all
56 57
57 #if defined(USE_TCMALLOC) 58 #if defined(USE_TCMALLOC)
58 #include "third_party/tcmalloc/chromium/src/gperftools/malloc_extension.h" 59 #include "third_party/tcmalloc/chromium/src/gperftools/malloc_extension.h"
59 #if defined(TYPE_PROFILING) 60 #if defined(TYPE_PROFILING)
60 #include "base/allocator/type_profiler.h" 61 #include "base/allocator/type_profiler.h"
61 #include "base/allocator/type_profiler_tcmalloc.h" 62 #include "base/allocator/type_profiler_tcmalloc.h"
62 #endif 63 #endif
63 #endif 64 #endif
64 65
65 #if !defined(OS_IOS) 66 #if !defined(OS_IOS)
66 #include "content/app/mojo/mojo_init.h"
67 #include "content/browser/gpu/gpu_process_host.h" 67 #include "content/browser/gpu/gpu_process_host.h"
68 #include "content/browser/renderer_host/render_process_host_impl.h" 68 #include "content/browser/renderer_host/render_process_host_impl.h"
69 #include "content/browser/utility_process_host_impl.h" 69 #include "content/browser/utility_process_host_impl.h"
70 #include "content/public/plugin/content_plugin_client.h" 70 #include "content/public/plugin/content_plugin_client.h"
71 #include "content/public/renderer/content_renderer_client.h" 71 #include "content/public/renderer/content_renderer_client.h"
72 #include "content/public/utility/content_utility_client.h" 72 #include "content/public/utility/content_utility_client.h"
73 #endif 73 #endif
74 74
75 #if defined(OS_WIN) 75 #if defined(OS_WIN)
76 #include <malloc.h> 76 #include <malloc.h>
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 if (delegate_ && delegate_->BasicStartupComplete(&exit_code)) 605 if (delegate_ && delegate_->BasicStartupComplete(&exit_code))
606 return exit_code; 606 return exit_code;
607 607
608 completed_basic_startup_ = true; 608 completed_basic_startup_ = true;
609 609
610 const base::CommandLine& command_line = 610 const base::CommandLine& command_line =
611 *base::CommandLine::ForCurrentProcess(); 611 *base::CommandLine::ForCurrentProcess();
612 std::string process_type = 612 std::string process_type =
613 command_line.GetSwitchValueASCII(switches::kProcessType); 613 command_line.GetSwitchValueASCII(switches::kProcessType);
614 614
615 #if !defined(OS_IOS)
616 // Initialize mojo here so that services can be registered. 615 // Initialize mojo here so that services can be registered.
617 InitializeMojo(); 616 InitializeMojo();
618 #endif
619 617
620 if (!GetContentClient()) 618 if (!GetContentClient())
621 SetContentClient(&empty_content_client_); 619 SetContentClient(&empty_content_client_);
622 ContentClientInitializer::Set(process_type, delegate_); 620 ContentClientInitializer::Set(process_type, delegate_);
623 621
624 #if defined(OS_WIN) 622 #if defined(OS_WIN)
625 // Route stdio to parent console (if any) or create one. 623 // Route stdio to parent console (if any) or create one.
626 if (command_line.HasSwitch(switches::kEnableLogging)) 624 if (command_line.HasSwitch(switches::kEnableLogging))
627 base::RouteStdioToConsole(); 625 base::RouteStdioToConsole();
628 #endif 626 #endif
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
823 821
824 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); 822 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl);
825 }; 823 };
826 824
827 // static 825 // static
828 ContentMainRunner* ContentMainRunner::Create() { 826 ContentMainRunner* ContentMainRunner::Create() {
829 return new ContentMainRunnerImpl(); 827 return new ContentMainRunnerImpl();
830 } 828 }
831 829
832 } // namespace content 830 } // namespace content
OLDNEW
« no previous file with comments | « build/all.gyp ('k') | content/content_app.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698