Searched refs:template_url (Results 1 - 25 of 81) sorted by relevance

1234

/external/chromium_org/chrome/browser/profile_resetter/
H A Dautomatic_profile_resetter_delegate.cc43 const TemplateURL* template_url) {
51 tree->SetString("name", template_url->short_name());
52 tree->SetString("short_name", template_url->short_name());
53 tree->SetString("keyword", template_url->keyword());
54 tree->SetString("search_url", template_url->url());
55 tree->SetString("url", template_url->url());
56 tree->SetString("suggestions_url", template_url->suggestions_url());
57 tree->SetString("instant_url", template_url->instant_url());
58 tree->SetString("image_url", template_url->image_url());
59 tree->SetString("new_tab_url", template_url
42 BuildSubTreeFromTemplateURL( const TemplateURL* template_url) argument
[all...]
/external/chromium_org/components/search_engines/
H A Dsearch_host_to_urls_map.cc8 #include "components/search_engines/template_url.h"
25 void SearchHostToURLsMap::Add(TemplateURL* template_url, argument
28 DCHECK(template_url);
30 const GURL url(template_url->GenerateSearchURL(search_terms_data));
34 host_to_urls_map_[url.host()].insert(template_url);
37 void SearchHostToURLsMap::Remove(TemplateURL* template_url) { argument
39 DCHECK(template_url);
43 TemplateURLSet::iterator url_set_iterator = i->second.find(template_url);
H A Dsearch_host_to_urls_map.h29 // Adds a new TemplateURL to the map. Since |template_url| is owned
31 void Add(TemplateURL* template_url,
35 void Remove(TemplateURL* template_url);
H A Dtemplate_url_service_client.h37 virtual void RestoreExtensionInfoIfNecessary(TemplateURL* template_url) = 0;
H A Dtemplate_url_service.cc28 #include "components/search_engines/template_url.h"
540 bool TemplateURLService::Add(TemplateURL* template_url) { argument
542 if (!AddNoNotify(template_url, true))
548 void TemplateURLService::AddWithOverrides(TemplateURL* template_url, argument
554 template_url->data_.short_name = short_name;
555 template_url->data_.SetKeyword(keyword);
556 template_url->SetURL(url);
557 Add(template_url);
561 TemplateURL* template_url,
564 DCHECK(template_url);
560 AddExtensionControlledTURL( TemplateURL* template_url, scoped_ptr<TemplateURL::AssociatedExtensionInfo> info) argument
581 Remove(TemplateURL* template_url) argument
901 const TemplateURL* template_url = GetTemplateURLForKeyword(keyword); local
1455 TemplateURL* template_url = new TemplateURL(data); local
1469 RemoveFromMaps(TemplateURL* template_url) argument
1506 AddToMaps(TemplateURL* template_url) argument
1691 UpdateTemplateURLIfPrepopulated( TemplateURL* template_url, PrefService* prefs) argument
1942 AddNoNotify(TemplateURL* template_url, bool newly_adding) argument
2008 RemoveNoNotify(TemplateURL* template_url) argument
2083 TemplateURL* template_url = *i; local
2288 TemplateURL* template_url = *i; local
[all...]
/external/chromium_org/chrome/browser/ui/search_engines/
H A Dedit_search_engine_controller.h19 // edits. NOTE: |template_url| is the value supplied to
23 virtual void OnEditedKeyword(TemplateURL* template_url,
36 // The |template_url| and/or |edit_keyword_delegate| may be NULL.
38 TemplateURL* template_url,
67 const TemplateURL* template_url() const { return template_url_; } function in class:EditSearchEngineController
H A Dtemplate_url_table_model.cc13 #include "components/search_engines/template_url.h"
36 ModelEntry(TemplateURLTableModel* model, TemplateURL* template_url) argument
37 : template_url_(template_url),
46 TemplateURL* template_url() { function in class:TemplateURLTableModel::ModelEntry
77 GURL favicon_url = template_url()->favicon_url();
145 TemplateURL* template_url = *i; local
148 if (template_url->show_in_default_list())
149 default_entries.push_back(new ModelEntry(this, template_url));
150 else if (template_url->GetType() == TemplateURL::OMNIBOX_API_EXTENSION)
151 extension_entries.push_back(new ModelEntry(this, template_url));
247 TemplateURL* template_url = GetTemplateURL(index); local
281 TemplateURL* template_url = GetTemplateURL(index); local
304 IndexOfTemplateURL( const TemplateURL* template_url) argument
[all...]
H A Dsearch_engine_tab_helper_delegate.h20 // |template_url|. Takes ownership of |template_url|.
21 virtual void ConfirmAddSearchProvider(TemplateURL* template_url,
H A Dkeyword_editor_controller.cc12 #include "components/search_engines/template_url.h"
41 void KeywordEditorController::ModifyTemplateURL(TemplateURL* template_url, argument
46 const int index = table_model_->IndexOfTemplateURL(template_url);
54 if ((template_url->short_name() == title) &&
55 (template_url->keyword() == keyword) && (template_url->url() == url))
/external/chromium_org/chrome/browser/ui/views/
H A Dbrowser_dialogs.h29 // Shows a dialog box that allows a search engine to be edited. |template_url|
35 TemplateURL* template_url,
H A Dedit_search_engine_dialog.cc15 #include "components/search_engines/template_url.h"
35 TemplateURL* template_url,
38 EditSearchEngineDialog::Show(parent, template_url, delegate, profile);
44 TemplateURL* template_url,
47 : controller_(new EditSearchEngineController(template_url,
58 TemplateURL* template_url,
62 new EditSearchEngineDialog(template_url, delegate, profile);
77 return l10n_util::GetStringUTF16(controller_->template_url() ?
126 if (controller_->template_url()) {
127 title_tf_ = CreateTextfield(controller_->template_url()
34 EditSearchEngine(gfx::NativeWindow parent, TemplateURL* template_url, EditSearchEngineControllerDelegate* delegate, Profile* profile) argument
43 EditSearchEngineDialog( TemplateURL* template_url, EditSearchEngineControllerDelegate* delegate, Profile* profile) argument
57 Show(gfx::NativeWindow parent, TemplateURL* template_url, EditSearchEngineControllerDelegate* delegate, Profile* profile) argument
[all...]
H A Dedit_search_engine_dialog.h29 // The |template_url| and/or |delegate| may be NULL.
30 EditSearchEngineDialog(TemplateURL* template_url,
37 TemplateURL* template_url,
/external/chromium_org/components/omnibox/
H A Dkeyword_extensions_delegate.cc24 const TemplateURL* template_url,
22 Start(const AutocompleteInput& input, bool minimal_changes, const TemplateURL* template_url, const base::string16& remaining_input) argument
H A Dkeyword_provider.cc17 #include "components/search_engines/template_url.h"
132 const TemplateURL* template_url = model->GetTemplateURLForKeyword(keyword); local
133 if (template_url &&
134 template_url->SupportsReplacement(model->search_terms_data())) {
158 return template_url;
176 const TemplateURL* const template_url = local
178 if (!template_url ||
179 !template_url->SupportsReplacement(url_service->search_terms_data()))
183 if ((template_url->GetType() == TemplateURL::OMNIBOX_API_EXTENSION) &&
185 !extensions_delegate_->IsEnabledExtension(template_url
247 const TemplateURL* template_url = *i; local
279 const TemplateURL* template_url = matches.front(); local
361 CreateAutocompleteMatch( const TemplateURL* template_url, const AutocompleteInput& input, size_t prefix_length, const base::string16& remaining_input, bool allowed_to_be_default_match, int relevance) argument
[all...]
H A Dbase_search_provider.h68 const TemplateURL* template_url,
107 // for the search |suggestion|, which represents a search via |template_url|.
108 // If |template_url| is NULL, returns a match with an invalid destination URL.
119 // |append_extra_query_params| should be set if |template_url| is the default
127 const TemplateURL* template_url,
145 const TemplateURL* template_url,
169 const TemplateURL* template_url,
H A Dkeyword_extensions_delegate.h38 // the existing suggestions or asks the |template_url|'s extension to provide
43 const TemplateURL* template_url,
H A Dbase_search_provider.cc15 #include "components/search_engines/template_url.h"
106 const TemplateURL* template_url,
119 template_url, search_terms_data, 0, false);
132 TemplateURL* template_url = local
136 if (template_url != NULL) {
137 client_->DeleteMatchingURLsForKeywordFromHistory(template_url->id(),
197 const TemplateURL* template_url,
204 if (!template_url)
206 match.keyword = template_url->keyword();
251 const TemplateURLRef& search_url = template_url
102 CreateSearchSuggestion( const base::string16& suggestion, AutocompleteMatchType::Type type, bool from_keyword_provider, const TemplateURL* template_url, const SearchTermsData& search_terms_data) argument
192 CreateSearchSuggestion( AutocompleteProvider* autocomplete_provider, const AutocompleteInput& input, const bool in_keyword_mode, const SearchSuggestionParser::SuggestResult& suggestion, const TemplateURL* template_url, const SearchTermsData& search_terms_data, int accepted_suggestion, bool append_extra_query_params) argument
277 ZeroSuggestEnabled( const GURL& suggest_url, const TemplateURL* template_url, OmniboxEventProto::PageClassification page_classification, const SearchTermsData& search_terms_data, AutocompleteProviderClient* client) argument
320 CanSendURL( const GURL& current_page_url, const GURL& suggest_url, const TemplateURL* template_url, OmniboxEventProto::PageClassification page_classification, const SearchTermsData& search_terms_data, AutocompleteProviderClient* client) argument
[all...]
/external/chromium_org/chrome/browser/autocomplete/
H A Dkeyword_extensions_delegate_impl.cc65 const TemplateURL* template_url,
67 DCHECK(template_url);
70 std::string extension_id = template_url->GetExtensionId();
78 profile_, template_url, remaining_input, &matches()->front());
95 profile_, template_url->GetExtensionId(),
145 const TemplateURL* template_url(
148 profile_, template_url, remaining_input, &matches()->front());
164 const TemplateURL* template_url = local
186 template_url, input, keyword.length(),
62 Start( const AutocompleteInput& input, bool minimal_changes, const TemplateURL* template_url, const base::string16& remaining_input) argument
/external/chromium_org/chrome/browser/search/
H A Dinstant_unittest_base.cc23 #include "components/search_engines/template_url.h"
63 TemplateURL* template_url = new TemplateURL(data); local
64 // Takes ownership of |template_url|.
65 template_url_service_->Add(template_url);
66 template_url_service_->SetUserSelectedDefaultSearchProvider(template_url);
H A Dsearch.cc153 TemplateURL* template_url,
155 GURL search_url = TemplateURLRefToGURL(template_url->url_ref(),
162 for (size_t i = 0; i < template_url->URLCount() - 1; ++i) {
163 TemplateURLRef ref(template_url, i);
178 bool IsSuitableURLForInstant(const GURL& url, const TemplateURL* template_url) { argument
179 return template_url->HasSearchTermsReplacementKey(url) &&
197 TemplateURL* template_url = GetDefaultSearchProviderTemplateURL(profile);
198 if (!template_url)
201 if (!IsSuitableURLForInstant(url, template_url))
204 const TemplateURLRef& instant_url_ref = template_url
152 MatchesAnySearchURL(const GURL& url, TemplateURL* template_url, const SearchTermsData& search_terms_data) argument
284 TemplateURL* template_url = GetDefaultSearchProviderTemplateURL(profile); local
355 TemplateURL* template_url = GetDefaultSearchProviderTemplateURL(profile); local
364 TemplateURL* template_url = GetDefaultSearchProviderTemplateURL(profile); local
513 TemplateURL* template_url = GetDefaultSearchProviderTemplateURL(profile); local
[all...]
/external/chromium_org/chrome/browser/ui/webui/options/
H A Dsearch_engine_manager_handler.cc19 #include "components/search_engines/template_url.h"
173 const TemplateURL* template_url = list_controller_->GetTemplateURL(index); local
180 dict->SetString("name", template_url->short_name());
185 dict->SetString("url", template_url->url_ref().DisplayURL(
187 dict->SetBoolean("urlLocked", template_url->prepopulate_id() > 0);
188 GURL icon_url = template_url->favicon_url();
194 list_controller_->CanRemove(template_url) && !is_extension);
196 list_controller_->CanMakeDefault(template_url) && !is_extension);
198 dict->SetBoolean("canBeEdited", list_controller_->CanEdit(template_url));
200 if (template_url
262 OnEditedKeyword( TemplateURL* template_url, const base::string16& title, const base::string16& keyword, const std::string& url) argument
[all...]
/external/chromium_org/chrome/browser/ui/search/
H A Dinstant_test_utils.cc68 TemplateURL* template_url = new TemplateURL(data); local
69 service->Add(template_url); // Takes ownership of |template_url|.
70 service->SetUserSelectedDefaultSearchProvider(template_url);
83 TemplateURL* template_url = new TemplateURL(data); local
84 service->Add(template_url); // Takes ownership of |template_url|.
85 service->SetUserSelectedDefaultSearchProvider(template_url);
/external/chromium_org/chrome/browser/search_engines/
H A Dchrome_template_url_service_client.cc69 TemplateURL* template_url) {
70 const TemplateURLData& data = template_url->data();
74 template_url->set_extension_info(make_scoped_ptr(
68 RestoreExtensionInfoIfNecessary( TemplateURL* template_url) argument
H A Dtemplate_url_service_android.cc15 #include "components/search_engines/template_url.h"
58 TemplateURL* template_url = template_urls[selected_index_size_t]; local
59 DCHECK_GT(template_url->prepopulate_id(), 0) <<
61 template_url_service_->SetUserSelectedDefaultSearchProvider(template_url);
113 TemplateURL* template_url = template_url_service_->GetTemplateURLs()[index]; local
114 if (!IsPrepopulatedTemplate(template_url) &&
115 !template_url->created_by_policy())
122 env, template_url->short_name()).obj(),
124 env, template_url->keyword()).obj());
H A Dsearch_provider_install_data.cc20 #include "components/search_engines/template_url.h"
169 // It is ok if |template_url| is NULL.
171 TemplateURL* template_url,
174 DCHECK(template_url->GetType() != TemplateURL::OMNIBOX_API_EXTENSION);
176 template_url->GenerateSearchURL(search_terms_data).GetOrigin();
275 void SearchProviderInstallData::SetDefault(const TemplateURL* template_url) { argument
278 if (!template_url) {
283 DCHECK(template_url->GetType() != TemplateURL::OMNIBOX_API_EXTENSION);
286 const GURL url(template_url->GenerateSearchURL(search_terms_data));
170 IsSameOrigin(const GURL& requested_origin, TemplateURL* template_url, const SearchTermsData& search_terms_data) argument

Completed in 1568 milliseconds

1234