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