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 #ifndef CHROME_BROWSER_PREDICTORS_AUTOCOMPLETE_ACTION_PREDICTOR_H_ | 5 #ifndef CHROME_BROWSER_PREDICTORS_AUTOCOMPLETE_ACTION_PREDICTOR_H_ |
6 #define CHROME_BROWSER_PREDICTORS_AUTOCOMPLETE_ACTION_PREDICTOR_H_ | 6 #define CHROME_BROWSER_PREDICTORS_AUTOCOMPLETE_ACTION_PREDICTOR_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 const AutocompleteMatch& match, | 215 const AutocompleteMatch& match, |
216 bool* is_in_db) const; | 216 bool* is_in_db) const; |
217 | 217 |
218 // Calculates the confidence for an entry in the DBCacheMap. | 218 // Calculates the confidence for an entry in the DBCacheMap. |
219 double CalculateConfidenceForDbEntry(DBCacheMap::const_iterator iter) const; | 219 double CalculateConfidenceForDbEntry(DBCacheMap::const_iterator iter) const; |
220 | 220 |
221 // KeyedService: | 221 // KeyedService: |
222 void Shutdown() override; | 222 void Shutdown() override; |
223 | 223 |
224 // history::HistoryServiceObserver: | 224 // history::HistoryServiceObserver: |
| 225 void OnURLsDeleted( |
| 226 HistoryService* history_service, |
| 227 const history::URLsDeletedDetails& deleted_details) override; |
225 void OnHistoryServiceLoaded(HistoryService* history_service) override; | 228 void OnHistoryServiceLoaded(HistoryService* history_service) override; |
226 | 229 |
227 Profile* profile_; | 230 Profile* profile_; |
228 | 231 |
229 // Set when this is a predictor for an incognito profile. | 232 // Set when this is a predictor for an incognito profile. |
230 AutocompleteActionPredictor* main_profile_predictor_; | 233 AutocompleteActionPredictor* main_profile_predictor_; |
231 | 234 |
232 // Set when this is a predictor for a non-incognito profile, and the incognito | 235 // Set when this is a predictor for a non-incognito profile, and the incognito |
233 // profile creates a predictor. If this is non-NULL when we finish | 236 // profile creates a predictor. If this is non-NULL when we finish |
234 // initialization, we should call CopyFromMainProfile() on it. | 237 // initialization, we should call CopyFromMainProfile() on it. |
(...skipping 22 matching lines...) Expand all Loading... |
257 | 260 |
258 ScopedObserver<HistoryService, HistoryServiceObserver> | 261 ScopedObserver<HistoryService, HistoryServiceObserver> |
259 history_service_observer_; | 262 history_service_observer_; |
260 | 263 |
261 DISALLOW_COPY_AND_ASSIGN(AutocompleteActionPredictor); | 264 DISALLOW_COPY_AND_ASSIGN(AutocompleteActionPredictor); |
262 }; | 265 }; |
263 | 266 |
264 } // namespace predictors | 267 } // namespace predictors |
265 | 268 |
266 #endif // CHROME_BROWSER_PREDICTORS_AUTOCOMPLETE_ACTION_PREDICTOR_H_ | 269 #endif // CHROME_BROWSER_PREDICTORS_AUTOCOMPLETE_ACTION_PREDICTOR_H_ |
OLD | NEW |