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

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

Issue 5610002: Don't re-save autofill profiles to the web database if they haven't changed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Denitting Created 10 years 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 | « no previous file | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest, 315 FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest,
316 Autofill_GetAllAutofillEntries_OneResult); 316 Autofill_GetAllAutofillEntries_OneResult);
317 FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest, 317 FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest,
318 Autofill_GetAllAutofillEntries_TwoDistinct); 318 Autofill_GetAllAutofillEntries_TwoDistinct);
319 FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest, 319 FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest,
320 Autofill_GetAllAutofillEntries_TwoSame); 320 Autofill_GetAllAutofillEntries_TwoSame);
321 FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest, Autofill_UpdateDontReplace); 321 FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest, Autofill_UpdateDontReplace);
322 FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest, Autofill_AddFormFieldValues); 322 FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest, Autofill_AddFormFieldValues);
323 FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest, AutoFillProfile); 323 FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest, AutoFillProfile);
324 FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest, CreditCard); 324 FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest, CreditCard);
325 FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest, UpdateAutoFillProfile);
326 FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest, UpdateCreditCard);
325 FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest, 327 FRIEND_TEST_ALL_PREFIXES(WebDatabaseTest,
326 RemoveAutoFillProfilesAndCreditCardsModifiedBetween); 328 RemoveAutoFillProfilesAndCreditCardsModifiedBetween);
327 329
328 // Methods for adding autofill entries at a specified time. For 330 // Methods for adding autofill entries at a specified time. For
329 // testing only. 331 // testing only.
330 bool AddFormFieldValuesTime( 332 bool AddFormFieldValuesTime(
331 const std::vector<webkit_glue::FormField>& elements, 333 const std::vector<webkit_glue::FormField>& elements,
332 std::vector<AutofillChange>* changes, 334 std::vector<AutofillChange>* changes,
333 base::Time time); 335 base::Time time);
334 bool AddFormFieldValueTime(const webkit_glue::FormField& element, 336 bool AddFormFieldValueTime(const webkit_glue::FormField& element,
(...skipping 25 matching lines...) Expand all
360 362
361 sql::Connection db_; 363 sql::Connection db_;
362 sql::MetaTable meta_table_; 364 sql::MetaTable meta_table_;
363 365
364 scoped_ptr<NotificationService> notification_service_; 366 scoped_ptr<NotificationService> notification_service_;
365 367
366 DISALLOW_COPY_AND_ASSIGN(WebDatabase); 368 DISALLOW_COPY_AND_ASSIGN(WebDatabase);
367 }; 369 };
368 370
369 #endif // CHROME_BROWSER_WEBDATA_WEB_DATABASE_H_ 371 #endif // CHROME_BROWSER_WEBDATA_WEB_DATABASE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/webdata/web_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698