/external/chromium/chrome/browser/ui/omnibox/ |
location_bar_util.cc | 10 #include "chrome/browser/search_engines/template_url.h" 20 const TemplateURL* template_url = local 23 if (template_url) 24 return UTF16ToWideHack(template_url->AdjustedShortNameForLocaleDirection());
|
/external/chromium/chrome/browser/ui/views/ |
dialog_stubs_gtk.cc | 33 const TemplateURL* template_url, 36 new EditSearchEngineDialog(GTK_WINDOW(parent), template_url, NULL, profile); local
|
/external/chromium/chrome/browser/ui/search_engines/ |
edit_search_engine_controller.h | 20 // edits. NOTE: |template_url| is the value supplied to 24 virtual void OnEditedKeyword(const TemplateURL* template_url, 37 // The |template_url| and/or |edit_keyword_delegate| may be NULL. 39 const TemplateURL* template_url, 68 const TemplateURL* template_url() const { return template_url_; } function in class:EditSearchEngineController
|
keyword_editor_controller.cc | 11 #include "chrome/browser/search_engines/template_url.h" 39 TemplateURL* template_url = new TemplateURL(); local 40 template_url->set_short_name(title); 41 template_url->set_keyword(keyword); 42 template_url->SetURL(url, 0, 0); 50 table_model_->Add(new_index, template_url); 55 void KeywordEditorController::ModifyTemplateURL(const TemplateURL* template_url, 59 const int index = table_model_->IndexOfTemplateURL(template_url); 67 if (template_url->short_name() == title && 68 template_url->keyword() == keyword & [all...] |
template_url_table_model.cc | 13 #include "chrome/browser/search_engines/template_url.h" 38 const TemplateURL& template_url) 39 : template_url_(template_url), 48 const TemplateURL& template_url() { function in class:ModelEntry 82 GURL favicon_url = template_url().GetFaviconURL(); 146 const TemplateURL& template_url = *(*i); local 149 if (template_url.show_in_default_list()) 150 entries_.push_back(new ModelEntry(this, template_url)); 158 const TemplateURL* template_url = *i; local 161 if (!template_url->show_in_default_list() & 241 const TemplateURL* template_url = &GetTemplateURL(index); local 272 const TemplateURL* template_url = &GetTemplateURL(index); local [all...] |
/external/chromium/chrome/browser/autocomplete/ |
keyword_provider_unittest.cc | 9 #include "chrome/browser/search_engines/template_url.h" 204 TemplateURL* template_url = new TemplateURL(); local 207 template_url->SetURL(url, 0, 0); 208 template_url->set_keyword(keyword); 209 template_url->set_short_name(ASCIIToUTF16("Test")); 210 model_->Add(template_url); 211 ASSERT_TRUE(template_url == model_->GetTemplateURLForKeyword(keyword));
|
autocomplete_popup_model.cc | 18 #include "chrome/browser/search_engines/template_url.h" 134 if (TemplateURL::SupportsReplacement(match.template_url)) { 135 keyword->assign(match.template_url->keyword()); 158 const TemplateURL* const template_url = local 160 if (!TemplateURL::SupportsReplacement(template_url)) 164 if (template_url->IsExtensionKeyword()) { 166 GetExtensionById(template_url->GetExtensionId(), false); 227 if (!match.template_url || !match.template_url->IsExtensionKeyword()) 231 match.template_url->GetExtensionId()) [all...] |
autocomplete_match.h | 182 const TemplateURL* template_url; member in struct:AutocompleteMatch
|
keyword_provider.cc | 16 #include "chrome/browser/search_engines/template_url.h" 124 const TemplateURL* template_url = model->GetTemplateURLForKeyword(keyword); local 125 return TemplateURL::SupportsReplacement(template_url) ? template_url : NULL; 186 const TemplateURL* template_url(model->GetTemplateURLForKeyword(*i)); 189 template_url->IsExtensionKeyword()) { 192 template_url->GetExtensionId(), false); 212 const TemplateURL* template_url(model->GetTemplateURLForKeyword(keyword)); 214 // typed a scheme, that scheme matches the one in |template_url|. 221 template_url->IsExtensionKeyword()) [all...] |
autocomplete_edit.cc | 29 #include "chrome/browser/search_engines/template_url.h" 504 const TemplateURL* const template_url = local 509 if (template_url && template_url->IsExtensionKeyword()) { 518 size_t prefix_length = match.template_url->keyword().size() + 1; 520 profile_, match.template_url->GetExtensionId(), 526 if (template_url) { 528 template_url_model->IncrementUsageCount(template_url); 532 // search engine, if applicable; see comments in template_url.h. [all...] |
autocomplete_edit_view_browsertest.cc | 21 #include "chrome/browser/search_engines/template_url.h" 277 TemplateURL* template_url = new TemplateURL(); local 278 template_url->SetURL(kSearchURL, 0, 0); 279 template_url->set_keyword(UTF8ToUTF16(kSearchKeyword)); 280 template_url->set_short_name(UTF8ToUTF16(kSearchShortName)); 282 model->Add(template_url); 283 model->SetDefaultSearchProvider(template_url); 867 TemplateURL* template_url = new TemplateURL(); local [all...] |
/external/chromium/chrome/browser/search_engines/ |
util.cc | 11 #include "chrome/browser/search_engines/template_url.h" 136 const TemplateURL* template_url = i->second; local 137 if ((template_url->safe_for_autoreplace()) && 138 (template_url != *default_search_provider)) { 141 template_url); 145 service->RemoveKeyword(*template_url); 146 delete template_url;
|
template_url_fetcher.cc | 12 #include "chrome/browser/search_engines/template_url.h" 295 const TemplateURL* template_url = local 297 if (template_url && (!template_url->safe_for_autoreplace() || 298 template_url->originating_url() == osdd_url)) {
|
search_provider_install_data.cc | 15 #include "chrome/browser/search_engines/template_url.h" 150 // It is ok if |template_url| is NULL. 152 const TemplateURL* template_url, 155 return template_url && requested_origin == 157 template_url, 223 const TemplateURL* template_url = *i; local 224 if (IsSameOrigin(requested_origin, template_url, search_terms_data)) 270 void SearchProviderInstallData::SetDefault(const TemplateURL* template_url) { 273 if (!template_url) { 280 template_url, search_terms_data)) [all...] |
template_url_model_unittest.cc | 16 #include "chrome/browser/search_engines/template_url.h" 128 TemplateURL* template_url = new TemplateURL(); local 129 template_url->SetURL(url, 0, 0); 130 template_url->SetSuggestionsURL(suggest_url, 0, 0); 131 template_url->SetFaviconURL(GURL(favicon_url)); 132 template_url->set_keyword(UTF8ToUTF16(keyword)); 133 template_url->set_autogenerate_keyword(autogenerate_keyword); 134 template_url->set_short_name(UTF8ToUTF16(short_name)); 137 template_url->set_input_encodings(encodings_vector); 138 template_url->set_date_created(created_date) 702 TemplateURL* template_url = new TemplateURL(); local [all...] |
template_url_model.cc | 24 #include "chrome/browser/search_engines/template_url.h" 62 TemplateURL* template_url = *i; local 63 if (template_url->created_by_policy()) { 65 (*default_search_provider)->id() == template_url->id()) 68 delete template_url; 289 void TemplateURLModel::Add(TemplateURL* template_url) { 290 AddNoNotify(template_url); 294 void TemplateURLModel::Remove(const TemplateURL* template_url) { 295 RemoveNoNotify(template_url); 335 scoped_ptr<TemplateURL> template_url(new TemplateURL) 553 const TemplateURL* template_url = GetTemplateURLForKeyword(keyword); local 659 TemplateURL* template_url = new TemplateURL(); local [all...] |
template_url_parser.cc | 16 #include "chrome/browser/search_engines/template_url.h" 139 TemplateURL* template_url() { return url_; } function in class:__anon3412::ParsingContext 294 TemplateURL* turl = context->template_url(); 296 std::string template_url; local 311 template_url = XMLCharToString(value); 324 turl->SetURL(template_url, index_offset, page_offset); 329 turl->SetSuggestionsURL(template_url, index_offset, page_offset); 395 TemplateURL* t_url = context->template_url(); 479 context->template_url()->set_short_name(context->GetString()); 482 context->template_url()->set_description(context->GetString()) [all...] |
/external/chromium/chrome/browser/webdata/ |
keyword_table_unittest.cc | 11 #include "chrome/browser/search_engines/template_url.h" 64 TemplateURL template_url; local 65 template_url.set_short_name(ASCIIToUTF16("short_name")); 66 template_url.set_keyword(ASCIIToUTF16("keyword")); 69 template_url.SetFaviconURL(favicon_url); 70 template_url.SetURL("http://url/", 0, 0); 71 template_url.set_safe_for_autoreplace(true); 73 template_url.set_date_created(created_time); 74 template_url.set_show_in_default_list(true); 75 template_url.set_originating_url(originating_url) 157 TemplateURL template_url; local 227 TemplateURL template_url; local [all...] |
keyword_table.cc | 13 #include "chrome/browser/search_engines/template_url.h" 142 TemplateURL* template_url = new TemplateURL(); local 143 template_url->set_id(s.ColumnInt64(0)); 148 template_url->set_short_name(UTF8ToUTF16(tmp)); 150 template_url->set_keyword(UTF8ToUTF16(s.ColumnString(2))); 154 template_url->SetFaviconURL(GURL(tmp)); 156 template_url->SetURL(s.ColumnString(4), 0, 0); 158 template_url->set_safe_for_autoreplace(s.ColumnInt(5) == 1); 162 template_url->set_originating_url(GURL(tmp)); 164 template_url->set_date_created(Time::FromTimeT(s.ColumnInt64(7))) [all...] |
/external/chromium/chrome/browser/ui/webui/options/ |
search_engine_manager_handler.cc | 12 #include "chrome/browser/search_engines/template_url.h" 147 const TemplateURL* template_url = list_controller_->GetTemplateURL(index); local 150 dict->SetString("name", template_url->short_name()); 155 dict->SetString("url", template_url->url()->DisplayURL()); 156 dict->SetBoolean("urlLocked", template_url->prepopulate_id() > 0); 157 GURL icon_url = template_url->GetFaviconURL(); 162 if (list_controller_->CanRemove(template_url)) 164 if (list_controller_->CanMakeDefault(template_url)) 215 const TemplateURL* template_url, 219 if (template_url) { [all...] |
/external/chromium/chrome/browser/importer/ |
firefox_importer_utils.cc | 18 #include "chrome/browser/search_engines/template_url.h" 200 TemplateURL* template_url = new TemplateURL(); local 204 content.length(), ¶m_filter, template_url) && 205 template_url->url()) { 206 std::string url = template_url->url()->url(); 219 template_url->set_keyword( 221 template_url->set_logo_id( 223 template_url->set_show_in_default_list(true); 224 search_engine_for_url[url] = template_url; 226 default_turl = template_url; [all...] |
ie_importer.cc | 33 #include "chrome/browser/search_engines/template_url.h" 402 TemplateURL* template_url = local 404 if (!template_url) { 406 template_url = new TemplateURL(); 407 template_url->set_short_name(name); 408 template_url->SetURL(url, 0, 0); 411 template_url->set_keyword(TemplateURLModel::GenerateKeyword(gurl, 413 template_url->set_logo_id( 415 template_url->set_show_in_default_list(true); 416 search_engines_map[url] = template_url; [all...] |
/external/chromium/chrome/browser/instant/ |
instant_browsertest.cc | 15 #include "chrome/browser/search_engines/template_url.h" 58 TemplateURL* template_url = new TemplateURL(); local 65 template_url->SetURL(url, 0, 0); 66 template_url->SetInstantURL(url, 0, 0); 67 template_url->set_keyword(ASCIIToUTF16("foo")); 68 template_url->set_short_name(ASCIIToUTF16("foo")); 70 model->Add(template_url); 71 model->SetDefaultSearchProvider(template_url); [all...] |
instant_controller.cc | 19 #include "chrome/browser/search_engines/template_url.h" 152 const TemplateURL* template_url = NULL; local 160 if (!ShouldShowPreviewFor(match, &template_url)) { 173 TemplateURLID template_url_id = template_url ? template_url->id() : 0; 178 UpdateLoader(template_url, match.destination_url, match.transition, 595 void InstantController::UpdateLoader(const TemplateURL* template_url, 604 TemplateURLID template_url_id = template_url ? template_url->id() : 0; 609 if (new_loader->Update(tab_contents_, template_url, url, transition_type 677 const TemplateURL* template_url = match.template_url; local [all...] |
/external/chromium/chrome/browser/ui/views/location_bar/ |
location_bar_view.cc | 22 #include "chrome/browser/search_engines/template_url.h" 543 const TemplateURL* template_url = local 545 if (template_url && template_url->IsExtensionKeyword()) { 547 GetOmniboxIcon(template_url->GetExtensionId()); [all...] |