Home | History | Annotate | Download | only in importer

Lines Matching refs:TemplateURL

156 typedef std::map<std::string, const TemplateURL*> HostPathMap;
164 // Builds the key to use in HostPathMap for the specified TemplateURL. Returns
165 // an empty string if a host+path can't be generated for the TemplateURL.
166 // If an empty string is returned, the TemplateURL should not be added to
170 // from the raw TemplateURL string. Use a value of true for |try_url_if_invalid|
176 // the TemplateURL is invalid.
177 static std::string BuildHostPathKey(const TemplateURL* t_url,
193 // Builds a set that contains an entry of the host+path for each TemplateURL in
197 std::vector<const TemplateURL*> template_urls = model.GetTemplateURLs();
201 const TemplateURL* existing_turl = (*host_path_map)[host_path];
211 } // else case, TemplateURL doesn't have a search url, doesn't support
216 void ProfileWriter::AddKeywords(const std::vector<TemplateURL*>& template_urls,
224 for (std::vector<TemplateURL*>::const_iterator i = template_urls.begin();
226 TemplateURL* t_url = *i;
232 // TemplateURL with this keyword, don't import it again.
233 const TemplateURL* turl_with_keyword =
251 const TemplateURL* turl_with_host_path =
263 if (default_keyword && TemplateURL::SupportsReplacement(t_url))