| OLD | NEW |
| 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_AUTOFILL_MANAGER_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
| 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 // CardUnmaskDelegate: | 231 // CardUnmaskDelegate: |
| 232 void OnUnmaskResponse(const base::string16& cvc, | 232 void OnUnmaskResponse(const base::string16& cvc, |
| 233 const base::string16& exp_month, | 233 const base::string16& exp_month, |
| 234 const base::string16& exp_year) override; | 234 const base::string16& exp_year) override; |
| 235 void OnUnmaskPromptClosed() override; | 235 void OnUnmaskPromptClosed() override; |
| 236 | 236 |
| 237 // wallet::RealPanWalletClient::Delegate: | 237 // wallet::RealPanWalletClient::Delegate: |
| 238 IdentityProvider* GetIdentityProvider() override; | 238 IdentityProvider* GetIdentityProvider() override; |
| 239 void OnDidGetRealPan(const std::string& real_pan) override; | 239 void OnDidGetRealPan(const std::string& real_pan) override; |
| 240 | 240 |
| 241 // A toy method called when the (fake) unmasking process has finished. | |
| 242 void OnUnmaskVerificationResult(bool success); | |
| 243 | |
| 244 // Returns false if Autofill is disabled or if no Autofill data is available. | 241 // Returns false if Autofill is disabled or if no Autofill data is available. |
| 245 bool RefreshDataModels() const; | 242 bool RefreshDataModels() const; |
| 246 | 243 |
| 247 // Unpacks |unique_id| and fills |form_group| and |variant| with the | 244 // Unpacks |unique_id| and fills |form_group| and |variant| with the |
| 248 // appropriate data source and variant index. Sets |is_credit_card| to true | 245 // appropriate data source and variant index. Sets |is_credit_card| to true |
| 249 // if |data_model| points to a CreditCard data model, false if it's a | 246 // if |data_model| points to a CreditCard data model, false if it's a |
| 250 // profile data model. | 247 // profile data model. |
| 251 // Returns false if the unpacked id cannot be found. | 248 // Returns false if the unpacked id cannot be found. |
| 252 bool GetProfileOrCreditCard(int unique_id, | 249 bool GetProfileOrCreditCard(int unique_id, |
| 253 const AutofillDataModel** data_model, | 250 const AutofillDataModel** data_model, |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 418 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
| 422 AutocompleteOffRespected); | 419 AutocompleteOffRespected); |
| 423 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 420 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
| 424 AutocompleteOffRespectedWithFlag); | 421 AutocompleteOffRespectedWithFlag); |
| 425 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 422 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
| 426 }; | 423 }; |
| 427 | 424 |
| 428 } // namespace autofill | 425 } // namespace autofill |
| 429 | 426 |
| 430 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 427 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
| OLD | NEW |