| 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/chrome/browser/web/chrome_web_client.h" | 5 #include "ios/chrome/browser/web/chrome_web_client.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
| 9 #include "base/ios/ios_util.h" | 9 #include "base/ios/ios_util.h" |
| 10 #include "base/mac/bundle_locations.h" | 10 #include "base/mac/bundle_locations.h" |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 web::WebState* web_state, | 164 web::WebState* web_state, |
| 165 int cert_error, | 165 int cert_error, |
| 166 const net::SSLInfo& info, | 166 const net::SSLInfo& info, |
| 167 const GURL& request_url, | 167 const GURL& request_url, |
| 168 bool overridable, | 168 bool overridable, |
| 169 const base::Callback<void(bool)>& callback) { | 169 const base::Callback<void(bool)>& callback) { |
| 170 IOSSSLErrorHandler::HandleSSLError(web_state, cert_error, info, request_url, | 170 IOSSSLErrorHandler::HandleSSLError(web_state, cert_error, info, request_url, |
| 171 overridable, callback); | 171 overridable, callback); |
| 172 } | 172 } |
| 173 | 173 |
| 174 void ChromeWebClient::GetTaskSchedulerInitializationParams( | 174 std::unique_ptr<base::TaskScheduler::InitParams> |
| 175 std::vector<base::SchedulerWorkerPoolParams>* params_vector, | 175 ChromeWebClient::GetTaskSchedulerInitParams() { |
| 176 base::TaskScheduler::WorkerPoolIndexForTraitsCallback* | 176 return task_scheduler_util::GetBrowserTaskSchedulerInitParamsFromVariations(); |
| 177 index_to_traits_callback) { | |
| 178 DCHECK(params_vector); | |
| 179 DCHECK(index_to_traits_callback); | |
| 180 // If this call fails, web will fall back to the default params. | |
| 181 *params_vector = | |
| 182 task_scheduler_util::GetBrowserWorkerPoolParamsFromVariations(); | |
| 183 *index_to_traits_callback = | |
| 184 base::Bind(&task_scheduler_util::BrowserWorkerPoolIndexForTraits); | |
| 185 } | 177 } |
| 186 | 178 |
| 187 void ChromeWebClient::PerformExperimentalTaskSchedulerRedirections() { | 179 void ChromeWebClient::PerformExperimentalTaskSchedulerRedirections() { |
| 188 task_scheduler_util::MaybePerformBrowserTaskSchedulerRedirection(); | 180 task_scheduler_util::MaybePerformBrowserTaskSchedulerRedirection(); |
| 189 } | 181 } |
| OLD | NEW |