| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ios/web/app/web_main_loop.h" | 5 #include "ios/web/app/web_main_loop.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 StandbyThreadPolicy::ONE, | 50 StandbyThreadPolicy::ONE, |
| 51 base::RecommendedMaxNumberOfThreadsInPool(2, 8, 0.1, 0), | 51 base::RecommendedMaxNumberOfThreadsInPool(2, 8, 0.1, 0), |
| 52 base::TimeDelta::FromSeconds(30)), | 52 base::TimeDelta::FromSeconds(30)), |
| 53 base::SchedulerWorkerPoolParams( | 53 base::SchedulerWorkerPoolParams( |
| 54 StandbyThreadPolicy::ONE, | 54 StandbyThreadPolicy::ONE, |
| 55 base::RecommendedMaxNumberOfThreadsInPool(3, 8, 0.3, 0), | 55 base::RecommendedMaxNumberOfThreadsInPool(3, 8, 0.3, 0), |
| 56 base::TimeDelta::FromSeconds(30)), | 56 base::TimeDelta::FromSeconds(30)), |
| 57 base::SchedulerWorkerPoolParams( | 57 base::SchedulerWorkerPoolParams( |
| 58 StandbyThreadPolicy::ONE, | 58 StandbyThreadPolicy::ONE, |
| 59 base::RecommendedMaxNumberOfThreadsInPool(3, 8, 0.3, 0), | 59 base::RecommendedMaxNumberOfThreadsInPool(3, 8, 0.3, 0), |
| 60 base::TimeDelta::FromSeconds(30))); | 60 base::TimeDelta::FromSeconds(60))); |
| 61 } | 61 } |
| 62 | 62 |
| 63 } // namespace | 63 } // namespace |
| 64 | 64 |
| 65 // The currently-running WebMainLoop. There can be one or zero. | 65 // The currently-running WebMainLoop. There can be one or zero. |
| 66 // TODO(rohitrao): Desktop uses this to implement | 66 // TODO(rohitrao): Desktop uses this to implement |
| 67 // ImmediateShutdownAndExitProcess. If we don't need that functionality, we can | 67 // ImmediateShutdownAndExitProcess. If we don't need that functionality, we can |
| 68 // remove this. | 68 // remove this. |
| 69 WebMainLoop* g_current_web_main_loop = nullptr; | 69 WebMainLoop* g_current_web_main_loop = nullptr; |
| 70 | 70 |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 main_thread_.reset( | 311 main_thread_.reset( |
| 312 new WebThreadImpl(WebThread::UI, base::MessageLoop::current())); | 312 new WebThreadImpl(WebThread::UI, base::MessageLoop::current())); |
| 313 } | 313 } |
| 314 | 314 |
| 315 int WebMainLoop::WebThreadsStarted() { | 315 int WebMainLoop::WebThreadsStarted() { |
| 316 cookie_notification_bridge_.reset(new CookieNotificationBridge); | 316 cookie_notification_bridge_.reset(new CookieNotificationBridge); |
| 317 return result_code_; | 317 return result_code_; |
| 318 } | 318 } |
| 319 | 319 |
| 320 } // namespace web | 320 } // namespace web |
| OLD | NEW |