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

Unified Diff: chrome/browser/history/text_database_manager.h

Issue 2714012: Convert page contents grabbing from wide to UTF16. The current code is a bit... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/history/text_database_manager.h
===================================================================
--- chrome/browser/history/text_database_manager.h (revision 49439)
+++ chrome/browser/history/text_database_manager.h (working copy)
@@ -101,7 +101,7 @@
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 AddPageContents(const GURL& url, const std::wstring& body);
+ void AddPageContents(const GURL& url, const string16& body);
// Adds the given data to the appropriate database file, returning true on
// success. The visit database row identified by |visit_id| will be updated
@@ -112,7 +112,7 @@
VisitID visit_id,
base::Time visit_time,
const std::wstring& title,
- const std::wstring& body);
+ const string16& body);
// Deletes the instance of indexed data identified by the given time and URL.
// Any changes will be tracked in the optional change set for use when calling
@@ -174,11 +174,11 @@
VisitID visit_id() const { return visit_id_; }
base::Time visit_time() const { return visit_time_; }
const std::wstring& title() const { return title_; }
- const std::wstring& body() const { return body_; }
+ const string16& body() const { return body_; }
// Setters, we can only update the title and body.
void set_title(const std::wstring& ttl);
- void set_body(const std::wstring& bdy);
+ void set_body(const string16& bdy);
// Returns true if both the title or body of the entry has been set. Since
// both the title and body setters will "fix" empty strings to be a space,
@@ -205,7 +205,7 @@
// Will be the string " " when they are set to distinguish set and unset.
std::wstring title_;
- std::wstring body_;
+ string16 body_;
};
// Converts the given time to a database identifier or vice-versa.

Powered by Google App Engine
This is Rietveld 408576698