1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_SUGGESTION_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_SUGGESTION_H_
10 #include "base/memory/scoped_ptr.h"
11 #include "base/strings/string16.h"
15 class AutofillProfile
;
21 PREFIX_MATCH
, // for prefix matched suggestions;
22 SUBSTRING_MATCH
// for substring matched suggestions;
27 // Copy constructor for STL containers.
28 Suggestion(const Suggestion
& other
);
30 explicit Suggestion(const base::string16
& value
);
32 // Constructor for unit tests. It will convert the strings from UTF-8 to
34 Suggestion(const std::string
& value
,
35 const std::string
& label
,
36 const std::string
& icon
,
41 // GUID generated by the backend layer. This identifies the exact autofill
42 // profile that generated this suggestion.
43 std::string backend_id
;
45 // ID for the frontend to use in identifying the particular result. Positive
46 // values are sent over IPC to identify the item selected. Negative values
47 // (see popup_item_ids.h) have special built-in meanings. Default initialized
57 } // namespace autofill
59 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_SUGGESTION_H_