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

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

Issue 1857383002: Refactor net predictor to use ResourceThrottles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 #include "chrome/browser/io_thread.h" 5 #include "chrome/browser/io_thread.h"
6 6
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/base64.h" 10 #include "base/base64.h"
(...skipping 17 matching lines...) Expand all
28 #include "base/threading/sequenced_worker_pool.h" 28 #include "base/threading/sequenced_worker_pool.h"
29 #include "base/threading/thread.h" 29 #include "base/threading/thread.h"
30 #include "base/threading/worker_pool.h" 30 #include "base/threading/worker_pool.h"
31 #include "base/time/time.h" 31 #include "base/time/time.h"
32 #include "base/trace_event/trace_event.h" 32 #include "base/trace_event/trace_event.h"
33 #include "build/build_config.h" 33 #include "build/build_config.h"
34 #include "chrome/browser/browser_process.h" 34 #include "chrome/browser/browser_process.h"
35 #include "chrome/browser/data_usage/tab_id_annotator.h" 35 #include "chrome/browser/data_usage/tab_id_annotator.h"
36 #include "chrome/browser/net/async_dns_field_trial.h" 36 #include "chrome/browser/net/async_dns_field_trial.h"
37 #include "chrome/browser/net/chrome_network_delegate.h" 37 #include "chrome/browser/net/chrome_network_delegate.h"
38 #include "chrome/browser/net/connect_interceptor.h"
39 #include "chrome/browser/net/dns_probe_service.h" 38 #include "chrome/browser/net/dns_probe_service.h"
40 #include "chrome/browser/net/proxy_service_factory.h" 39 #include "chrome/browser/net/proxy_service_factory.h"
41 #include "chrome/common/channel_info.h" 40 #include "chrome/common/channel_info.h"
42 #include "chrome/common/chrome_content_client.h" 41 #include "chrome/common/chrome_content_client.h"
43 #include "chrome/common/chrome_switches.h" 42 #include "chrome/common/chrome_switches.h"
44 #include "chrome/common/pref_names.h" 43 #include "chrome/common/pref_names.h"
45 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_pref s.h" 44 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_pref s.h"
46 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s.h" 45 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s.h"
47 #include "components/data_usage/core/data_use_aggregator.h" 46 #include "components/data_usage/core/data_use_aggregator.h"
48 #include "components/data_usage/core/data_use_amortizer.h" 47 #include "components/data_usage/core/data_use_amortizer.h"
(...skipping 1711 matching lines...) Expand 10 before | Expand all | Expand 10 after
1760 std::move(job_factory); 1759 std::move(job_factory);
1761 1760
1762 context->set_job_factory( 1761 context->set_job_factory(
1763 globals->proxy_script_fetcher_url_request_job_factory.get()); 1762 globals->proxy_script_fetcher_url_request_job_factory.get());
1764 1763
1765 // TODO(rtenneti): We should probably use HttpServerPropertiesManager for the 1764 // TODO(rtenneti): We should probably use HttpServerPropertiesManager for the
1766 // system URLRequestContext too. There's no reason this should be tied to a 1765 // system URLRequestContext too. There's no reason this should be tied to a
1767 // profile. 1766 // profile.
1768 return context; 1767 return context;
1769 } 1768 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/chrome_network_delegate.h » ('j') | chrome/browser/profiles/profile_io_data.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698