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

Side by Side Diff: chrome/browser/autofill/autofill_manager.h

Issue 11867025: Download autocheckout whitelist and enable autocheckout for whitelisted sites only. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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) 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 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 AutofillManager(content::WebContents* web_contents, 112 AutofillManager(content::WebContents* web_contents,
113 autofill::AutofillManagerDelegate* delegate); 113 autofill::AutofillManagerDelegate* delegate);
114 virtual ~AutofillManager(); 114 virtual ~AutofillManager();
115 115
116 // Test code should prefer to use this constructor. 116 // Test code should prefer to use this constructor.
117 AutofillManager(content::WebContents* web_contents, 117 AutofillManager(content::WebContents* web_contents,
118 autofill::AutofillManagerDelegate* delegate, 118 autofill::AutofillManagerDelegate* delegate,
119 PersonalDataManager* personal_data); 119 PersonalDataManager* personal_data);
120 120
121 // Returns true when the current tab's url is whitelisted for autocheckout.
122 bool IsAutocheckoutEnabled() const;
123
121 // Returns the value of the AutofillEnabled pref. 124 // Returns the value of the AutofillEnabled pref.
122 virtual bool IsAutofillEnabled() const; 125 virtual bool IsAutofillEnabled() const;
123 126
124 // Uploads the form data to the Autofill server. 127 // Uploads the form data to the Autofill server.
125 virtual void UploadFormData(const FormStructure& submitted_form); 128 virtual void UploadFormData(const FormStructure& submitted_form);
126 129
127 // Reset cache. 130 // Reset cache.
128 void Reset(); 131 void Reset();
129 132
130 // Informs the renderer of the current password generation state. This is a 133 // Informs the renderer of the current password generation state. This is a
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, 396 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest,
394 TestTabContentsWithExternalDelegate); 397 TestTabContentsWithExternalDelegate);
395 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, 398 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest,
396 UserHappinessFormLoadAndSubmission); 399 UserHappinessFormLoadAndSubmission);
397 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); 400 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction);
398 401
399 DISALLOW_COPY_AND_ASSIGN(AutofillManager); 402 DISALLOW_COPY_AND_ASSIGN(AutofillManager);
400 }; 403 };
401 404
402 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ 405 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698