OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_api.h" | 5 #include "chrome/browser/net/predictor_api.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
11 #include "base/metrics/field_trial.h" | 11 #include "base/metrics/field_trial.h" |
12 #include "base/stl_util-inl.h" | 12 #include "base/stl_util.h" |
13 #include "base/string_number_conversions.h" | 13 #include "base/string_number_conversions.h" |
14 #include "base/synchronization/waitable_event.h" | 14 #include "base/synchronization/waitable_event.h" |
15 #include "base/threading/thread.h" | 15 #include "base/threading/thread.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
17 #include "chrome/browser/browser_process.h" | 17 #include "chrome/browser/browser_process.h" |
18 #include "chrome/browser/io_thread.h" | 18 #include "chrome/browser/io_thread.h" |
19 #include "chrome/browser/net/preconnect.h" | 19 #include "chrome/browser/net/preconnect.h" |
20 #include "chrome/browser/net/referrer.h" | 20 #include "chrome/browser/net/referrer.h" |
21 #include "chrome/browser/net/url_info.h" | 21 #include "chrome/browser/net/url_info.h" |
22 #include "chrome/browser/prefs/browser_prefs.h" | 22 #include "chrome/browser/prefs/browser_prefs.h" |
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 DCHECK(!g_predictor); | 641 DCHECK(!g_predictor); |
642 InitNetworkPredictor(max_queueing_delay, max_parallel_resolves, user_prefs, | 642 InitNetworkPredictor(max_queueing_delay, max_parallel_resolves, user_prefs, |
643 local_state, preconnect_enabled); | 643 local_state, preconnect_enabled); |
644 } | 644 } |
645 } | 645 } |
646 | 646 |
647 PredictorInit::~PredictorInit() { | 647 PredictorInit::~PredictorInit() { |
648 } | 648 } |
649 | 649 |
650 } // namespace chrome_browser_net | 650 } // namespace chrome_browser_net |
OLD | NEW |