| 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 "base/base_switches.h" | 5 #include "base/base_switches.h" |
| 6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
| 7 #include "base/debug/debugger.h" | 7 #include "base/debug/debugger.h" |
| 8 #include "base/debug/stack_trace.h" | 8 #include "base/debug/stack_trace.h" |
| 9 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 base::TimeTicks begin_process_message_; | 89 base::TimeTicks begin_process_message_; |
| 90 base::HistogramBase* const process_times_; | 90 base::HistogramBase* const process_times_; |
| 91 DISALLOW_COPY_AND_ASSIGN(RendererMessageLoopObserver); | 91 DISALLOW_COPY_AND_ASSIGN(RendererMessageLoopObserver); |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 } // namespace | 94 } // namespace |
| 95 | 95 |
| 96 // mainline routine for running as the Renderer process | 96 // mainline routine for running as the Renderer process |
| 97 int RendererMain(const MainFunctionParams& parameters) { | 97 int RendererMain(const MainFunctionParams& parameters) { |
| 98 TRACE_EVENT_BEGIN_ETW("RendererMain", 0, ""); | 98 TRACE_EVENT_BEGIN_ETW("RendererMain", 0, ""); |
| 99 base::debug::TraceLog::GetInstance()->SetProcessName("Renderer"); | 99 base::trace_event::TraceLog::GetInstance()->SetProcessName("Renderer"); |
| 100 base::debug::TraceLog::GetInstance()->SetProcessSortIndex( | 100 base::trace_event::TraceLog::GetInstance()->SetProcessSortIndex( |
| 101 kTraceEventRendererProcessSortIndex); | 101 kTraceEventRendererProcessSortIndex); |
| 102 | 102 |
| 103 const base::CommandLine& parsed_command_line = parameters.command_line; | 103 const base::CommandLine& parsed_command_line = parameters.command_line; |
| 104 | 104 |
| 105 #if defined(OS_MACOSX) | 105 #if defined(OS_MACOSX) |
| 106 base::mac::ScopedNSAutoreleasePool* pool = parameters.autorelease_pool; | 106 base::mac::ScopedNSAutoreleasePool* pool = parameters.autorelease_pool; |
| 107 #endif // OS_MACOSX | 107 #endif // OS_MACOSX |
| 108 | 108 |
| 109 #if defined(OS_CHROMEOS) | 109 #if defined(OS_CHROMEOS) |
| 110 // As Zygote process starts up earlier than browser process gets its own | 110 // As Zygote process starts up earlier than browser process gets its own |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 base::MessageLoop::current()->Run(); | 228 base::MessageLoop::current()->Run(); |
| 229 TRACE_EVENT_END_ETW("RendererMain.START_MSG_LOOP", 0, 0); | 229 TRACE_EVENT_END_ETW("RendererMain.START_MSG_LOOP", 0, 0); |
| 230 } | 230 } |
| 231 } | 231 } |
| 232 platform.PlatformUninitialize(); | 232 platform.PlatformUninitialize(); |
| 233 TRACE_EVENT_END_ETW("RendererMain", 0, ""); | 233 TRACE_EVENT_END_ETW("RendererMain", 0, ""); |
| 234 return 0; | 234 return 0; |
| 235 } | 235 } |
| 236 | 236 |
| 237 } // namespace content | 237 } // namespace content |
| OLD | NEW |