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

Side by Side Diff: components/autofill/core/browser/webdata/autofill_webdata.h

Issue 480953002: Implement "Autofill form data" import for Firefox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review feedback (simplify Read method) Created 6 years, 3 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "components/webdata/common/web_data_service_base.h" 13 #include "components/webdata/common/web_data_service_base.h"
14 14
15 namespace base { 15 namespace base {
16 16
17 class Time; 17 class Time;
18 18
19 } // namespace base 19 } // namespace base
20 20
21 class Profile; 21 class Profile;
22 class WebDataServiceConsumer; 22 class WebDataServiceConsumer;
23 23
24 namespace autofill { 24 namespace autofill {
25 25
26 class AutofillEntry;
26 class AutofillProfile; 27 class AutofillProfile;
27 class CreditCard; 28 class CreditCard;
28 struct FormFieldData; 29 struct FormFieldData;
29 30
30 // Pure virtual interface for retrieving Autofill data. API users 31 // Pure virtual interface for retrieving Autofill data. API users
31 // should use AutofillWebDataService. 32 // should use AutofillWebDataService.
32 class AutofillWebData { 33 class AutofillWebData {
33 public: 34 public:
34 virtual ~AutofillWebData() {} 35 virtual ~AutofillWebData() {}
35 36
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // |guid| is the identifer of the profile to remove. 69 // |guid| is the identifer of the profile to remove.
69 virtual void RemoveAutofillProfile(const std::string& guid) = 0; 70 virtual void RemoveAutofillProfile(const std::string& guid) = 0;
70 71
71 // Initiates the request for all Autofill profiles. The method 72 // Initiates the request for all Autofill profiles. The method
72 // OnWebDataServiceRequestDone of |consumer| gets called when the request is 73 // OnWebDataServiceRequestDone of |consumer| gets called when the request is
73 // finished, with the profiles included in the argument |result|. The 74 // finished, with the profiles included in the argument |result|. The
74 // consumer owns the profiles. 75 // consumer owns the profiles.
75 virtual WebDataServiceBase::Handle GetAutofillProfiles( 76 virtual WebDataServiceBase::Handle GetAutofillProfiles(
76 WebDataServiceConsumer* consumer) = 0; 77 WebDataServiceConsumer* consumer) = 0;
77 78
79 // Schedules a task to update autofill entries in the web database.
80 virtual void UpdateAutofillEntries(
81 const std::vector<AutofillEntry>& autofill_entries) = 0;
82
78 // Schedules a task to add credit card to the web database. 83 // Schedules a task to add credit card to the web database.
79 virtual void AddCreditCard(const CreditCard& credit_card) = 0; 84 virtual void AddCreditCard(const CreditCard& credit_card) = 0;
80 85
81 // Schedules a task to update credit card in the web database. 86 // Schedules a task to update credit card in the web database.
82 virtual void UpdateCreditCard(const CreditCard& credit_card) = 0; 87 virtual void UpdateCreditCard(const CreditCard& credit_card) = 0;
83 88
84 // Schedules a task to remove a credit card from the web database. 89 // Schedules a task to remove a credit card from the web database.
85 // |guid| is identifer of the credit card to remove. 90 // |guid| is identifer of the credit card to remove.
86 virtual void RemoveCreditCard(const std::string& guid) = 0; 91 virtual void RemoveCreditCard(const std::string& guid) = 0;
87 92
(...skipping 10 matching lines...) Expand all
98 103
99 // Removes origin URLs associated with Autofill profiles and credit cards from 104 // Removes origin URLs associated with Autofill profiles and credit cards from
100 // the database. 105 // the database.
101 virtual void RemoveOriginURLsModifiedBetween( 106 virtual void RemoveOriginURLsModifiedBetween(
102 const base::Time& delete_begin, const base::Time& delete_end) = 0; 107 const base::Time& delete_begin, const base::Time& delete_end) = 0;
103 }; 108 };
104 109
105 } // namespace autofill 110 } // namespace autofill
106 111
107 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_H_ 112 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_H_
OLDNEW
« no previous file with comments | « chrome/utility/importer/firefox_importer.cc ('k') | components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698