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

Side by Side Diff: chrome/browser/profiles/profile_impl_io_data.cc

Issue 2546533003: Respect QuicAllowed policy for new streams (Closed)
Patch Set: Introduced IOThread::UpdateNetworkSessionParams Created 3 years, 12 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 (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 "chrome/browser/profiles/profile_impl_io_data.h" 5 #include "chrome/browser/profiles/profile_impl_io_data.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 363
364 BrowserThread::PostTask( 364 BrowserThread::PostTask(
365 BrowserThread::IO, FROM_HERE, 365 BrowserThread::IO, FROM_HERE,
366 base::Bind( 366 base::Bind(
367 &ProfileImplIOData::ClearNetworkingHistorySinceOnIOThread, 367 &ProfileImplIOData::ClearNetworkingHistorySinceOnIOThread,
368 base::Unretained(io_data_), 368 base::Unretained(io_data_),
369 time, 369 time,
370 completion)); 370 completion));
371 } 371 }
372 372
373 void ProfileImplIOData::Handle::UpdateNetParams(
374 NetPrefObserver::NetParamsChange net_params_change) {
375 DCHECK_CURRENTLY_ON(BrowserThread::UI);
376
377 BrowserThread::PostTask(
378 BrowserThread::IO, FROM_HERE,
379 base::Bind(&ProfileIOData::UpdateNetParamsOnIOThread,
380 base::Unretained(io_data_), net_params_change));
381 }
382
373 void ProfileImplIOData::Handle::LazyInitialize() const { 383 void ProfileImplIOData::Handle::LazyInitialize() const {
374 DCHECK_CURRENTLY_ON(BrowserThread::UI); 384 DCHECK_CURRENTLY_ON(BrowserThread::UI);
375 if (initialized_) 385 if (initialized_)
376 return; 386 return;
377 387
378 // Set initialized_ to true at the beginning in case any of the objects 388 // Set initialized_ to true at the beginning in case any of the objects
379 // below try to get the ResourceContext pointer. 389 // below try to get the ResourceContext pointer.
380 initialized_ = true; 390 initialized_ = true;
381 PrefService* pref_service = profile_->GetPrefs(); 391 PrefService* pref_service = profile_->GetPrefs();
382 io_data_->session_startup_pref()->Init( 392 io_data_->session_startup_pref()->Init(
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 const base::Closure& completion) { 825 const base::Closure& completion) {
816 DCHECK_CURRENTLY_ON(BrowserThread::IO); 826 DCHECK_CURRENTLY_ON(BrowserThread::IO);
817 DCHECK(initialized()); 827 DCHECK(initialized());
818 828
819 DCHECK(transport_security_state()); 829 DCHECK(transport_security_state());
820 // Completes synchronously. 830 // Completes synchronously.
821 transport_security_state()->DeleteAllDynamicDataSince(time); 831 transport_security_state()->DeleteAllDynamicDataSince(time);
822 DCHECK(http_server_properties_manager_); 832 DCHECK(http_server_properties_manager_);
823 http_server_properties_manager_->Clear(completion); 833 http_server_properties_manager_->Clear(completion);
824 } 834 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698