Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: ui/app_list/search/history_data.h

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/app_list/pagination_model.h ('k') | ui/app_list/search_box_model.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ui/app_list/pagination_model.h ('k') | ui/app_list/search_box_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698