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

Side by Side Diff: components/autofill/core/browser/webdata/autofill_entry.h

Issue 2646783002: Fixed synchronization autocomplete unrecoverable error. (Closed)
Patch Set: Added const for local variables. Created 3 years, 11 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_WEBDATA_AUTOFILL_ENTRY_H__ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_ENTRY_H__
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_ENTRY_H__ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_ENTRY_H__
7 7
8 #include <string>
9
8 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
9 #include "base/time/time.h" 11 #include "base/time/time.h"
10 12
11 namespace autofill { 13 namespace autofill {
12 14
13 class AutofillKey { 15 class AutofillKey {
14 public: 16 public:
15 AutofillKey(); 17 AutofillKey();
16 AutofillKey(const base::string16& name, const base::string16& value); 18 AutofillKey(const base::string16& name, const base::string16& value);
17 AutofillKey(const char* name, const char* value); 19 AutofillKey(const std::string& name, const std::string& value);
18 AutofillKey(const AutofillKey& key); 20 AutofillKey(const AutofillKey& key);
19 virtual ~AutofillKey(); 21 virtual ~AutofillKey();
20 22
21 const base::string16& name() const { return name_; } 23 const base::string16& name() const { return name_; }
22 const base::string16& value() const { return value_; } 24 const base::string16& value() const { return value_; }
23 25
24 bool operator==(const AutofillKey& key) const; 26 bool operator==(const AutofillKey& key) const;
25 bool operator<(const AutofillKey& key) const; 27 bool operator<(const AutofillKey& key) const;
26 28
27 private: 29 private:
(...skipping 19 matching lines...) Expand all
47 49
48 private: 50 private:
49 AutofillKey key_; 51 AutofillKey key_;
50 base::Time date_created_; 52 base::Time date_created_;
51 base::Time date_last_used_; 53 base::Time date_last_used_;
52 }; 54 };
53 55
54 } // namespace autofill 56 } // namespace autofill
55 57
56 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_ENTRY_H__ 58 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_ENTRY_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698