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

Unified Diff: chrome/browser/autofill/autofill_manager.h

Issue 6213002: Propagate correct data to the Toolbar servers (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autofill/autofill_manager.h
===================================================================
--- chrome/browser/autofill/autofill_manager.h (revision 71339)
+++ chrome/browser/autofill/autofill_manager.h (working copy)
@@ -67,15 +67,22 @@
// Returns the value of the AutoFillEnabled pref.
virtual bool IsAutoFillEnabled() const;
- // Handles the form data submitted by the user.
- void HandleSubmit();
+ // Handles the form data submitted by the user. |data_present| indicates
+ // bitfield of the fields that we autofilled.
Ilya Sherman 2011/01/13 23:44:37 Looks to me like |data_present| indicates fields t
GeorgeY 2011/01/18 21:04:56 I think it does. It would mean that UNKNOWN fields
+ void HandleSubmit(std::string const& data_present);
// Uploads the form data to the AutoFill server.
- void UploadFormData();
+ void UploadFormData(std::string const& data_present);
// Reset cache.
void Reset();
+ // Set |field_type| presence bit in the |bitfield|.
+ void SetPresenceBit(AutoFillFieldType field_type,
+ std::vector<uint8>* bitfield);
+ // Converts |bitfield| to string for uploading.
+ std::string ConvertPresenceBitsToString(std::vector<uint8> const& bitfield);
Ilya Sherman 2011/01/13 23:44:37 nit: I think these should live in autofill_downloa
GeorgeY 2011/01/18 21:04:56 np. done.
+
protected:
// For tests.
AutoFillManager();
@@ -173,8 +180,9 @@
void ParseForms(const std::vector<webkit_glue::FormData>& forms);
// Uses existing personal data to determine possible field types for the
- // |upload_form_structure_|.
- void DeterminePossibleFieldTypesForUpload(
+ // |upload_form_structure_|. Returns string representation of the bitfield of
+ // all of the fields types that we will send information for the form.
+ std::string DeterminePossibleFieldTypesForUpload(
const FormStructure* cached_upload_form_structure);
// The TabContents hosting this AutoFillManager.
@@ -211,6 +219,9 @@
// Deletes itself when closed.
AutoFillCCInfoBarDelegate* cc_infobar_;
+ // Bitfield that indicates which fields were autofilled for last Credit Card.
+ std::string data_autofilled_;
+
// GUID to ID mapping. We keep two maps to convert back and forth.
std::map<std::string, int> guid_id_map_;
std::map<int, std::string> id_guid_map_;

Powered by Google App Engine
This is Rietveld 408576698