OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_OMNIBOX_BROWSER_IN_MEMORY_URL_INDEX_H_ | 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_IN_MEMORY_URL_INDEX_H_ |
6 #define COMPONENTS_OMNIBOX_BROWSER_IN_MEMORY_URL_INDEX_H_ | 6 #define COMPONENTS_OMNIBOX_BROWSER_IN_MEMORY_URL_INDEX_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <functional> | 10 #include <functional> |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
144 | 144 |
145 // Indicates that the index restoration is complete. | 145 // Indicates that the index restoration is complete. |
146 bool restored() const { | 146 bool restored() const { |
147 return restored_; | 147 return restored_; |
148 } | 148 } |
149 | 149 |
150 private: | 150 private: |
151 friend class ::HistoryQuickProviderTest; | 151 friend class ::HistoryQuickProviderTest; |
152 friend class InMemoryURLIndexTest; | 152 friend class InMemoryURLIndexTest; |
153 friend class InMemoryURLIndexCacheTest; | 153 friend class InMemoryURLIndexCacheTest; |
154 friend void BlockUntilInMemoryURLIndexIsRefreshed(InMemoryURLIndex* index); | |
155 friend void RebuildInMemoryURLIndex(InMemoryURLIndex* index, | |
156 history::HistoryService* history); | |
Peter Kasting
2016/01/30 01:09:22
Nit: Indenting
rohitrao (ping after 24h)
2016/01/31 15:45:56
Done.
| |
154 FRIEND_TEST_ALL_PREFIXES(InMemoryURLIndexTest, ExpireRow); | 157 FRIEND_TEST_ALL_PREFIXES(InMemoryURLIndexTest, ExpireRow); |
155 FRIEND_TEST_ALL_PREFIXES(LimitedInMemoryURLIndexTest, Initialization); | 158 FRIEND_TEST_ALL_PREFIXES(LimitedInMemoryURLIndexTest, Initialization); |
156 | 159 |
157 // HistoryDBTask used to rebuild our private data from the history database. | 160 // HistoryDBTask used to rebuild our private data from the history database. |
158 class RebuildPrivateDataFromHistoryDBTask : public history::HistoryDBTask { | 161 class RebuildPrivateDataFromHistoryDBTask : public history::HistoryDBTask { |
159 public: | 162 public: |
160 explicit RebuildPrivateDataFromHistoryDBTask( | 163 explicit RebuildPrivateDataFromHistoryDBTask( |
161 InMemoryURLIndex* index, | 164 InMemoryURLIndex* index, |
162 const std::string& languages, | 165 const std::string& languages, |
163 const SchemeSet& scheme_whitelist); | 166 const SchemeSet& scheme_whitelist); |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
318 // This flag is set to true if we want to listen to the | 321 // This flag is set to true if we want to listen to the |
319 // HistoryServiceLoaded Notification. | 322 // HistoryServiceLoaded Notification. |
320 bool listen_to_history_service_loaded_; | 323 bool listen_to_history_service_loaded_; |
321 | 324 |
322 base::ThreadChecker thread_checker_; | 325 base::ThreadChecker thread_checker_; |
323 | 326 |
324 DISALLOW_COPY_AND_ASSIGN(InMemoryURLIndex); | 327 DISALLOW_COPY_AND_ASSIGN(InMemoryURLIndex); |
325 }; | 328 }; |
326 | 329 |
327 #endif // COMPONENTS_OMNIBOX_BROWSER_IN_MEMORY_URL_INDEX_H_ | 330 #endif // COMPONENTS_OMNIBOX_BROWSER_IN_MEMORY_URL_INDEX_H_ |
OLD | NEW |