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

Side by Side Diff: chrome/browser/autofill/autofill_manager.h

Issue 10073018: Add Delete Support to New Autofill UI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 8 years, 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 virtual void OnFillAutofillFormData(int query_id, 85 virtual void OnFillAutofillFormData(int query_id,
86 const webkit::forms::FormData& form, 86 const webkit::forms::FormData& form,
87 const webkit::forms::FormField& field, 87 const webkit::forms::FormField& field,
88 int unique_id); 88 int unique_id);
89 void OnDidShowAutofillSuggestions(bool is_new_popup); 89 void OnDidShowAutofillSuggestions(bool is_new_popup);
90 void OnDidFillAutofillFormData(const base::TimeTicks& timestamp); 90 void OnDidFillAutofillFormData(const base::TimeTicks& timestamp);
91 void OnShowAutofillDialog(); 91 void OnShowAutofillDialog();
92 void OnDidPreviewAutofillFormData(); 92 void OnDidPreviewAutofillFormData();
93 void OnShowPasswordGenerationPopup(const gfx::Rect& bounds); 93 void OnShowPasswordGenerationPopup(const gfx::Rect& bounds);
94 94
95 // Remove the credit card or Autofill profile that matches |unique_id|
96 // from the database.
97 void RemoveAutofillProfileOrCreditCard(int unique_id);
98
95 protected: 99 protected:
96 // Only test code should subclass AutofillManager. 100 // Only test code should subclass AutofillManager.
97 friend class base::RefCounted<AutofillManager>; 101 friend class base::RefCounted<AutofillManager>;
98 virtual ~AutofillManager(); 102 virtual ~AutofillManager();
99 103
100 // The string/int pair is composed of the guid string and variant index 104 // The string/int pair is composed of the guid string and variant index
101 // respectively. The variant index is an index into the multi-valued item 105 // respectively. The variant index is an index into the multi-valued item
102 // (where applicable). 106 // (where applicable).
103 typedef std::pair<std::string, size_t> GUIDPair; 107 typedef std::pair<std::string, size_t> GUIDPair;
104 108
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 TestTabContentsWithExternalDelegate); 379 TestTabContentsWithExternalDelegate);
376 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, 380 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest,
377 UserHappinessFormLoadAndSubmission); 381 UserHappinessFormLoadAndSubmission);
378 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); 382 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction);
379 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FormFillDuration); 383 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FormFillDuration);
380 384
381 DISALLOW_COPY_AND_ASSIGN(AutofillManager); 385 DISALLOW_COPY_AND_ASSIGN(AutofillManager);
382 }; 386 };
383 387
384 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ 388 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_external_delegate_unittest.cc ('k') | chrome/browser/autofill/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698