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/browser/browser_main_loop.h" | 5 #include "content/browser/browser_main_loop.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 #endif | 169 #endif |
170 | 170 |
171 #if defined(USE_NSS_CERTS) || !defined(USE_OPENSSL) | 171 #if defined(USE_NSS_CERTS) || !defined(USE_OPENSSL) |
172 #include "crypto/nss_util.h" | 172 #include "crypto/nss_util.h" |
173 #endif | 173 #endif |
174 | 174 |
175 #if defined(MOJO_SHELL_CLIENT) | 175 #if defined(MOJO_SHELL_CLIENT) |
176 #include "components/mus/public/interfaces/window_manager.mojom.h" | 176 #include "components/mus/public/interfaces/window_manager.mojom.h" |
177 #include "content/common/mojo/mojo_shell_connection_impl.h" | 177 #include "content/common/mojo/mojo_shell_connection_impl.h" |
178 #include "mojo/converters/network/network_type_converters.h" | 178 #include "mojo/converters/network/network_type_converters.h" |
| 179 #include "mojo/edk/embedder/embedder.h" |
179 #include "mojo/shell/public/cpp/application_impl.h" | 180 #include "mojo/shell/public/cpp/application_impl.h" |
180 #include "third_party/mojo/src/mojo/edk/embedder/embedder.h" | |
181 #include "ui/views/mus/window_manager_connection.h" | 181 #include "ui/views/mus/window_manager_connection.h" |
182 #endif | 182 #endif |
183 | 183 |
184 // One of the linux specific headers defines this as a macro. | 184 // One of the linux specific headers defines this as a macro. |
185 #ifdef DestroyAll | 185 #ifdef DestroyAll |
186 #undef DestroyAll | 186 #undef DestroyAll |
187 #endif | 187 #endif |
188 | 188 |
189 namespace content { | 189 namespace content { |
190 namespace { | 190 namespace { |
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
903 | 903 |
904 TRACE_EVENT_END0("startup", "BrowserMainLoop::CreateThreads:start"); | 904 TRACE_EVENT_END0("startup", "BrowserMainLoop::CreateThreads:start"); |
905 } | 905 } |
906 created_threads_ = true; | 906 created_threads_ = true; |
907 return result_code_; | 907 return result_code_; |
908 } | 908 } |
909 | 909 |
910 int BrowserMainLoop::PreMainMessageLoopRun() { | 910 int BrowserMainLoop::PreMainMessageLoopRun() { |
911 #if defined(MOJO_SHELL_CLIENT) | 911 #if defined(MOJO_SHELL_CLIENT) |
912 if (IsRunningInMojoShell()) { | 912 if (IsRunningInMojoShell()) { |
913 mojo::embedder::PreInitializeChildProcess(); | 913 mojo::edk::PreInitializeChildProcess(); |
914 MojoShellConnectionImpl::Create(); | 914 MojoShellConnectionImpl::Create(); |
915 MojoShellConnectionImpl::Get()->BindToCommandLinePlatformChannel(); | 915 MojoShellConnectionImpl::Get()->BindToCommandLinePlatformChannel(); |
916 #if defined(USE_AURA) | 916 #if defined(USE_AURA) |
917 views::WindowManagerConnection::Create( | 917 views::WindowManagerConnection::Create( |
918 MojoShellConnection::Get()->GetApplication()); | 918 MojoShellConnection::Get()->GetApplication()); |
919 #endif | 919 #endif |
920 } | 920 } |
921 #endif | 921 #endif |
922 | 922 |
923 if (parts_) { | 923 if (parts_) { |
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1456 DCHECK(is_tracing_startup_for_duration_); | 1456 DCHECK(is_tracing_startup_for_duration_); |
1457 | 1457 |
1458 is_tracing_startup_for_duration_ = false; | 1458 is_tracing_startup_for_duration_ = false; |
1459 TracingController::GetInstance()->StopTracing( | 1459 TracingController::GetInstance()->StopTracing( |
1460 TracingController::CreateFileSink( | 1460 TracingController::CreateFileSink( |
1461 startup_trace_file_, | 1461 startup_trace_file_, |
1462 base::Bind(OnStoppedStartupTracing, startup_trace_file_))); | 1462 base::Bind(OnStoppedStartupTracing, startup_trace_file_))); |
1463 } | 1463 } |
1464 | 1464 |
1465 } // namespace content | 1465 } // namespace content |
OLD | NEW |