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 UI_APP_LIST_SEARCH_HISTORY_DATA_H_ | 5 #ifndef UI_APP_LIST_SEARCH_HISTORY_DATA_H_ |
6 #define UI_APP_LIST_SEARCH_HISTORY_DATA_H_ | 6 #define UI_APP_LIST_SEARCH_HISTORY_DATA_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 private: | 75 private: |
76 // Invoked from |store| with loaded data. | 76 // Invoked from |store| with loaded data. |
77 void OnStoreLoaded(scoped_ptr<Associations> loaded_data); | 77 void OnStoreLoaded(scoped_ptr<Associations> loaded_data); |
78 | 78 |
79 // Trims the data to keep the most recent |max_primary_| queries. | 79 // Trims the data to keep the most recent |max_primary_| queries. |
80 void TrimEntries(); | 80 void TrimEntries(); |
81 | 81 |
82 HistoryDataStore* store_; // Not owned. | 82 HistoryDataStore* store_; // Not owned. |
83 const size_t max_primary_; | 83 const size_t max_primary_; |
84 const size_t max_secondary_; | 84 const size_t max_secondary_; |
85 ObserverList<HistoryDataObserver, true> observers_; | 85 base::ObserverList<HistoryDataObserver, true> observers_; |
86 | 86 |
87 Associations associations_; | 87 Associations associations_; |
88 | 88 |
89 DISALLOW_COPY_AND_ASSIGN(HistoryData); | 89 DISALLOW_COPY_AND_ASSIGN(HistoryData); |
90 }; | 90 }; |
91 | 91 |
92 } // namespace app_list | 92 } // namespace app_list |
93 | 93 |
94 #endif // UI_APP_LIST_SEARCH_HISTORY_DATA_H_ | 94 #endif // UI_APP_LIST_SEARCH_HISTORY_DATA_H_ |
OLD | NEW |