summaryrefslogtreecommitdiffstats
path: root/chrome/browser/webdata/web_database.cc
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-25 18:30:45 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-25 18:30:45 +0000
commitd043c2cccc2705908f2a3d39d404c8bf1a51c0de (patch)
tree6c2d946dc5fcbd111fab9c3662ea98af433c702b /chrome/browser/webdata/web_database.cc
parent4b576875ad1b570c3f34f549df27b9e98941dac7 (diff)
downloadchromium_src-d043c2cccc2705908f2a3d39d404c8bf1a51c0de.zip
chromium_src-d043c2cccc2705908f2a3d39d404c8bf1a51c0de.tar.gz
chromium_src-d043c2cccc2705908f2a3d39d404c8bf1a51c0de.tar.bz2
Cleanup in chrome/browser
- make more things const - remove unreferenced declaration of GetGoButton - fix indentation in one place Review URL: http://codereview.chromium.org/53053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12475 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/webdata/web_database.cc')
-rw-r--r--chrome/browser/webdata/web_database.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/chrome/browser/webdata/web_database.cc b/chrome/browser/webdata/web_database.cc
index b9b64f3..fe9fb5f 100644
--- a/chrome/browser/webdata/web_database.cc
+++ b/chrome/browser/webdata/web_database.cc
@@ -224,7 +224,7 @@ bool WebDatabase::SetWebAppImage(const GURL& url,
}
bool WebDatabase::GetWebAppImages(const GURL& url,
- std::vector<SkBitmap>* images) {
+ std::vector<SkBitmap>* images) const {
SQLStatement s;
if (s.prepare(db_, "SELECT image FROM web_app_icons WHERE url=?") !=
SQLITE_OK) {
@@ -259,7 +259,7 @@ bool WebDatabase::SetWebAppHasAllImages(const GURL& url,
return (s.step() == SQLITE_DONE);
}
-bool WebDatabase::GetWebAppHasAllImages(const GURL& url) {
+bool WebDatabase::GetWebAppHasAllImages(const GURL& url) const {
SQLStatement s;
if (s.prepare(db_, "SELECT has_all_images FROM web_apps "
"WHERE url=?") != SQLITE_OK) {
@@ -524,7 +524,7 @@ bool WebDatabase::RemoveKeyword(TemplateURL::IDType id) {
return s.step() == SQLITE_DONE;
}
-bool WebDatabase::GetKeywords(std::vector<TemplateURL*>* urls) {
+bool WebDatabase::GetKeywords(std::vector<TemplateURL*>* urls) const {
SQLStatement s;
if (s.prepare(db_,
"SELECT id, short_name, keyword, favicon_url, url, "
@@ -784,7 +784,7 @@ static void InitPasswordFormFromStatement(PasswordForm* form,
}
bool WebDatabase::GetLogins(const PasswordForm& form,
- std::vector<PasswordForm*>* forms) {
+ std::vector<PasswordForm*>* forms) const {
DCHECK(forms);
SQLStatement s;
if (s.prepare(db_,
@@ -812,7 +812,7 @@ bool WebDatabase::GetLogins(const PasswordForm& form,
}
bool WebDatabase::GetAllLogins(std::vector<PasswordForm*>* forms,
- bool include_blacklisted) {
+ bool include_blacklisted) const {
DCHECK(forms);
SQLStatement s;
std::string stmt = "SELECT origin_url, action_url, "
@@ -876,7 +876,7 @@ bool WebDatabase::ClearAutofillEmptyValueElements() {
}
bool WebDatabase::GetIDAndCountOfFormElement(
- const AutofillForm::Element& element, int64* pair_id, int* count) {
+ const AutofillForm::Element& element, int64* pair_id, int* count) const {
SQLStatement s;
if (s.prepare(db_, "SELECT pair_id, count FROM autofill "
@@ -900,7 +900,7 @@ bool WebDatabase::GetIDAndCountOfFormElement(
return true;
}
-bool WebDatabase::GetCountOfFormElement(int64 pair_id, int* count) {
+bool WebDatabase::GetCountOfFormElement(int64 pair_id, int* count) const {
SQLStatement s;
if (s.prepare(db_, "SELECT count FROM autofill "
@@ -1010,7 +1010,7 @@ bool WebDatabase::AddAutofillFormElement(const AutofillForm::Element& element) {
bool WebDatabase::GetFormValuesForElementName(const std::wstring& name,
const std::wstring& prefix,
std::vector<std::wstring>* values,
- int limit) {
+ int limit) const {
DCHECK(values);
SQLStatement s;