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/predictors/predictor_database.h" | 5 #include "chrome/browser/predictors/predictor_database.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/files/file_util.h" | 11 #include "base/files/file_util.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/metrics/histogram_macros.h" | 14 #include "base/metrics/histogram_macros.h" |
15 #include "base/strings/stringprintf.h" | |
16 #include "chrome/browser/predictors/autocomplete_action_predictor_table.h" | 15 #include "chrome/browser/predictors/autocomplete_action_predictor_table.h" |
17 #include "chrome/browser/predictors/resource_prefetch_predictor.h" | 16 #include "chrome/browser/predictors/resource_prefetch_predictor.h" |
18 #include "chrome/browser/predictors/resource_prefetch_predictor_tables.h" | 17 #include "chrome/browser/predictors/resource_prefetch_predictor_tables.h" |
19 #include "chrome/browser/prerender/prerender_field_trial.h" | 18 #include "chrome/browser/prerender/prerender_field_trial.h" |
20 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
21 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
22 #include "sql/connection.h" | 21 #include "sql/connection.h" |
23 | 22 |
24 using content::BrowserThread; | 23 using content::BrowserThread; |
25 | 24 |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 scoped_refptr<ResourcePrefetchPredictorTables> | 151 scoped_refptr<ResourcePrefetchPredictorTables> |
153 PredictorDatabase::resource_prefetch_tables() { | 152 PredictorDatabase::resource_prefetch_tables() { |
154 return db_->resource_prefetch_tables_; | 153 return db_->resource_prefetch_tables_; |
155 } | 154 } |
156 | 155 |
157 sql::Connection* PredictorDatabase::GetDatabase() { | 156 sql::Connection* PredictorDatabase::GetDatabase() { |
158 return db_->db_.get(); | 157 return db_->db_.get(); |
159 } | 158 } |
160 | 159 |
161 } // namespace predictors | 160 } // namespace predictors |
OLD | NEW |