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

Side by Side Diff: chrome/browser/profiles/off_the_record_profile_impl.h

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 #ifndef CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ 5 #ifndef CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_
6 #define CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ 6 #define CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "chrome/browser/net/net_pref_observer.h"
12 #include "chrome/browser/profiles/off_the_record_profile_io_data.h" 13 #include "chrome/browser/profiles/off_the_record_profile_io_data.h"
13 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/browser/ui/browser_list.h" 15 #include "chrome/browser/ui/browser_list.h"
15 #include "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h" 16 #include "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h"
16 #include "components/domain_reliability/clear_mode.h" 17 #include "components/domain_reliability/clear_mode.h"
17 #include "content/public/browser/content_browser_client.h" 18 #include "content/public/browser/content_browser_client.h"
18 #include "content/public/browser/host_zoom_map.h" 19 #include "content/public/browser/host_zoom_map.h"
19 20
20 using base::Time; 21 using base::Time;
21 using base::TimeDelta; 22 using base::TimeDelta;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 #if defined(OS_ANDROID) 116 #if defined(OS_ANDROID)
116 void UseSystemProxy(); 117 void UseSystemProxy();
117 #endif // defined(OS_ANDROID) 118 #endif // defined(OS_ANDROID)
118 119
119 PrefProxyConfigTracker* CreateProxyConfigTracker(); 120 PrefProxyConfigTracker* CreateProxyConfigTracker();
120 // Callback function for tracking parent's zoom level changes. 121 // Callback function for tracking parent's zoom level changes.
121 void OnParentZoomLevelChanged( 122 void OnParentZoomLevelChanged(
122 const content::HostZoomMap::ZoomLevelChange& change); 123 const content::HostZoomMap::ZoomLevelChange& change);
123 void UpdateDefaultZoomLevel(); 124 void UpdateDefaultZoomLevel();
124 125
126 // Called on UI thread thread when net parameters change (e.g. due to policy).
127 void UpdateNetParams(NetPrefObserver::NetParamsChange net_params_change);
128
125 // The real underlying profile. 129 // The real underlying profile.
126 Profile* profile_; 130 Profile* profile_;
127 131
128 // Weak pointer owned by |profile_|. 132 // Weak pointer owned by |profile_|.
129 sync_preferences::PrefServiceSyncable* prefs_; 133 sync_preferences::PrefServiceSyncable* prefs_;
130 134
135 // Observers prefs_ for net parameter changes
Bence 2016/12/26 18:47:56 s/Observers/Observes/ Append period at end of sent
pmarko 2017/01/02 10:33:55 Done.
136 std::unique_ptr<NetPrefObserver> net_pref_observer_;
137
131 std::unique_ptr<content::HostZoomMap::Subscription> track_zoom_subscription_; 138 std::unique_ptr<content::HostZoomMap::Subscription> track_zoom_subscription_;
132 std::unique_ptr<ChromeZoomLevelPrefs::DefaultZoomLevelSubscription> 139 std::unique_ptr<ChromeZoomLevelPrefs::DefaultZoomLevelSubscription>
133 parent_default_zoom_level_subscription_; 140 parent_default_zoom_level_subscription_;
134 std::unique_ptr<OffTheRecordProfileIOData::Handle> io_data_; 141 std::unique_ptr<OffTheRecordProfileIOData::Handle> io_data_;
135 142
136 // Time we were started. 143 // Time we were started.
137 Time start_time_; 144 Time start_time_;
138 145
139 base::FilePath last_selected_directory_; 146 base::FilePath last_selected_directory_;
140 147
141 std::unique_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; 148 std::unique_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_;
142 149
143 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); 150 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl);
144 }; 151 };
145 152
146 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ 153 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698