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 25 matching lines...) Expand all Loading... |
36 #include "components/pref_registry/pref_registry_syncable.h" | 36 #include "components/pref_registry/pref_registry_syncable.h" |
37 #include "components/prefs/pref_service.h" | 37 #include "components/prefs/pref_service.h" |
38 #include "components/prefs/scoped_user_pref_update.h" | 38 #include "components/prefs/scoped_user_pref_update.h" |
39 #include "content/public/browser/browser_thread.h" | 39 #include "content/public/browser/browser_thread.h" |
40 #include "content/public/browser/resource_hints.h" | 40 #include "content/public/browser/resource_hints.h" |
41 #include "net/base/address_list.h" | 41 #include "net/base/address_list.h" |
42 #include "net/base/completion_callback.h" | 42 #include "net/base/completion_callback.h" |
43 #include "net/base/host_port_pair.h" | 43 #include "net/base/host_port_pair.h" |
44 #include "net/base/net_errors.h" | 44 #include "net/base/net_errors.h" |
45 #include "net/http/transport_security_state.h" | 45 #include "net/http/transport_security_state.h" |
46 #include "net/log/net_log.h" | 46 #include "net/log/net_log_with_source.h" |
47 #include "net/proxy/proxy_info.h" | 47 #include "net/proxy/proxy_info.h" |
48 #include "net/proxy/proxy_service.h" | 48 #include "net/proxy/proxy_service.h" |
49 #include "net/ssl/ssl_config_service.h" | 49 #include "net/ssl/ssl_config_service.h" |
50 #include "net/url_request/url_request_context.h" | 50 #include "net/url_request/url_request_context.h" |
51 #include "net/url_request/url_request_context_getter.h" | 51 #include "net/url_request/url_request_context_getter.h" |
52 | 52 |
53 using base::TimeDelta; | 53 using base::TimeDelta; |
54 using content::BrowserThread; | 54 using content::BrowserThread; |
55 | 55 |
56 namespace chrome_browser_net { | 56 namespace chrome_browser_net { |
(...skipping 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1196 } | 1196 } |
1197 | 1197 |
1198 void SimplePredictor::ShutdownOnUIThread() { | 1198 void SimplePredictor::ShutdownOnUIThread() { |
1199 SetShutdown(true); | 1199 SetShutdown(true); |
1200 } | 1200 } |
1201 | 1201 |
1202 bool SimplePredictor::CanPrefetchAndPrerender() const { return true; } | 1202 bool SimplePredictor::CanPrefetchAndPrerender() const { return true; } |
1203 bool SimplePredictor::CanPreresolveAndPreconnect() const { return true; } | 1203 bool SimplePredictor::CanPreresolveAndPreconnect() const { return true; } |
1204 | 1204 |
1205 } // namespace chrome_browser_net | 1205 } // namespace chrome_browser_net |
OLD | NEW |