| Index: chrome/browser/history/url_index_private_data.h
|
| ===================================================================
|
| --- chrome/browser/history/url_index_private_data.h (revision 154855)
|
| +++ chrome/browser/history/url_index_private_data.h (working copy)
|
| @@ -17,6 +17,7 @@
|
| #include "content/public/browser/notification_details.h"
|
|
|
| class HistoryQuickProviderTest;
|
| +class Profile;
|
|
|
| namespace in_memory_url_index {
|
| class InMemoryURLIndexCacheItem;
|
| @@ -43,7 +44,7 @@
|
| class URLIndexPrivateData
|
| : public base::RefCountedThreadSafe<URLIndexPrivateData> {
|
| public:
|
| - URLIndexPrivateData();
|
| + explicit URLIndexPrivateData(Profile* profile);
|
|
|
| // Given a string16 in |term_string|, scans the history index and returns a
|
| // vector with all scored, matching history items. The |term_string| is
|
| @@ -83,6 +84,7 @@
|
| // of the cache file stored in |file_path|, and assigns it to |private_data|.
|
| // |languages| will be used to break URLs and page titles into words.
|
| static void RestoreFromFileTask(
|
| + Profile* profile,
|
| const FilePath& file_path,
|
| scoped_refptr<URLIndexPrivateData> private_data,
|
| const std::string& languages);
|
| @@ -93,6 +95,7 @@
|
| // |languages| gives a list of language encodings by which the URLs and page
|
| // titles are broken down into words and characters.
|
| static scoped_refptr<URLIndexPrivateData> RebuildFromHistory(
|
| + Profile* profile,
|
| HistoryDatabase* history_db,
|
| const std::string& languages,
|
| const std::set<std::string>& scheme_whitelist);
|
| @@ -268,6 +271,7 @@
|
| // restored data but upon failure will be empty. |languages| will be used to
|
| // break URLs and page titles into words
|
| static scoped_refptr<URLIndexPrivateData> RestoreFromFile(
|
| + Profile* profile,
|
| const FilePath& path,
|
| const std::string& languages);
|
|
|
| @@ -291,6 +295,8 @@
|
| // Cache of search terms.
|
| SearchTermCacheMap search_term_cache_;
|
|
|
| + Profile* profile_;
|
| +
|
| // Start of data members that are cached -------------------------------------
|
|
|
| // The version of the cache file most recently used to restore this instance
|
|
|