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 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 #include "content/browser/plugin_service_impl.h" | 169 #include "content/browser/plugin_service_impl.h" |
170 #endif | 170 #endif |
171 | 171 |
172 #if defined(USE_X11) | 172 #if defined(USE_X11) |
173 #include "ui/base/x/x11_util_internal.h" | 173 #include "ui/base/x/x11_util_internal.h" |
174 #include "ui/gfx/x/x11_connection.h" | 174 #include "ui/gfx/x/x11_connection.h" |
175 #include "ui/gfx/x/x11_switches.h" | 175 #include "ui/gfx/x/x11_switches.h" |
176 #include "ui/gfx/x/x11_types.h" | 176 #include "ui/gfx/x/x11_types.h" |
177 #endif | 177 #endif |
178 | 178 |
179 #if defined(USE_NSS_CERTS) || !defined(USE_OPENSSL) | 179 #if defined(USE_NSS_CERTS) |
180 #include "crypto/nss_util.h" | 180 #include "crypto/nss_util.h" |
181 #endif | 181 #endif |
182 | 182 |
183 #if defined(MOJO_SHELL_CLIENT) | 183 #if defined(MOJO_SHELL_CLIENT) |
184 #include "services/shell/public/cpp/connector.h" | 184 #include "services/shell/public/cpp/connector.h" |
185 #include "ui/views/mus/window_manager_connection.h" | 185 #include "ui/views/mus/window_manager_connection.h" |
186 #endif | 186 #endif |
187 | 187 |
188 // One of the linux specific headers defines this as a macro. | 188 // One of the linux specific headers defines this as a macro. |
189 #ifdef DestroyAll | 189 #ifdef DestroyAll |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 // Low soft limits combined with liberal use of file descriptors means power | 488 // Low soft limits combined with liberal use of file descriptors means power |
489 // users can easily hit this limit with many open tabs. Bump up the limit to | 489 // users can easily hit this limit with many open tabs. Bump up the limit to |
490 // an arbitrarily high number. See https://crbug.com/539567 | 490 // an arbitrarily high number. See https://crbug.com/539567 |
491 base::SetFdLimit(8192); | 491 base::SetFdLimit(8192); |
492 #endif // default(OS_MACOSX) | 492 #endif // default(OS_MACOSX) |
493 | 493 |
494 #if defined(OS_WIN) | 494 #if defined(OS_WIN) |
495 net::EnsureWinsockInit(); | 495 net::EnsureWinsockInit(); |
496 #endif | 496 #endif |
497 | 497 |
498 #if defined(USE_NSS_CERTS) || !defined(USE_OPENSSL) | 498 #if defined(USE_NSS_CERTS) |
499 // We want to be sure to init NSPR on the main thread. | 499 // We want to be sure to init NSPR on the main thread. |
500 crypto::EnsureNSPRInit(); | 500 crypto::EnsureNSPRInit(); |
501 #endif | 501 #endif |
502 | 502 |
503 if (parsed_command_line_.HasSwitch(switches::kRendererProcessLimit)) { | 503 if (parsed_command_line_.HasSwitch(switches::kRendererProcessLimit)) { |
504 std::string limit_string = parsed_command_line_.GetSwitchValueASCII( | 504 std::string limit_string = parsed_command_line_.GetSwitchValueASCII( |
505 switches::kRendererProcessLimit); | 505 switches::kRendererProcessLimit); |
506 size_t process_limit; | 506 size_t process_limit; |
507 if (base::StringToSizeT(limit_string, &process_limit)) { | 507 if (base::StringToSizeT(limit_string, &process_limit)) { |
508 RenderProcessHost::SetMaxRendererProcessCount(process_limit); | 508 RenderProcessHost::SetMaxRendererProcessCount(process_limit); |
(...skipping 941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1450 DCHECK(is_tracing_startup_for_duration_); | 1450 DCHECK(is_tracing_startup_for_duration_); |
1451 | 1451 |
1452 is_tracing_startup_for_duration_ = false; | 1452 is_tracing_startup_for_duration_ = false; |
1453 TracingController::GetInstance()->StopTracing( | 1453 TracingController::GetInstance()->StopTracing( |
1454 TracingController::CreateFileSink( | 1454 TracingController::CreateFileSink( |
1455 startup_trace_file_, | 1455 startup_trace_file_, |
1456 base::Bind(OnStoppedStartupTracing, startup_trace_file_))); | 1456 base::Bind(OnStoppedStartupTracing, startup_trace_file_))); |
1457 } | 1457 } |
1458 | 1458 |
1459 } // namespace content | 1459 } // namespace content |
OLD | NEW |