OLD | NEW |
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 <set> | 9 #include <set> |
10 #include <sstream> | 10 #include <sstream> |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "chrome/browser/net/preconnect.h" | 26 #include "chrome/browser/net/preconnect.h" |
27 #include "chrome/browser/prefs/scoped_user_pref_update.h" | 27 #include "chrome/browser/prefs/scoped_user_pref_update.h" |
28 #include "chrome/browser/prefs/session_startup_pref.h" | 28 #include "chrome/browser/prefs/session_startup_pref.h" |
29 #include "chrome/common/chrome_switches.h" | 29 #include "chrome/common/chrome_switches.h" |
30 #include "chrome/common/pref_names.h" | 30 #include "chrome/common/pref_names.h" |
31 #include "components/user_prefs/pref_registry_syncable.h" | 31 #include "components/user_prefs/pref_registry_syncable.h" |
32 #include "content/public/browser/browser_thread.h" | 32 #include "content/public/browser/browser_thread.h" |
33 #include "net/base/address_list.h" | 33 #include "net/base/address_list.h" |
34 #include "net/base/completion_callback.h" | 34 #include "net/base/completion_callback.h" |
35 #include "net/base/host_port_pair.h" | 35 #include "net/base/host_port_pair.h" |
36 #include "net/base/host_resolver.h" | |
37 #include "net/base/net_errors.h" | 36 #include "net/base/net_errors.h" |
38 #include "net/base/net_log.h" | 37 #include "net/base/net_log.h" |
39 #include "net/base/single_request_host_resolver.h" | 38 #include "net/dns/host_resolver.h" |
| 39 #include "net/dns/single_request_host_resolver.h" |
40 #include "net/url_request/url_request_context_getter.h" | 40 #include "net/url_request/url_request_context_getter.h" |
41 | 41 |
42 using base::TimeDelta; | 42 using base::TimeDelta; |
43 using content::BrowserThread; | 43 using content::BrowserThread; |
44 | 44 |
45 namespace chrome_browser_net { | 45 namespace chrome_browser_net { |
46 | 46 |
47 // static | 47 // static |
48 const int Predictor::kPredictorReferrerVersion = 2; | 48 const int Predictor::kPredictorReferrerVersion = 2; |
49 const double Predictor::kPreconnectWorthyExpectedValue = 0.8; | 49 const double Predictor::kPreconnectWorthyExpectedValue = 0.8; |
(...skipping 1136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1186 IOThread* io_thread, | 1186 IOThread* io_thread, |
1187 net::URLRequestContextGetter* getter) { | 1187 net::URLRequestContextGetter* getter) { |
1188 // Empty function for unittests. | 1188 // Empty function for unittests. |
1189 } | 1189 } |
1190 | 1190 |
1191 void SimplePredictor::ShutdownOnUIThread(PrefService* user_prefs) { | 1191 void SimplePredictor::ShutdownOnUIThread(PrefService* user_prefs) { |
1192 SetShutdown(true); | 1192 SetShutdown(true); |
1193 } | 1193 } |
1194 | 1194 |
1195 } // namespace chrome_browser_net | 1195 } // namespace chrome_browser_net |
OLD | NEW |