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

Side by Side Diff: chrome/browser/io_thread.h

Issue 1922403002: Move bool enable_brotli from HttpNetworkSession::Params (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unittest fix 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
« no previous file with comments | « no previous file | chrome/browser/io_thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_IO_THREAD_H_ 5 #ifndef CHROME_BROWSER_IO_THREAD_H_
6 #define CHROME_BROWSER_IO_THREAD_H_ 6 #define CHROME_BROWSER_IO_THREAD_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 extension_event_router_forwarder; 176 extension_event_router_forwarder;
177 #endif 177 #endif
178 std::unique_ptr<net::HostMappingRules> host_mapping_rules; 178 std::unique_ptr<net::HostMappingRules> host_mapping_rules;
179 std::unique_ptr<net::HttpUserAgentSettings> http_user_agent_settings; 179 std::unique_ptr<net::HttpUserAgentSettings> http_user_agent_settings;
180 std::unique_ptr<net::NetworkQualityEstimator> network_quality_estimator; 180 std::unique_ptr<net::NetworkQualityEstimator> network_quality_estimator;
181 181
182 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a 182 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a
183 // main frame load fails with a DNS error in order to provide more useful 183 // main frame load fails with a DNS error in order to provide more useful
184 // information to the renderer so it can show a more specific error page. 184 // information to the renderer so it can show a more specific error page.
185 std::unique_ptr<chrome_browser_net::DnsProbeService> dns_probe_service; 185 std::unique_ptr<chrome_browser_net::DnsProbeService> dns_probe_service;
186
187 // Enables Brotli Content-Encoding support
188 bool enable_brotli;
186 }; 189 };
187 190
188 // Helper class to configure HttpNetworkSession::Params and 191 // Helper class to configure HttpNetworkSession::Params and
189 // HttpServerProperties based on field trials, policy, and command line. 192 // HttpServerProperties based on field trials, policy, and command line.
190 class NetworkSessionConfigurator { 193 class NetworkSessionConfigurator {
191 public: 194 public:
192 // Configure |params| based on field trials and policy arguments. 195 // Configure |params| based on field trials and policy arguments.
193 static void ParseFieldTrials(bool is_spdy_allowed_by_policy, 196 static void ParseFieldTrials(bool is_spdy_allowed_by_policy,
194 bool is_quic_allowed_by_policy, 197 bool is_quic_allowed_by_policy,
195 net::HttpNetworkSession::Params* params); 198 net::HttpNetworkSession::Params* params);
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 // Callback for updating data use prefs which needs to be initialized on UI 576 // Callback for updating data use prefs which needs to be initialized on UI
574 // thread and passed to |ChromeNetworkDelegate|. 577 // thread and passed to |ChromeNetworkDelegate|.
575 metrics::UpdateUsagePrefCallbackType metrics_data_use_forwarder_; 578 metrics::UpdateUsagePrefCallbackType metrics_data_use_forwarder_;
576 579
577 base::WeakPtrFactory<IOThread> weak_factory_; 580 base::WeakPtrFactory<IOThread> weak_factory_;
578 581
579 DISALLOW_COPY_AND_ASSIGN(IOThread); 582 DISALLOW_COPY_AND_ASSIGN(IOThread);
580 }; 583 };
581 584
582 #endif // CHROME_BROWSER_IO_THREAD_H_ 585 #endif // CHROME_BROWSER_IO_THREAD_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/io_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698