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

Side by Side Diff: chrome/browser/webdata/autofill_change.h

Issue 12476031: Refactor notifications of chrome/browser/webdata (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase again Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_WEBDATA_AUTOFILL_CHANGE_H__ 5 #ifndef CHROME_BROWSER_WEBDATA_AUTOFILL_CHANGE_H__
6 #define CHROME_BROWSER_WEBDATA_AUTOFILL_CHANGE_H__ 6 #define CHROME_BROWSER_WEBDATA_AUTOFILL_CHANGE_H__
7 7
8 #include <vector>
9
8 #include "chrome/browser/webdata/autofill_entry.h" 10 #include "chrome/browser/webdata/autofill_entry.h"
9 11
10 class AutofillProfile; 12 class AutofillProfile;
11 class CreditCard; 13 class CreditCard;
12 14
13 // For classic Autofill form fields, the KeyType is AutofillKey. 15 // For classic Autofill form fields, the KeyType is AutofillKey.
14 // Autofill++ types such as AutofillProfile and CreditCard simply use an int. 16 // Autofill++ types such as AutofillProfile and CreditCard simply use an int.
15 template <typename KeyType> 17 template <typename KeyType>
16 class GenericAutofillChange { 18 class GenericAutofillChange {
17 public: 19 public:
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 virtual ~AutofillProfileChange(); 60 virtual ~AutofillProfileChange();
59 61
60 const AutofillProfile* profile() const { return profile_; } 62 const AutofillProfile* profile() const { return profile_; }
61 bool operator==(const AutofillProfileChange& change) const; 63 bool operator==(const AutofillProfileChange& change) const;
62 64
63 private: 65 private:
64 // Weak reference, can be NULL. 66 // Weak reference, can be NULL.
65 const AutofillProfile* profile_; 67 const AutofillProfile* profile_;
66 }; 68 };
67 69
70 typedef std::vector<AutofillChange> AutofillChangeList;
71
68 #endif // CHROME_BROWSER_WEBDATA_AUTOFILL_CHANGE_H__ 72 #endif // CHROME_BROWSER_WEBDATA_AUTOFILL_CHANGE_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698