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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 242 |
| 243 // Exposed for testing. |
| 244 void set_download_manager(AutofillDownloadManager* manager) { |
| 245 download_manager_.reset(manager); |
| 246 } |
| 247 |
243 private: | 248 private: |
244 // AutofillDownloadManager::Observer: | 249 // AutofillDownloadManager::Observer: |
245 void OnLoadedServerPredictions(const std::string& response_xml) override; | 250 void OnLoadedServerPredictions(const std::string& response_xml) override; |
246 | 251 |
247 // CardUnmaskDelegate: | 252 // CardUnmaskDelegate: |
248 void OnUnmaskResponse(const UnmaskResponse& response) override; | 253 void OnUnmaskResponse(const UnmaskResponse& response) override; |
249 void OnUnmaskPromptClosed() override; | 254 void OnUnmaskPromptClosed() override; |
250 | 255 |
251 // wallet::RealPanWalletClient::Delegate: | 256 // wallet::RealPanWalletClient::Delegate: |
252 IdentityProvider* GetIdentityProvider() override; | 257 IdentityProvider* GetIdentityProvider() override; |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 501 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
497 DontSaveCvcInAutocompleteHistory); | 502 DontSaveCvcInAutocompleteHistory); |
498 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSaveWalletCard); | 503 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, DontOfferToSaveWalletCard); |
499 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, FillInUpdatedExpirationDate); | 504 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, FillInUpdatedExpirationDate); |
500 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 505 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
501 }; | 506 }; |
502 | 507 |
503 } // namespace autofill | 508 } // namespace autofill |
504 | 509 |
505 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 510 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
OLD | NEW |