| 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 #include <tuple> | 9 #include <tuple> |
| 10 | 10 |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 117 |
| 118 // Should be called when a URL is opened from the omnibox. | 118 // Should be called when a URL is opened from the omnibox. |
| 119 void OnOmniboxOpenedUrl(const OmniboxLog& log); | 119 void OnOmniboxOpenedUrl(const OmniboxLog& log); |
| 120 | 120 |
| 121 private: | 121 private: |
| 122 friend class AutocompleteActionPredictorTest; | 122 friend class AutocompleteActionPredictorTest; |
| 123 friend class ::PredictorsHandler; | 123 friend class ::PredictorsHandler; |
| 124 | 124 |
| 125 struct TransitionalMatch { | 125 struct TransitionalMatch { |
| 126 TransitionalMatch(); | 126 TransitionalMatch(); |
| 127 TransitionalMatch(const TransitionalMatch& other); |
| 127 ~TransitionalMatch(); | 128 ~TransitionalMatch(); |
| 128 | 129 |
| 129 base::string16 user_text; | 130 base::string16 user_text; |
| 130 std::vector<GURL> urls; | 131 std::vector<GURL> urls; |
| 131 | 132 |
| 132 bool operator==(const base::string16& other_user_text) const { | 133 bool operator==(const base::string16& other_user_text) const { |
| 133 return user_text == other_user_text; | 134 return user_text == other_user_text; |
| 134 } | 135 } |
| 135 }; | 136 }; |
| 136 | 137 |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 | 263 |
| 263 ScopedObserver<history::HistoryService, history::HistoryServiceObserver> | 264 ScopedObserver<history::HistoryService, history::HistoryServiceObserver> |
| 264 history_service_observer_; | 265 history_service_observer_; |
| 265 | 266 |
| 266 DISALLOW_COPY_AND_ASSIGN(AutocompleteActionPredictor); | 267 DISALLOW_COPY_AND_ASSIGN(AutocompleteActionPredictor); |
| 267 }; | 268 }; |
| 268 | 269 |
| 269 } // namespace predictors | 270 } // namespace predictors |
| 270 | 271 |
| 271 #endif // CHROME_BROWSER_PREDICTORS_AUTOCOMPLETE_ACTION_PREDICTOR_H_ | 272 #endif // CHROME_BROWSER_PREDICTORS_AUTOCOMPLETE_ACTION_PREDICTOR_H_ |
| OLD | NEW |