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

Unified Diff: chrome/browser/autofill/autofill_download.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_download.h
===================================================================
--- chrome/browser/autofill/autofill_download.h (revision 71495)
+++ chrome/browser/autofill/autofill_download.h (working copy)
@@ -92,6 +92,13 @@
void SetPositiveUploadRate(double rate);
void SetNegativeUploadRate(double rate);
+ // Clears and re-initializes the |presence_bitfield_| with 0s.
+ void ClearPresence();
+ // Set |field_type| presence bit in the |presence_bitfield_|.
+ void SetPresenceBit(AutoFillFieldType field_type);
+ // Converts |presence_bitfield_| to string for uploading.
+ std::string ConvertPresenceBitsToString();
+
private:
friend class AutoFillDownloadTestHelper; // unit-test.
@@ -123,6 +130,8 @@
std::map<URLFetcher*, FormRequestData> url_fetchers_;
AutoFillDownloadManager::Observer *observer_;
+ std::vector<uint8> presence_bitfield_;
dhollowa 2011/01/18 22:11:40 I'm wondering why we need to store this. The |for
+
// Time when next query/upload requests are allowed. If 50x HTTP received,
// exponential back off is initiated, so this times will be in the future
// for awhile.
« no previous file with comments | « no previous file | chrome/browser/autofill/autofill_download.cc » ('j') | chrome/browser/autofill/autofill_manager.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698