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

Side by Side Diff: components/suggestions/suggestions_store.h

Issue 423133003: [Suggestions Service] Add support for expiring the SuggestionsStore (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some fixes. Test class for SuggestionStoreTest Created 6 years, 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_SUGGESTIONS_SUGGESTIONS_STORE_H_ 5 #ifndef COMPONENTS_SUGGESTIONS_SUGGESTIONS_STORE_H_
6 #define COMPONENTS_SUGGESTIONS_SUGGESTIONS_STORE_H_ 6 #define COMPONENTS_SUGGESTIONS_SUGGESTIONS_STORE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/suggestions/proto/suggestions.pb.h" 9 #include "components/suggestions/proto/suggestions.pb.h"
10 10
(...skipping 30 matching lines...) Expand all
41 41
42 protected: 42 protected:
43 // Test seam. For simplicity of mock creation. 43 // Test seam. For simplicity of mock creation.
44 SuggestionsStore() {} 44 SuggestionsStore() {}
45 45
46 private: 46 private:
47 // The pref service used to persist the suggestions data. 47 // The pref service used to persist the suggestions data.
48 PrefService* pref_service_; 48 PrefService* pref_service_;
49 49
50 DISALLOW_COPY_AND_ASSIGN(SuggestionsStore); 50 DISALLOW_COPY_AND_ASSIGN(SuggestionsStore);
51
52 // Filters expired suggestions.
53 void FilterExpiredSuggestions(SuggestionsProfile* suggestions);
51 }; 54 };
52 55
53 } // namespace suggestions 56 } // namespace suggestions
54 57
55 #endif // COMPONENTS_SUGGESTIONS_SUGGESTIONS_STORE_H_ 58 #endif // COMPONENTS_SUGGESTIONS_SUGGESTIONS_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698