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

Unified Diff: chrome/browser/profiles/profile_impl.h

Issue 2546533003: Respect QuicAllowed policy for new streams (Closed)
Patch Set: Introduced IOThread::UpdateNetworkSessionParams Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/profiles/profile_impl.h
diff --git a/chrome/browser/profiles/profile_impl.h b/chrome/browser/profiles/profile_impl.h
index fe82ff747a83c51ae4d766de95f40b9f4ebb8ba1..b62155e9d8e610d4c199fc9f59e3fbaa774a64ec 100644
--- a/chrome/browser/profiles/profile_impl.h
+++ b/chrome/browser/profiles/profile_impl.h
@@ -16,6 +16,7 @@
#include "base/memory/ref_counted.h"
#include "base/timer/timer.h"
#include "build/build_config.h"
+#include "chrome/browser/net/net_pref_observer.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_impl_io_data.h"
#include "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h"
@@ -188,6 +189,9 @@ class ProfileImpl : public Profile {
PrefProxyConfigTracker* CreateProxyConfigTracker();
+ // Called on UI thread thread when net parameters change (e.g. due to policy).
+ void UpdateNetParams(NetPrefObserver::NetParamsChange net_params_change);
+
std::unique_ptr<domain_reliability::DomainReliabilityMonitor>
CreateDomainReliabilityMonitor(PrefService* local_state);
@@ -217,8 +221,8 @@ class ProfileImpl : public Profile {
pref_validation_delegate_;
// Keep |prefs_| on top for destruction order because |extension_prefs_|,
- // |io_data_| and others store pointers to |prefs_| and shall be destructed
- // first.
+ // |net_pref_observer_|, |io_data_| and others store pointers to |prefs_| and
+ // shall be destructed first.
scoped_refptr<user_prefs::PrefRegistrySyncable> pref_registry_;
std::unique_ptr<sync_preferences::PrefServiceSyncable> prefs_;
std::unique_ptr<sync_preferences::PrefServiceSyncable> otr_prefs_;
@@ -227,6 +231,7 @@ class ProfileImpl : public Profile {
scoped_refptr<ExtensionSpecialStoragePolicy>
extension_special_storage_policy_;
#endif
+ std::unique_ptr<NetPrefObserver> net_pref_observer_;
std::unique_ptr<ssl_config::SSLConfigServiceManager>
ssl_config_service_manager_;

Powered by Google App Engine
This is Rietveld 408576698