diff options
Diffstat (limited to 'chrome/browser/history/text_database_manager.h')
-rw-r--r-- | chrome/browser/history/text_database_manager.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/chrome/browser/history/text_database_manager.h b/chrome/browser/history/text_database_manager.h index c84d423..7f25bf7 100644 --- a/chrome/browser/history/text_database_manager.h +++ b/chrome/browser/history/text_database_manager.h @@ -11,6 +11,7 @@ #include "base/basictypes.h" #include "base/file_path.h" #include "base/gtest_prod_util.h" +#include "base/string16.h" #include "base/task.h" #include "chrome/browser/history/history_types.h" #include "chrome/browser/history/text_database.h" @@ -103,7 +104,7 @@ class TextDatabaseManager { // should be the time corresponding to that visit in the database. void AddPageURL(const GURL& url, URLID url_id, VisitID visit_id, base::Time visit_time); - void AddPageTitle(const GURL& url, const std::wstring& title); + void AddPageTitle(const GURL& url, const string16& title); void AddPageContents(const GURL& url, const string16& body); // Adds the given data to the appropriate database file, returning true on @@ -114,7 +115,7 @@ class TextDatabaseManager { URLID url_id, VisitID visit_id, base::Time visit_time, - const std::wstring& title, + const string16& title, const string16& body); // Deletes the instance of indexed data identified by the given time and URL. @@ -152,7 +153,7 @@ class TextDatabaseManager { // // This function will return more than one match per URL if there is more than // one entry for that URL in the database. - void GetTextMatches(const std::wstring& query, + void GetTextMatches(const string16& query, const QueryOptions& options, std::vector<TextDatabase::Match>* results, base::Time* first_time_searched); @@ -176,11 +177,11 @@ class TextDatabaseManager { URLID url_id() const { return url_id_; } VisitID visit_id() const { return visit_id_; } base::Time visit_time() const { return visit_time_; } - const std::wstring& title() const { return title_; } + const string16& title() const { return title_; } const string16& body() const { return body_; } // Setters, we can only update the title and body. - void set_title(const std::wstring& ttl); + void set_title(const string16& ttl); void set_body(const string16& bdy); // Returns true if both the title or body of the entry has been set. Since @@ -207,7 +208,7 @@ class TextDatabaseManager { base::TimeTicks added_time_; // Will be the string " " when they are set to distinguish set and unset. - std::wstring title_; + string16 title_; string16 body_; }; |