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

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

Issue 2857093002: Expose changes in the network quality to the renderers (Closed)
Patch Set: isherman comments Created 3 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 14 matching lines...) Expand all
25 #include "chrome/browser/net/chrome_network_delegate.h" 25 #include "chrome/browser/net/chrome_network_delegate.h"
26 #include "chrome/common/features.h" 26 #include "chrome/common/features.h"
27 #include "components/metrics/data_use_tracker.h" 27 #include "components/metrics/data_use_tracker.h"
28 #include "components/prefs/pref_member.h" 28 #include "components/prefs/pref_member.h"
29 #include "components/ssl_config/ssl_config_service_manager.h" 29 #include "components/ssl_config/ssl_config_service_manager.h"
30 #include "content/public/browser/browser_thread.h" 30 #include "content/public/browser/browser_thread.h"
31 #include "content/public/browser/browser_thread_delegate.h" 31 #include "content/public/browser/browser_thread_delegate.h"
32 #include "extensions/features/features.h" 32 #include "extensions/features/features.h"
33 #include "net/base/network_change_notifier.h" 33 #include "net/base/network_change_notifier.h"
34 #include "net/http/http_network_session.h" 34 #include "net/http/http_network_session.h"
35 #include "net/nqe/network_quality_estimator.h"
35 36
36 class PrefProxyConfigTracker; 37 class PrefProxyConfigTracker;
37 class PrefService; 38 class PrefService;
38 class PrefRegistrySimple; 39 class PrefRegistrySimple;
39 class SystemURLRequestContextGetter; 40 class SystemURLRequestContextGetter;
40 41
41 #if defined(OS_ANDROID) 42 #if defined(OS_ANDROID)
42 namespace chrome { 43 namespace chrome {
43 namespace android { 44 namespace android {
44 class ExternalDataUseObserver; 45 class ExternalDataUseObserver;
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 // |system_cookie_store| and |system_channel_id_service| are shared 185 // |system_cookie_store| and |system_channel_id_service| are shared
185 // between |proxy_script_fetcher_context| and |system_request_context|. 186 // between |proxy_script_fetcher_context| and |system_request_context|.
186 std::unique_ptr<net::CookieStore> system_cookie_store; 187 std::unique_ptr<net::CookieStore> system_cookie_store;
187 #if BUILDFLAG(ENABLE_EXTENSIONS) 188 #if BUILDFLAG(ENABLE_EXTENSIONS)
188 scoped_refptr<extensions::EventRouterForwarder> 189 scoped_refptr<extensions::EventRouterForwarder>
189 extension_event_router_forwarder; 190 extension_event_router_forwarder;
190 #endif 191 #endif
191 std::unique_ptr<net::HostMappingRules> host_mapping_rules; 192 std::unique_ptr<net::HostMappingRules> host_mapping_rules;
192 std::unique_ptr<net::HttpUserAgentSettings> http_user_agent_settings; 193 std::unique_ptr<net::HttpUserAgentSettings> http_user_agent_settings;
193 std::unique_ptr<net::NetworkQualityEstimator> network_quality_estimator; 194 std::unique_ptr<net::NetworkQualityEstimator> network_quality_estimator;
195 std::unique_ptr<
196 net::NetworkQualityEstimator::RTTAndThroughputEstimatesObserver>
197 network_quality_observer;
194 198
195 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a 199 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a
196 // main frame load fails with a DNS error in order to provide more useful 200 // main frame load fails with a DNS error in order to provide more useful
197 // information to the renderer so it can show a more specific error page. 201 // information to the renderer so it can show a more specific error page.
198 std::unique_ptr<chrome_browser_net::DnsProbeService> dns_probe_service; 202 std::unique_ptr<chrome_browser_net::DnsProbeService> dns_probe_service;
199 203
200 // Enables Brotli Content-Encoding support 204 // Enables Brotli Content-Encoding support
201 bool enable_brotli; 205 bool enable_brotli;
202 }; 206 };
203 207
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 bool http_09_on_non_default_ports_enabled_; 408 bool http_09_on_non_default_ports_enabled_;
405 409
406 const base::TimeTicks creation_time_; 410 const base::TimeTicks creation_time_;
407 411
408 base::WeakPtrFactory<IOThread> weak_factory_; 412 base::WeakPtrFactory<IOThread> weak_factory_;
409 413
410 DISALLOW_COPY_AND_ASSIGN(IOThread); 414 DISALLOW_COPY_AND_ASSIGN(IOThread);
411 }; 415 };
412 416
413 #endif // CHROME_BROWSER_IO_THREAD_H_ 417 #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