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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_AUTOFILL_AUTOFILL_DOWNLOAD_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_DOWNLOAD_H_
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_DOWNLOAD_H_ 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_DOWNLOAD_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // |forms| - array of forms aggregated in this request. 63 // |forms| - array of forms aggregated in this request.
64 bool StartQueryRequest(const ScopedVector<FormStructure>& forms, 64 bool StartQueryRequest(const ScopedVector<FormStructure>& forms,
65 const AutoFillMetrics& metric_logger); 65 const AutoFillMetrics& metric_logger);
66 66
67 // Start upload request if necessary. The probability of request going 67 // Start upload request if necessary. The probability of request going
68 // over the wire are GetPositiveUploadRate() if it was matched by 68 // over the wire are GetPositiveUploadRate() if it was matched by
69 // AutoFill, GetNegativeUploadRate() otherwise. Observer will be called 69 // AutoFill, GetNegativeUploadRate() otherwise. Observer will be called
70 // even if there was no actual trip over the wire. 70 // even if there was no actual trip over the wire.
71 // |form| - form sent in this request. 71 // |form| - form sent in this request.
72 // |form_was_matched| - true if form was matched by the AutoFill. 72 // |form_was_matched| - true if form was matched by the AutoFill.
73 bool StartUploadRequest(const FormStructure& form, bool form_was_matched); 73 // |present_data| - hexadecimal representation of the bitfield of the data
74 // presence in user profile.
75 bool StartUploadRequest(const FormStructure& form, bool form_was_matched,
76 char const* present_data);
74 77
75 // Cancels pending request. 78 // Cancels pending request.
76 // |form_signature| - signature of the form being cancelled. Warning: 79 // |form_signature| - signature of the form being cancelled. Warning:
77 // for query request if more than one form sent in the request, all other 80 // for query request if more than one form sent in the request, all other
78 // forms will be cancelled as well. 81 // forms will be cancelled as well.
79 // |request_type| - type of the request. 82 // |request_type| - type of the request.
80 bool CancelRequest(const std::string& form_signature, 83 bool CancelRequest(const std::string& form_signature,
81 AutoFillRequestType request_type); 84 AutoFillRequestType request_type);
82 85
83 // Probability of the form upload. Between 0 (no upload) and 1 (upload all). 86 // Probability of the form upload. Between 0 (no upload) and 1 (upload all).
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 double positive_upload_rate_; 137 double positive_upload_rate_;
135 double negative_upload_rate_; 138 double negative_upload_rate_;
136 139
137 // Needed for unit-test. 140 // Needed for unit-test.
138 int fetcher_id_for_unittest_; 141 int fetcher_id_for_unittest_;
139 bool is_testing_; 142 bool is_testing_;
140 }; 143 };
141 144
142 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_DOWNLOAD_H_ 145 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_DOWNLOAD_H_
143 146
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autofill/autofill_download.cc » ('j') | chrome/browser/autofill/autofill_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698