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