| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_UI_APP_LIST_SEARCH_HISTORY_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_HISTORY_H_ |
| 6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_HISTORY_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_HISTORY_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 void AddLaunchEvent(const std::string& query, const std::string& result_id); | 42 void AddLaunchEvent(const std::string& query, const std::string& result_id); |
| 43 | 43 |
| 44 // Gets all known search results that were launched using the given |query| | 44 // Gets all known search results that were launched using the given |query| |
| 45 // or using queries that |query| is a prefix of. | 45 // or using queries that |query| is a prefix of. |
| 46 scoped_ptr<KnownResults> GetKnownResults(const std::string& query) const; | 46 scoped_ptr<KnownResults> GetKnownResults(const std::string& query) const; |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 friend class app_list::test::SearchHistoryTest; | 49 friend class app_list::test::SearchHistoryTest; |
| 50 | 50 |
| 51 // HistoryDataObserver overrides: | 51 // HistoryDataObserver overrides: |
| 52 virtual void OnHistoryDataLoadedFromStore() OVERRIDE; | 52 virtual void OnHistoryDataLoadedFromStore() override; |
| 53 | 53 |
| 54 scoped_ptr<HistoryData> data_; | 54 scoped_ptr<HistoryData> data_; |
| 55 scoped_refptr<HistoryDataStore> store_; | 55 scoped_refptr<HistoryDataStore> store_; |
| 56 bool data_loaded_; | 56 bool data_loaded_; |
| 57 | 57 |
| 58 DISALLOW_COPY_AND_ASSIGN(History); | 58 DISALLOW_COPY_AND_ASSIGN(History); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace app_list | 61 } // namespace app_list |
| 62 | 62 |
| 63 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_HISTORY_H_ | 63 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_HISTORY_H_ |
| OLD | NEW |