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

Side by Side Diff: components/search_engines/template_url_data.h

Issue 426653002: Import keywords for search engines imported from Firefox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 6 years, 4 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 2014 The Chromium Authors. All rights reserved. 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 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_SEARCH_ENGINES_TEMPLATE_URL_DATA_H_ 5 #ifndef COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_DATA_H_
6 #define COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_DATA_H_ 6 #define COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_DATA_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 10 matching lines...) Expand all
21 ~TemplateURLData(); 21 ~TemplateURLData();
22 22
23 // A short description of the template. This is the name we show to the user 23 // A short description of the template. This is the name we show to the user
24 // in various places that use TemplateURLs. For example, the location bar 24 // in various places that use TemplateURLs. For example, the location bar
25 // shows this when the user selects a substituting match. 25 // shows this when the user selects a substituting match.
26 base::string16 short_name; 26 base::string16 short_name;
27 27
28 // The shortcut for this TemplateURL. |keyword| must be non-empty. 28 // The shortcut for this TemplateURL. |keyword| must be non-empty.
29 void SetKeyword(const base::string16& keyword); 29 void SetKeyword(const base::string16& keyword);
30 const base::string16& keyword() const { return keyword_; } 30 const base::string16& keyword() const { return keyword_; }
31 bool has_custom_keyword;
Peter Kasting 2014/07/29 18:33:31 I'd like to not introduce this to TemplateURLData.
Nikhil 2014/07/30 07:31:29 Done.
31 32
32 // The raw URL for the TemplateURL, which may not be valid as-is (e.g. because 33 // The raw URL for the TemplateURL, which may not be valid as-is (e.g. because
33 // it requires substitutions first). This must be non-empty. 34 // it requires substitutions first). This must be non-empty.
34 void SetURL(const std::string& url); 35 void SetURL(const std::string& url);
35 const std::string& url() const { return url_; } 36 const std::string& url() const { return url_; }
36 37
37 // Optional additional raw URLs. 38 // Optional additional raw URLs.
38 std::string suggestions_url; 39 std::string suggestions_url;
39 std::string instant_url; 40 std::string instant_url;
40 std::string image_url; 41 std::string image_url;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 std::string search_terms_replacement_key; 114 std::string search_terms_replacement_key;
114 115
115 private: 116 private:
116 // Private so we can enforce using the setters and thus enforce that these 117 // Private so we can enforce using the setters and thus enforce that these
117 // fields are never empty. 118 // fields are never empty.
118 base::string16 keyword_; 119 base::string16 keyword_;
119 std::string url_; 120 std::string url_;
120 }; 121 };
121 122
122 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_DATA_H_ 123 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698