OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_AUTOCOMPLETE_HISTORY_CONTENTS_PROVIDER_H__ | 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_HISTORY_CONTENTS_PROVIDER_H__ |
6 #define CHROME_BROWSER_AUTOCOMPLETE_HISTORY_CONTENTS_PROVIDER_H__ | 6 #define CHROME_BROWSER_AUTOCOMPLETE_HISTORY_CONTENTS_PROVIDER_H__ |
7 | 7 |
8 #include "chrome/browser/autocomplete/autocomplete.h" | 8 #include "chrome/browser/autocomplete/autocomplete.h" |
9 #include "chrome/browser/bookmark_bar_model.h" | 9 #include "chrome/browser/bookmarks/bookmark_bar_model.h" |
10 #include "chrome/browser/history/history.h" | 10 #include "chrome/browser/history/history.h" |
11 | 11 |
12 // HistoryContentsProvider is an AutocompleteProvider that provides results from | 12 // HistoryContentsProvider is an AutocompleteProvider that provides results from |
13 // the contents (body and/or title) of previously visited pages. | 13 // the contents (body and/or title) of previously visited pages. |
14 // HistoryContentsProvider gets results from two sources: | 14 // HistoryContentsProvider gets results from two sources: |
15 // . HistoryService: this provides results for matches in the body/title of | 15 // . HistoryService: this provides results for matches in the body/title of |
16 // previously viewed pages. This is asynchronous. | 16 // previously viewed pages. This is asynchronous. |
17 // . BookmarkBarModel: provides results for matches in the titles of bookmarks. | 17 // . BookmarkBarModel: provides results for matches in the titles of bookmarks. |
18 // This is synchronous. | 18 // This is synchronous. |
19 class HistoryContentsProvider : public AutocompleteProvider { | 19 class HistoryContentsProvider : public AutocompleteProvider { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 // Whether results_ is valid (so we can tell invalid apart from empty). | 90 // Whether results_ is valid (so we can tell invalid apart from empty). |
91 bool have_results_; | 91 bool have_results_; |
92 | 92 |
93 // Current query string. | 93 // Current query string. |
94 std::wstring query_; | 94 std::wstring query_; |
95 | 95 |
96 DISALLOW_EVIL_CONSTRUCTORS(HistoryContentsProvider); | 96 DISALLOW_EVIL_CONSTRUCTORS(HistoryContentsProvider); |
97 }; | 97 }; |
98 | 98 |
99 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_CONTENTS_PROVIDER_H__ | 99 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_CONTENTS_PROVIDER_H__ |
OLD | NEW |