blob: ea1684694f0e4ff720caddd27b5251d0e45190e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_WEBDATA_AUTOFILL_CHANGE_H__
#define CHROME_BROWSER_WEBDATA_AUTOFILL_CHANGE_H__
#include "chrome/browser/webdata/autofill_entry.h"
class AutofillChange {
public:
typedef enum {
ADD,
UPDATE,
REMOVE
} Type;
AutofillChange(Type type, const AutofillKey& key)
: type_(type),
key_(key) {}
virtual ~AutofillChange() {}
Type type() const { return type_; }
const AutofillKey& key() const { return key_; }
bool operator==(const AutofillChange& change) const;
private:
Type type_;
AutofillKey key_;
};
#endif // CHROME_BROWSER_WEBDATA_AUTOFILL_CHANGE_H__
|