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

Side by Side Diff: chrome/browser/autocomplete/history_contents_provider.h

Issue 1868: Moves bookmark related classes into bookmarks directory. There are no... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 3 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 | Annotate | Revision Log
OLDNEW
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
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__
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete.cc ('k') | chrome/browser/autocomplete/history_url_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698