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 CHROME_BROWSER_HISTORY_IN_MEMORY_URL_INDEX_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_IN_MEMORY_URL_INDEX_H_ |
6 #define CHROME_BROWSER_HISTORY_IN_MEMORY_URL_INDEX_H_ | 6 #define CHROME_BROWSER_HISTORY_IN_MEMORY_URL_INDEX_H_ |
7 | 7 |
8 #include <functional> | 8 #include <functional> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 30 matching lines...) Expand all Loading... |
41 | 41 |
42 namespace history { | 42 namespace history { |
43 | 43 |
44 namespace imui = in_memory_url_index; | 44 namespace imui = in_memory_url_index; |
45 | 45 |
46 class HistoryClient; | 46 class HistoryClient; |
47 class HistoryDatabase; | 47 class HistoryDatabase; |
48 class URLIndexPrivateData; | 48 class URLIndexPrivateData; |
49 struct URLsDeletedDetails; | 49 struct URLsDeletedDetails; |
50 struct URLsModifiedDetails; | 50 struct URLsModifiedDetails; |
51 struct URLVisitedDetails; | |
52 | 51 |
53 // The URL history source. | 52 // The URL history source. |
54 // Holds portions of the URL database in memory in an indexed form. Used to | 53 // Holds portions of the URL database in memory in an indexed form. Used to |
55 // quickly look up matching URLs for a given query string. Used by | 54 // quickly look up matching URLs for a given query string. Used by |
56 // the HistoryURLProvider for inline autocomplete and to provide URL | 55 // the HistoryURLProvider for inline autocomplete and to provide URL |
57 // matches to the omnibox. | 56 // matches to the omnibox. |
58 // | 57 // |
59 // Note about multi-byte codepoints and the data structures in the | 58 // Note about multi-byte codepoints and the data structures in the |
60 // InMemoryURLIndex class: One will quickly notice that no effort is made to | 59 // InMemoryURLIndex class: One will quickly notice that no effort is made to |
61 // insure that multi-byte character boundaries are detected when indexing the | 60 // insure that multi-byte character boundaries are detected when indexing the |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 // temporary safety check to insure that the cache is saved before the | 308 // temporary safety check to insure that the cache is saved before the |
310 // index has been destructed. | 309 // index has been destructed. |
311 bool needs_to_be_cached_; | 310 bool needs_to_be_cached_; |
312 | 311 |
313 DISALLOW_COPY_AND_ASSIGN(InMemoryURLIndex); | 312 DISALLOW_COPY_AND_ASSIGN(InMemoryURLIndex); |
314 }; | 313 }; |
315 | 314 |
316 } // namespace history | 315 } // namespace history |
317 | 316 |
318 #endif // CHROME_BROWSER_HISTORY_IN_MEMORY_URL_INDEX_H_ | 317 #endif // CHROME_BROWSER_HISTORY_IN_MEMORY_URL_INDEX_H_ |
OLD | NEW |