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

Side by Side Diff: components/autofill/core/browser/autofill_manager.h

Issue 1377923002: [Autofill] Only query for newly parsed forms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_download_manager.h ('k') | components/autofill/core/browser/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698