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_STORE_H_ | 5 #ifndef UI_APP_LIST_SEARCH_HISTORY_DATA_STORE_H_ |
6 #define UI_APP_LIST_SEARCH_HISTORY_DATA_STORE_H_ | 6 #define UI_APP_LIST_SEARCH_HISTORY_DATA_STORE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "ui/app_list/app_list_export.h" | 15 #include "ui/app_list/app_list_export.h" |
16 #include "ui/app_list/search/dictionary_data_store.h" | 16 #include "ui/app_list/search/dictionary_data_store.h" |
17 #include "ui/app_list/search/history_data.h" | 17 #include "ui/app_list/search/history_data.h" |
18 | 18 |
19 namespace base { | 19 namespace base { |
20 class DictionaryValue; | 20 class DictionaryValue; |
21 class SequencedTaskRunner; | |
22 } | 21 } |
23 | 22 |
24 namespace app_list { | 23 namespace app_list { |
25 | 24 |
26 namespace test { | 25 namespace test { |
27 class HistoryDataStoreTest; | 26 class HistoryDataStoreTest; |
28 } | 27 } |
29 | 28 |
30 // A simple json store to persist HistoryData. | 29 // A simple json store to persist HistoryData. |
31 class APP_LIST_EXPORT HistoryDataStore | 30 class APP_LIST_EXPORT HistoryDataStore |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // on-memory data. | 77 // on-memory data. |
79 std::unique_ptr<base::DictionaryValue> cached_dict_; | 78 std::unique_ptr<base::DictionaryValue> cached_dict_; |
80 scoped_refptr<DictionaryDataStore> data_store_; | 79 scoped_refptr<DictionaryDataStore> data_store_; |
81 | 80 |
82 DISALLOW_COPY_AND_ASSIGN(HistoryDataStore); | 81 DISALLOW_COPY_AND_ASSIGN(HistoryDataStore); |
83 }; | 82 }; |
84 | 83 |
85 } // namespace app_list | 84 } // namespace app_list |
86 | 85 |
87 #endif // UI_APP_LIST_SEARCH_HISTORY_DATA_STORE_H_ | 86 #endif // UI_APP_LIST_SEARCH_HISTORY_DATA_STORE_H_ |
OLD | NEW |