| 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 ScopedVector<FormStructure>* form_structures() { return &form_structures_; } | 216 ScopedVector<FormStructure>* form_structures() { return &form_structures_; } |
| 217 | 217 |
| 218 // Exposed for testing. | 218 // Exposed for testing. |
| 219 AutofillExternalDelegate* external_delegate() { | 219 AutofillExternalDelegate* external_delegate() { |
| 220 return external_delegate_; | 220 return external_delegate_; |
| 221 } | 221 } |
| 222 | 222 |
| 223 private: | 223 private: |
| 224 // AutofillDownloadManager::Observer: | 224 // AutofillDownloadManager::Observer: |
| 225 virtual void OnLoadedServerPredictions( | 225 virtual void OnLoadedServerPredictions( |
| 226 const std::string& response_xml) OVERRIDE; | 226 const std::string& response_xml) override; |
| 227 | 227 |
| 228 // Returns false if Autofill is disabled or if no Autofill data is available. | 228 // Returns false if Autofill is disabled or if no Autofill data is available. |
| 229 bool RefreshDataModels() const; | 229 bool RefreshDataModels() const; |
| 230 | 230 |
| 231 // Unpacks |unique_id| and fills |form_group| and |variant| with the | 231 // Unpacks |unique_id| and fills |form_group| and |variant| with the |
| 232 // appropriate data source and variant index. Sets |is_credit_card| to true | 232 // appropriate data source and variant index. Sets |is_credit_card| to true |
| 233 // if |data_model| points to a CreditCard data model, false if it's a | 233 // if |data_model| points to a CreditCard data model, false if it's a |
| 234 // profile data model. | 234 // profile data model. |
| 235 // Returns false if the unpacked id cannot be found. | 235 // Returns false if the unpacked id cannot be found. |
| 236 bool GetProfileOrCreditCard(int unique_id, | 236 bool GetProfileOrCreditCard(int unique_id, |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 UserHappinessFormLoadAndSubmission); | 380 UserHappinessFormLoadAndSubmission); |
| 381 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); | 381 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); |
| 382 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 382 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
| 383 FormSubmittedAutocompleteEnabled); | 383 FormSubmittedAutocompleteEnabled); |
| 384 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 384 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
| 385 }; | 385 }; |
| 386 | 386 |
| 387 } // namespace autofill | 387 } // namespace autofill |
| 388 | 388 |
| 389 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 389 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
| OLD | NEW |