| 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 <iterator> | 9 #include <iterator> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 23 matching lines...) Expand all Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |