| 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(HistoryService* history_service, |
| 226 bool all_history, |
| 227 bool expired, |
| 228 const history::URLRows& deleted_rows, |
| 229 const std::set<GURL>& favicon_urls) override; |
| 225 void OnHistoryServiceLoaded(HistoryService* history_service) override; | 230 void OnHistoryServiceLoaded(HistoryService* history_service) override; |
| 226 | 231 |
| 227 Profile* profile_; | 232 Profile* profile_; |
| 228 | 233 |
| 229 // Set when this is a predictor for an incognito profile. | 234 // Set when this is a predictor for an incognito profile. |
| 230 AutocompleteActionPredictor* main_profile_predictor_; | 235 AutocompleteActionPredictor* main_profile_predictor_; |
| 231 | 236 |
| 232 // Set when this is a predictor for a non-incognito profile, and the incognito | 237 // 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 | 238 // profile creates a predictor. If this is non-NULL when we finish |
| 234 // initialization, we should call CopyFromMainProfile() on it. | 239 // initialization, we should call CopyFromMainProfile() on it. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 257 | 262 |
| 258 ScopedObserver<HistoryService, HistoryServiceObserver> | 263 ScopedObserver<HistoryService, HistoryServiceObserver> |
| 259 history_service_observer_; | 264 history_service_observer_; |
| 260 | 265 |
| 261 DISALLOW_COPY_AND_ASSIGN(AutocompleteActionPredictor); | 266 DISALLOW_COPY_AND_ASSIGN(AutocompleteActionPredictor); |
| 262 }; | 267 }; |
| 263 | 268 |
| 264 } // namespace predictors | 269 } // namespace predictors |
| 265 | 270 |
| 266 #endif // CHROME_BROWSER_PREDICTORS_AUTOCOMPLETE_ACTION_PREDICTOR_H_ | 271 #endif // CHROME_BROWSER_PREDICTORS_AUTOCOMPLETE_ACTION_PREDICTOR_H_ |
| OLD | NEW |