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> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/containers/mru_cache.h" | 14 #include "base/containers/mru_cache.h" |
15 #include "base/location.h" | 15 #include "base/location.h" |
16 #include "base/logging.h" | 16 #include "base/logging.h" |
17 #include "base/macros.h" | 17 #include "base/macros.h" |
18 #include "base/metrics/histogram.h" | 18 #include "base/metrics/histogram.h" |
19 #include "base/profiler/scoped_tracker.h" | |
20 #include "base/single_thread_task_runner.h" | 19 #include "base/single_thread_task_runner.h" |
21 #include "base/stl_util.h" | 20 #include "base/stl_util.h" |
22 #include "base/strings/string_split.h" | 21 #include "base/strings/string_split.h" |
23 #include "base/strings/string_util.h" | 22 #include "base/strings/string_util.h" |
24 #include "base/strings/stringprintf.h" | 23 #include "base/strings/stringprintf.h" |
25 #include "base/synchronization/waitable_event.h" | 24 #include "base/synchronization/waitable_event.h" |
26 #include "base/thread_task_runner_handle.h" | 25 #include "base/thread_task_runner_handle.h" |
27 #include "base/threading/thread_restrictions.h" | 26 #include "base/threading/thread_restrictions.h" |
28 #include "base/time/time.h" | 27 #include "base/time/time.h" |
29 #include "base/values.h" | 28 #include "base/values.h" |
(...skipping 1275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1305 } | 1304 } |
1306 | 1305 |
1307 void SimplePredictor::ShutdownOnUIThread() { | 1306 void SimplePredictor::ShutdownOnUIThread() { |
1308 SetShutdown(true); | 1307 SetShutdown(true); |
1309 } | 1308 } |
1310 | 1309 |
1311 bool SimplePredictor::CanPrefetchAndPrerender() const { return true; } | 1310 bool SimplePredictor::CanPrefetchAndPrerender() const { return true; } |
1312 bool SimplePredictor::CanPreresolveAndPreconnect() const { return true; } | 1311 bool SimplePredictor::CanPreresolveAndPreconnect() const { return true; } |
1313 | 1312 |
1314 } // namespace chrome_browser_net | 1313 } // namespace chrome_browser_net |
OLD | NEW |