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

Side by Side Diff: chrome/browser/net/predictor.cc

Issue 2214693002: First step to remove SingleRequestHostResolver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: single Created 4 years, 4 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 | components/network_hints/browser/network_hints_message_filter.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 #include "chrome/browser/net/predictor.h" 5 #include "chrome/browser/net/predictor.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <iterator> 9 #include <iterator>
10 #include <set> 10 #include <set>
(...skipping 23 matching lines...) Expand all
34 #include "chrome/common/pref_names.h" 34 #include "chrome/common/pref_names.h"
35 #include "components/pref_registry/pref_registry_syncable.h" 35 #include "components/pref_registry/pref_registry_syncable.h"
36 #include "components/prefs/pref_service.h" 36 #include "components/prefs/pref_service.h"
37 #include "components/prefs/scoped_user_pref_update.h" 37 #include "components/prefs/scoped_user_pref_update.h"
38 #include "content/public/browser/browser_thread.h" 38 #include "content/public/browser/browser_thread.h"
39 #include "content/public/browser/resource_hints.h" 39 #include "content/public/browser/resource_hints.h"
40 #include "net/base/address_list.h" 40 #include "net/base/address_list.h"
41 #include "net/base/completion_callback.h" 41 #include "net/base/completion_callback.h"
42 #include "net/base/host_port_pair.h" 42 #include "net/base/host_port_pair.h"
43 #include "net/base/net_errors.h" 43 #include "net/base/net_errors.h"
44 #include "net/dns/host_resolver.h"
45 #include "net/dns/single_request_host_resolver.h"
46 #include "net/http/transport_security_state.h" 44 #include "net/http/transport_security_state.h"
47 #include "net/log/net_log.h" 45 #include "net/log/net_log.h"
48 #include "net/proxy/proxy_info.h" 46 #include "net/proxy/proxy_info.h"
49 #include "net/proxy/proxy_service.h" 47 #include "net/proxy/proxy_service.h"
50 #include "net/ssl/ssl_config_service.h" 48 #include "net/ssl/ssl_config_service.h"
51 #include "net/url_request/url_request_context.h" 49 #include "net/url_request/url_request_context.h"
52 #include "net/url_request/url_request_context_getter.h" 50 #include "net/url_request/url_request_context_getter.h"
53 51
54 using base::TimeDelta; 52 using base::TimeDelta;
55 using content::BrowserThread; 53 using content::BrowserThread;
(...skipping 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after
1202 } 1200 }
1203 1201
1204 void SimplePredictor::ShutdownOnUIThread() { 1202 void SimplePredictor::ShutdownOnUIThread() {
1205 SetShutdown(true); 1203 SetShutdown(true);
1206 } 1204 }
1207 1205
1208 bool SimplePredictor::CanPrefetchAndPrerender() const { return true; } 1206 bool SimplePredictor::CanPrefetchAndPrerender() const { return true; }
1209 bool SimplePredictor::CanPreresolveAndPreconnect() const { return true; } 1207 bool SimplePredictor::CanPreresolveAndPreconnect() const { return true; }
1210 1208
1211 } // namespace chrome_browser_net 1209 } // namespace chrome_browser_net
OLDNEW
« no previous file with comments | « no previous file | components/network_hints/browser/network_hints_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698