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

Side by Side Diff: chrome/browser/webdata/web_database.h

Issue 42258: Add way to remove entries from autocomplete (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/webdata/web_data_service.cc ('k') | chrome/browser/webdata/web_database.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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__
OLDNEW
« no previous file with comments | « chrome/browser/webdata/web_data_service.cc ('k') | chrome/browser/webdata/web_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698