Lines Matching refs:url
20 // ID of the url column in keywords.
27 void BindURLToStatement(const TemplateURL& url, sql::Statement* s) {
28 s->BindString(0, UTF16ToUTF8(url.short_name()));
29 s->BindString(1, UTF16ToUTF8(url.keyword()));
30 GURL favicon_url = url.GetFaviconURL();
35 url.GetFaviconURL()));
37 s->BindString(3, url.url() ? url.url()->url() : std::string());
38 s->BindInt(4, url.safe_for_autoreplace() ? 1 : 0);
39 if (!url.originating_url().is_valid()) {
43 url.originating_url()));
45 s->BindInt64(6, url.date_created().ToTimeT());
46 s->BindInt(7, url.usage_count());
47 s->BindString(8, JoinString(url.input_encodings(), ';'));
48 s->BindInt(9, url.show_in_default_list() ? 1 : 0);
49 s->BindString(10, url.suggestions_url() ? url.suggestions_url()->url() :
51 s->BindInt(11, url.prepopulate_id());
52 s->BindInt(12, url.autogenerate_keyword() ? 1 : 0);
53 s->BindInt(13, url.logo_id());
54 s->BindBool(14, url.created_by_policy());
55 s->BindString(15, url.instant_url() ? url.instant_url()->url() :
69 "url VARCHAR NOT NULL,"
93 bool KeywordTable::AddKeyword(const TemplateURL& url) {
94 DCHECK(url.id());
98 "(short_name, keyword, favicon_url, url, safe_for_autoreplace, "
108 BindURLToStatement(url, &s);
109 s.BindInt64(kUrlIdPosition, url.id());
131 "SELECT id, short_name, keyword, favicon_url, url, "
191 bool KeywordTable::UpdateKeyword(const TemplateURL& url) {
192 DCHECK(url.id());
196 "SET short_name=?, keyword=?, favicon_url=?, url=?, "
205 BindURLToStatement(url, &s);
206 s.BindInt64(kUrlIdPosition, url.id());
259 "url VARCHAR NOT NULL,"
277 "SELECT id, short_name, keyword, favicon_url, url, "