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

Side by Side Diff: components/webdata/autofill/autofill_webdata_service.cc

Issue 13392014: Move c/b/webdata/ code to components/webdata/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pure merge Created 7 years, 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chrome/browser/webdata/autofill_web_data_service.h" 5 #include "components/webdata/autofill/autofill_webdata_service.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "chrome/browser/webdata/autofill_change.h"
10 #include "chrome/browser/webdata/autofill_entry.h"
11 #include "chrome/browser/webdata/autofill_table.h"
12 #include "chrome/browser/webdata/autofill_web_data_service_observer.h"
13 #include "chrome/browser/webdata/web_database_service.h"
14 #include "components/autofill/browser/autofill_country.h" 9 #include "components/autofill/browser/autofill_country.h"
15 #include "components/autofill/browser/autofill_profile.h" 10 #include "components/autofill/browser/autofill_profile.h"
16 #include "components/autofill/browser/credit_card.h" 11 #include "components/autofill/browser/credit_card.h"
17 #include "components/autofill/common/form_field_data.h" 12 #include "components/autofill/common/form_field_data.h"
13 #include "components/webdata/autofill/autofill_change.h"
14 #include "components/webdata/autofill/autofill_entry.h"
15 #include "components/webdata/autofill/autofill_table.h"
16 #include "components/webdata/autofill/autofill_webdata_service_observer.h"
17 #include "components/webdata/common/web_database_service.h"
18 18
19 using base::Bind; 19 using base::Bind;
20 using base::Time; 20 using base::Time;
21 using content::BrowserThread; 21 using content::BrowserThread;
22 22
23 // static 23 // static
24 void AutofillWebDataService::NotifyOfMultipleAutofillChanges( 24 void AutofillWebDataService::NotifyOfMultipleAutofillChanges(
25 AutofillWebDataService* web_data_service) { 25 AutofillWebDataService* web_data_service) {
26 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB)); 26 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
27 27
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 std::vector<CreditCard*> credit_cards = r->GetValue(); 449 std::vector<CreditCard*> credit_cards = r->GetValue();
450 STLDeleteElements(&credit_cards); 450 STLDeleteElements(&credit_cards);
451 } 451 }
452 452
453 void AutofillWebDataService::NotifyAutofillMultipleChangedOnUIThread() { 453 void AutofillWebDataService::NotifyAutofillMultipleChangedOnUIThread() {
454 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 454 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
455 FOR_EACH_OBSERVER(AutofillWebDataServiceObserverOnUIThread, 455 FOR_EACH_OBSERVER(AutofillWebDataServiceObserverOnUIThread,
456 ui_observer_list_, 456 ui_observer_list_,
457 AutofillMultipleChanged()); 457 AutofillMultipleChanged());
458 } 458 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698