OLD | NEW |
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/web_data_service.h" | 5 #include "chrome/browser/webdata/web_data_service.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
11 #include "base/threading/thread.h" | 11 #include "base/threading/thread.h" |
12 #include "chrome/browser/autofill/autofill_country.h" | |
13 #include "chrome/browser/autofill/autofill_profile.h" | |
14 #include "chrome/browser/autofill/credit_card.h" | |
15 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
16 #include "chrome/browser/profiles/profile_manager.h" | 13 #include "chrome/browser/profiles/profile_manager.h" |
17 #include "chrome/browser/search_engines/template_url.h" | 14 #include "chrome/browser/search_engines/template_url.h" |
18 #include "chrome/browser/ui/profile_error_dialog.h" | 15 #include "chrome/browser/ui/profile_error_dialog.h" |
19 #include "chrome/browser/webdata/autocomplete_syncable_service.h" | 16 #include "chrome/browser/webdata/autocomplete_syncable_service.h" |
20 #include "chrome/browser/webdata/autofill_change.h" | 17 #include "chrome/browser/webdata/autofill_change.h" |
21 #include "chrome/browser/webdata/autofill_entry.h" | 18 #include "chrome/browser/webdata/autofill_entry.h" |
22 #include "chrome/browser/webdata/autofill_profile_syncable_service.h" | 19 #include "chrome/browser/webdata/autofill_profile_syncable_service.h" |
23 #include "chrome/browser/webdata/autofill_table.h" | 20 #include "chrome/browser/webdata/autofill_table.h" |
24 #include "chrome/browser/webdata/keyword_table.h" | 21 #include "chrome/browser/webdata/keyword_table.h" |
25 #include "chrome/browser/webdata/logins_table.h" | 22 #include "chrome/browser/webdata/logins_table.h" |
26 #include "chrome/browser/webdata/token_service_table.h" | 23 #include "chrome/browser/webdata/token_service_table.h" |
27 #include "chrome/browser/webdata/web_apps_table.h" | 24 #include "chrome/browser/webdata/web_apps_table.h" |
28 #include "chrome/browser/webdata/web_database_service.h" | 25 #include "chrome/browser/webdata/web_database_service.h" |
29 #include "chrome/browser/webdata/web_intents_table.h" | 26 #include "chrome/browser/webdata/web_intents_table.h" |
30 #include "chrome/common/chrome_constants.h" | 27 #include "chrome/common/chrome_constants.h" |
31 #include "chrome/common/chrome_notification_types.h" | 28 #include "chrome/common/chrome_notification_types.h" |
| 29 #include "components/autofill/browser/autofill_country.h" |
| 30 #include "components/autofill/browser/autofill_profile.h" |
| 31 #include "components/autofill/browser/credit_card.h" |
32 #include "components/autofill/common/form_field_data.h" | 32 #include "components/autofill/common/form_field_data.h" |
33 #ifdef DEBUG | 33 #ifdef DEBUG |
34 #include "content/public/browser/browser_thread.h" | 34 #include "content/public/browser/browser_thread.h" |
35 #endif | 35 #endif |
36 #include "content/public/browser/notification_details.h" | 36 #include "content/public/browser/notification_details.h" |
37 #include "content/public/browser/notification_service.h" | 37 #include "content/public/browser/notification_service.h" |
38 #include "content/public/browser/notification_source.h" | 38 #include "content/public/browser/notification_source.h" |
39 #include "grit/chromium_strings.h" | 39 #include "grit/chromium_strings.h" |
40 #include "grit/generated_resources.h" | 40 #include "grit/generated_resources.h" |
41 #include "third_party/skia/include/core/SkBitmap.h" | 41 #include "third_party/skia/include/core/SkBitmap.h" |
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
804 void WebDataService::DestroyAutofillCreditCardResult( | 804 void WebDataService::DestroyAutofillCreditCardResult( |
805 const WDTypedResult* result) { | 805 const WDTypedResult* result) { |
806 DCHECK(result->GetType() == AUTOFILL_CREDITCARDS_RESULT); | 806 DCHECK(result->GetType() == AUTOFILL_CREDITCARDS_RESULT); |
807 const WDResult<std::vector<CreditCard*> >* r = | 807 const WDResult<std::vector<CreditCard*> >* r = |
808 static_cast<const WDResult<std::vector<CreditCard*> >*>(result); | 808 static_cast<const WDResult<std::vector<CreditCard*> >*>(result); |
809 | 809 |
810 std::vector<CreditCard*> credit_cards = r->GetValue(); | 810 std::vector<CreditCard*> credit_cards = r->GetValue(); |
811 STLDeleteElements(&credit_cards); | 811 STLDeleteElements(&credit_cards); |
812 } | 812 } |
813 | 813 |
OLD | NEW |