Chromium Code Reviews| 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 232 void SplitFrontendID(int frontend_id, | 232 void SplitFrontendID(int frontend_id, |
| 233 std::string* cc_backend_id, | 233 std::string* cc_backend_id, |
| 234 std::string* profile_backend_id) const; | 234 std::string* profile_backend_id) const; |
| 235 | 235 |
| 236 ScopedVector<FormStructure>* form_structures() { return &form_structures_; } | 236 ScopedVector<FormStructure>* form_structures() { return &form_structures_; } |
| 237 | 237 |
| 238 // Exposed for testing. | 238 // Exposed for testing. |
| 239 AutofillExternalDelegate* external_delegate() { | 239 AutofillExternalDelegate* external_delegate() { |
| 240 return external_delegate_; | 240 return external_delegate_; |
| 241 } | 241 } |
| 242 void set_download_manager(AutofillDownloadManager* manager) { | |
|
Mathieu
2015/09/29 18:35:18
Went with this approach for testing, since the Aut
| |
| 243 download_manager_.reset(manager); | |
| 244 } | |
| 242 | 245 |
| 243 private: | 246 private: |
| 244 // AutofillDownloadManager::Observer: | 247 // AutofillDownloadManager::Observer: |
| 245 void OnLoadedServerPredictions(const std::string& response_xml) override; | 248 void OnLoadedServerPredictions(const std::string& response_xml) override; |
| 246 | 249 |
| 247 // CardUnmaskDelegate: | 250 // CardUnmaskDelegate: |
| 248 void OnUnmaskResponse(const UnmaskResponse& response) override; | 251 void OnUnmaskResponse(const UnmaskResponse& response) override; |
| 249 void OnUnmaskPromptClosed() override; | 252 void OnUnmaskPromptClosed() override; |
| 250 | 253 |
| 251 // wallet::RealPanWalletClient::Delegate: | 254 // wallet::RealPanWalletClient::Delegate: |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 496 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 499 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
| 497 DontSaveCvcInAutocompleteHistory); | 500 DontSaveCvcInAutocompleteHistory); |
| 498 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSaveWalletCard); | 501 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSaveWalletCard); |
| 499 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, FillInUpdatedExpirationDate); | 502 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, FillInUpdatedExpirationDate); |
| 500 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 503 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
| 501 }; | 504 }; |
| 502 | 505 |
| 503 } // namespace autofill | 506 } // namespace autofill |
| 504 | 507 |
| 505 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 508 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
| OLD | NEW |