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

Side by Side Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h

Issue 1933653004: Reset the Lo-Fi main frame state when there is a new main frame request (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 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 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_SETTIN GS_H_ 5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_SETTIN GS_H_
6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_SETTIN GS_H_ 6 #define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_SETTIN GS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 FRIEND_TEST_ALL_PREFIXES(DataReductionProxySettingsTest, 250 FRIEND_TEST_ALL_PREFIXES(DataReductionProxySettingsTest,
251 TestSettingsEnabledStateHistograms); 251 TestSettingsEnabledStateHistograms);
252 252
253 // Override of DataReductionProxyService::Observer. 253 // Override of DataReductionProxyService::Observer.
254 void OnServiceInitialized() override; 254 void OnServiceInitialized() override;
255 255
256 // Registers the trial "SyntheticDataReductionProxySetting" with the group 256 // Registers the trial "SyntheticDataReductionProxySetting" with the group
257 // "Enabled" or "Disabled". Indicates whether the proxy is turned on or not. 257 // "Enabled" or "Disabled". Indicates whether the proxy is turned on or not.
258 void RegisterDataReductionProxyFieldTrial(); 258 void RegisterDataReductionProxyFieldTrial();
259 259
260 // Registers the trial "SyntheticDataReductionProxyLoFiSetting" with the group
261 // "Enabled" or "Disabled". Indicates whether Lo-Fi is turned on or not.
262 // The group won't be reported if it changes while compiling the report. It
263 // can be assumed that when no Lo-Fi group is reported, the user was in a
264 // mixed Lo-Fi state.
265 void RegisterLoFiFieldTrial();
266
267 void OnProxyEnabledPrefChange(); 260 void OnProxyEnabledPrefChange();
268 261
269 void ResetDataReductionStatistics(); 262 void ResetDataReductionStatistics();
270 263
271 // Update IO thread objects in response to UI thread changes. 264 // Update IO thread objects in response to UI thread changes.
272 void UpdateIOData(bool at_startup); 265 void UpdateIOData(bool at_startup);
273 266
274 // For tests. 267 // For tests.
275 void set_data_reduction_proxy_enabled_pref_name_for_test( 268 void set_data_reduction_proxy_enabled_pref_name_for_test(
276 const std::string& data_reduction_proxy_enabled_pref_name) { 269 const std::string& data_reduction_proxy_enabled_pref_name) {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 SyntheticFieldTrialRegistrationCallback register_synthetic_field_trial_; 319 SyntheticFieldTrialRegistrationCallback register_synthetic_field_trial_;
327 320
328 base::ThreadChecker thread_checker_; 321 base::ThreadChecker thread_checker_;
329 322
330 DISALLOW_COPY_AND_ASSIGN(DataReductionProxySettings); 323 DISALLOW_COPY_AND_ASSIGN(DataReductionProxySettings);
331 }; 324 };
332 325
333 } // namespace data_reduction_proxy 326 } // namespace data_reduction_proxy
334 327
335 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_SET TINGS_H_ 328 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_SET TINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698