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

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

Issue 13973004: Convert string16 -> base::string16 in components/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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) 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 COMPONENTS_WEBDATA_AUTOFILL_AUTOFILL_ENTRY_H__ 5 #ifndef COMPONENTS_WEBDATA_AUTOFILL_AUTOFILL_ENTRY_H__
6 #define COMPONENTS_WEBDATA_AUTOFILL_AUTOFILL_ENTRY_H__ 6 #define COMPONENTS_WEBDATA_AUTOFILL_AUTOFILL_ENTRY_H__
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/gtest_prod_util.h" 11 #include "base/gtest_prod_util.h"
12 #include "base/string16.h" 12 #include "base/string16.h"
13 #include "base/time.h" 13 #include "base/time.h"
14 14
15 class AutofillKey { 15 class AutofillKey {
16 public: 16 public:
17 AutofillKey(); 17 AutofillKey();
18 AutofillKey(const string16& name, const string16& value); 18 AutofillKey(const base::string16& name, const base::string16& value);
19 AutofillKey(const char* name, const char* value); 19 AutofillKey(const char* name, const char* value);
20 AutofillKey(const AutofillKey& key); 20 AutofillKey(const AutofillKey& key);
21 virtual ~AutofillKey(); 21 virtual ~AutofillKey();
22 22
23 const string16& name() const { return name_; } 23 const base::string16& name() const { return name_; }
24 const string16& value() const { return value_; } 24 const base::string16& value() const { return value_; }
25 25
26 bool operator==(const AutofillKey& key) const; 26 bool operator==(const AutofillKey& key) const;
27 bool operator<(const AutofillKey& key) const; 27 bool operator<(const AutofillKey& key) const;
28 28
29 private: 29 private:
30 string16 name_; 30 base::string16 name_;
31 string16 value_; 31 base::string16 value_;
32 }; 32 };
33 33
34 class AutofillEntry { 34 class AutofillEntry {
35 public: 35 public:
36 AutofillEntry(const AutofillKey& key, 36 AutofillEntry(const AutofillKey& key,
37 const std::vector<base::Time>& timestamps); 37 const std::vector<base::Time>& timestamps);
38 ~AutofillEntry(); 38 ~AutofillEntry();
39 39
40 const AutofillKey& key() const { return key_; } 40 const AutofillKey& key() const { return key_; }
41 const std::vector<base::Time>& timestamps() const { return timestamps_; } 41 const std::vector<base::Time>& timestamps() const { return timestamps_; }
(...skipping 20 matching lines...) Expand all
62 // |source| is expected to be sorted from oldest to newest. 62 // |source| is expected to be sorted from oldest to newest.
63 static bool CullTimeStamps(const std::vector<base::Time>& source, 63 static bool CullTimeStamps(const std::vector<base::Time>& source,
64 std::vector<base::Time>* result); 64 std::vector<base::Time>* result);
65 65
66 AutofillKey key_; 66 AutofillKey key_;
67 std::vector<base::Time> timestamps_; 67 std::vector<base::Time> timestamps_;
68 bool timestamps_culled_; 68 bool timestamps_culled_;
69 }; 69 };
70 70
71 #endif // COMPONENTS_WEBDATA_AUTOFILL_AUTOFILL_ENTRY_H__ 71 #endif // COMPONENTS_WEBDATA_AUTOFILL_AUTOFILL_ENTRY_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698