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

Side by Side Diff: ios/chrome/browser/browser_state/chrome_browser_state_impl_io_data.mm

Issue 2894863002: Rename TaskRunner::RunsTasksOnCurrentThread() in //net (Closed)
Patch Set: fixed build error 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/browser_state/chrome_browser_state_impl_io_data.h" 5 #include "ios/chrome/browser/browser_state/chrome_browser_state_impl_io_data.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 : io_data_(new ChromeBrowserStateImplIOData), 51 : io_data_(new ChromeBrowserStateImplIOData),
52 browser_state_(browser_state), 52 browser_state_(browser_state),
53 initialized_(false) { 53 initialized_(false) {
54 DCHECK_CURRENTLY_ON(web::WebThread::UI); 54 DCHECK_CURRENTLY_ON(web::WebThread::UI);
55 DCHECK(browser_state); 55 DCHECK(browser_state);
56 } 56 }
57 57
58 ChromeBrowserStateImplIOData::Handle::~Handle() { 58 ChromeBrowserStateImplIOData::Handle::~Handle() {
59 DCHECK_CURRENTLY_ON(web::WebThread::UI); 59 DCHECK_CURRENTLY_ON(web::WebThread::UI);
60 if (io_data_->http_server_properties_manager_) 60 if (io_data_->http_server_properties_manager_)
61 io_data_->http_server_properties_manager_->ShutdownOnPrefThread(); 61 io_data_->http_server_properties_manager_->ShutdownOnPrefSequence();
62 62
63 io_data_->ShutdownOnUIThread(GetAllContextGetters()); 63 io_data_->ShutdownOnUIThread(GetAllContextGetters());
64 } 64 }
65 65
66 void ChromeBrowserStateImplIOData::Handle::Init( 66 void ChromeBrowserStateImplIOData::Handle::Init(
67 const base::FilePath& cookie_path, 67 const base::FilePath& cookie_path,
68 const base::FilePath& channel_id_path, 68 const base::FilePath& channel_id_path,
69 const base::FilePath& cache_path, 69 const base::FilePath& cache_path,
70 int cache_max_size, 70 int cache_max_size,
71 const base::FilePath& profile_path) { 71 const base::FilePath& profile_path) {
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 network_json_store_->ReadPrefsAsync(nullptr); 208 network_json_store_->ReadPrefsAsync(nullptr);
209 209
210 net::URLRequestContext* main_context = main_request_context(); 210 net::URLRequestContext* main_context = main_request_context();
211 211
212 IOSChromeIOThread* const io_thread = profile_params->io_thread; 212 IOSChromeIOThread* const io_thread = profile_params->io_thread;
213 IOSChromeIOThread::Globals* const io_thread_globals = io_thread->globals(); 213 IOSChromeIOThread::Globals* const io_thread_globals = io_thread->globals();
214 214
215 ApplyProfileParamsToContext(main_context); 215 ApplyProfileParamsToContext(main_context);
216 216
217 if (http_server_properties_manager_) 217 if (http_server_properties_manager_)
218 http_server_properties_manager_->InitializeOnNetworkThread(); 218 http_server_properties_manager_->InitializeOnNetworkSequence();
219 219
220 main_context->set_transport_security_state(transport_security_state()); 220 main_context->set_transport_security_state(transport_security_state());
221 221
222 main_context->set_net_log(io_thread->net_log()); 222 main_context->set_net_log(io_thread->net_log());
223 223
224 network_delegate_ = std::move(chrome_network_delegate); 224 network_delegate_ = std::move(chrome_network_delegate);
225 225
226 main_context->set_network_delegate(network_delegate_.get()); 226 main_context->set_network_delegate(network_delegate_.get());
227 227
228 main_context->set_http_server_properties(http_server_properties()); 228 main_context->set_http_server_properties(http_server_properties());
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 const base::Closure& completion) { 356 const base::Closure& completion) {
357 DCHECK_CURRENTLY_ON(web::WebThread::IO); 357 DCHECK_CURRENTLY_ON(web::WebThread::IO);
358 DCHECK(initialized()); 358 DCHECK(initialized());
359 359
360 DCHECK(transport_security_state()); 360 DCHECK(transport_security_state());
361 // Completes synchronously. 361 // Completes synchronously.
362 transport_security_state()->DeleteAllDynamicDataSince(time); 362 transport_security_state()->DeleteAllDynamicDataSince(time);
363 DCHECK(http_server_properties_manager_); 363 DCHECK(http_server_properties_manager_);
364 http_server_properties_manager_->Clear(completion); 364 http_server_properties_manager_->Clear(completion);
365 } 365 }
OLDNEW
« no previous file with comments | « components/cronet/android/cronet_url_request_context_adapter.cc ('k') | net/base/directory_lister.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698