Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1299)

Side by Side Diff: ios/web/app/web_main_loop.mm

Issue 2855673002: Tweak client-side default scheduler configs to match latest server configs. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | testing/variations/fieldtrial_testing_config.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | testing/variations/fieldtrial_testing_config.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698