| OLD | NEW |
| 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_WEBDATA_WEB_DATABASE_H__ | 5 #ifndef CHROME_BROWSER_WEBDATA_WEB_DATABASE_H__ |
| 6 #define CHROME_BROWSER_WEBDATA_WEB_DATABASE_H__ | 6 #define CHROME_BROWSER_WEBDATA_WEB_DATABASE_H__ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 bool SetCountOfFormElement(int64 pair_id, int count); | 171 bool SetCountOfFormElement(int64 pair_id, int count); |
| 172 | 172 |
| 173 // Adds a new row to the autofill table with name and value given in | 173 // Adds a new row to the autofill table with name and value given in |
| 174 // |element|. Sets *pair_id to the pair_id of the new row. | 174 // |element|. Sets *pair_id to the pair_id of the new row. |
| 175 bool InsertFormElement(const AutofillForm::Element& element, int64* pair_id); | 175 bool InsertFormElement(const AutofillForm::Element& element, int64* pair_id); |
| 176 | 176 |
| 177 // Adds a new row to the autofill_dates table. | 177 // Adds a new row to the autofill_dates table. |
| 178 bool InsertPairIDAndDate(int64 pair_id, const base::Time date_created); | 178 bool InsertPairIDAndDate(int64 pair_id, const base::Time date_created); |
| 179 | 179 |
| 180 // Removes row from the autofill tables given |pair_id|. | 180 // Removes row from the autofill tables given |pair_id|. |
| 181 bool RemoveFormElement(int64 pair_id); | 181 bool RemoveFormElementForID(int64 pair_id); |
| 182 |
| 183 // Removes row from the autofill tables for the given |name| |value| pair. |
| 184 bool RemoveFormElement(const std::wstring& name, const std::wstring& value); |
| 182 | 185 |
| 183 ////////////////////////////////////////////////////////////////////////////// | 186 ////////////////////////////////////////////////////////////////////////////// |
| 184 // | 187 // |
| 185 // Web Apps | 188 // Web Apps |
| 186 // | 189 // |
| 187 ////////////////////////////////////////////////////////////////////////////// | 190 ////////////////////////////////////////////////////////////////////////////// |
| 188 | 191 |
| 189 bool SetWebAppImage(const GURL& url, const SkBitmap& image); | 192 bool SetWebAppImage(const GURL& url, const SkBitmap& image); |
| 190 bool GetWebAppImages(const GURL& url, std::vector<SkBitmap>* images); | 193 bool GetWebAppImages(const GURL& url, std::vector<SkBitmap>* images); |
| 191 | 194 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 213 void MigrateOldVersionsAsNeeded(); | 216 void MigrateOldVersionsAsNeeded(); |
| 214 | 217 |
| 215 sqlite3* db_; | 218 sqlite3* db_; |
| 216 int transaction_nesting_; | 219 int transaction_nesting_; |
| 217 MetaTableHelper meta_table_; | 220 MetaTableHelper meta_table_; |
| 218 | 221 |
| 219 DISALLOW_COPY_AND_ASSIGN(WebDatabase); | 222 DISALLOW_COPY_AND_ASSIGN(WebDatabase); |
| 220 }; | 223 }; |
| 221 | 224 |
| 222 #endif // CHROME_BROWSER_WEBDATA_WEB_DATABASE_H__ | 225 #endif // CHROME_BROWSER_WEBDATA_WEB_DATABASE_H__ |
| OLD | NEW |