| OLD | NEW |
| 1 // Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2010 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 // This is the global interface for the dns prefetch services. It centralizes | 5 // This is the global interface for the dns prefetch services. It centralizes |
| 6 // initialization, along with all the callbacks etc. to connect to the browser | 6 // initialization, along with all the callbacks etc. to connect to the browser |
| 7 // process. This allows the more standard DNS prefetching services, such as | 7 // process. This allows the more standard DNS prefetching services, such as |
| 8 // provided by Predictor to be left as more generally usable code, and possibly | 8 // provided by Predictor to be left as more generally usable code, and possibly |
| 9 // be shared across multiple client projects. | 9 // be shared across multiple client projects. |
| 10 | 10 |
| 11 #ifndef CHROME_BROWSER_NET_DNS_GLOBAL_H_ | 11 #ifndef CHROME_BROWSER_NET_PREDICTOR_API_H_ |
| 12 #define CHROME_BROWSER_NET_DNS_GLOBAL_H_ | 12 #define CHROME_BROWSER_NET_PREDICTOR_API_H_ |
| 13 | 13 |
| 14 | 14 |
| 15 #include <string> | 15 #include <string> |
| 16 #include <vector> | 16 #include <vector> |
| 17 | 17 |
| 18 #include "base/field_trial.h" | 18 #include "base/field_trial.h" |
| 19 #include "base/scoped_ptr.h" | 19 #include "base/scoped_ptr.h" |
| 20 #include "chrome/browser/autocomplete/autocomplete.h" | 20 #include "chrome/browser/autocomplete/autocomplete.h" |
| 21 #include "chrome/browser/net/dns_master.h" | 21 #include "chrome/browser/net/predictor.h" |
| 22 #include "net/base/host_resolver.h" | 22 #include "net/base/host_resolver.h" |
| 23 | 23 |
| 24 class PrefService; | 24 class PrefService; |
| 25 | 25 |
| 26 namespace chrome_browser_net { | 26 namespace chrome_browser_net { |
| 27 | 27 |
| 28 // Deletes |referral_list| when done. | 28 // Deletes |referral_list| when done. |
| 29 void FinalizePredictorInitialization( | 29 void FinalizePredictorInitialization( |
| 30 Predictor* global_predictor, | 30 Predictor* global_predictor, |
| 31 net::HostResolver::Observer* global_prefetch_observer, | 31 net::HostResolver::Observer* global_prefetch_observer, |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 92 |
| 93 private: | 93 private: |
| 94 // Maintain a field trial instance when we do A/B testing. | 94 // Maintain a field trial instance when we do A/B testing. |
| 95 scoped_refptr<FieldTrial> trial_; | 95 scoped_refptr<FieldTrial> trial_; |
| 96 | 96 |
| 97 DISALLOW_COPY_AND_ASSIGN(PredictorInit); | 97 DISALLOW_COPY_AND_ASSIGN(PredictorInit); |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 } // namespace chrome_browser_net | 100 } // namespace chrome_browser_net |
| 101 | 101 |
| 102 #endif // CHROME_BROWSER_NET_DNS_GLOBAL_H_ | 102 #endif // CHROME_BROWSER_NET_PREDICTOR_API_H_ |
| OLD | NEW |