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

123

/external/chromium/chrome/browser/webdata/
H A Dkeyword_table_unittest.cc11 #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
157 TemplateURL template_url; local
227 TemplateURL template_url; local
[all...]
H A Dkeyword_table.cc13 #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
[all...]
/external/chromium/chrome/browser/ui/search_engines/
H A Dkeyword_editor_controller.cc11 #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, argument
59 const int index = table_model_->IndexOfTemplateURL(template_url);
67 if (template_url->short_name() == title &&
68 template_url
[all...]
H A Dsearch_engine_tab_helper_delegate.h19 // described by |template_url|. Takes ownership of |template_url|.
22 TemplateURL* template_url,
26 // |template_url|. Takes ownership of |template_url|.
27 virtual void ConfirmAddSearchProvider(const TemplateURL* template_url,
H A Dtemplate_url_fetcher_ui_callbacks.cc9 #include "chrome/browser/search_engines/template_url.h"
30 TemplateURL* template_url,
32 scoped_ptr<TemplateURL> owned_template_url(template_url);
43 TemplateURL* template_url,
45 scoped_ptr<TemplateURL> owned_template_url(template_url);
29 ConfirmSetDefaultSearchProvider( TemplateURL* template_url, TemplateURLModel* template_url_model) argument
42 ConfirmAddSearchProvider( TemplateURL* template_url, Profile* profile) argument
H A Dtemplate_url_table_model.cc13 #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
37 ModelEntry(TemplateURLTableModel* model, const TemplateURL& template_url) argument
241 const TemplateURL* template_url = &GetTemplateURL(index); local
256 Add(int index, TemplateURL* template_url) argument
272 const TemplateURL* template_url = &GetTemplateURL(index); local
298 IndexOfTemplateURL( const TemplateURL* template_url) argument
[all...]
H A Dedit_search_engine_controller.h20 // 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
H A Dtemplate_url_fetcher_ui_callbacks.h27 TemplateURL* template_url,
30 TemplateURL* template_url,
H A Dtemplate_url_table_model.h57 void Add(int index, TemplateURL* template_url);
73 int IndexOfTemplateURL(const TemplateURL* template_url);
/external/chromium/chrome/browser/search_engines/
H A Dtemplate_url_fetcher_callbacks.h20 // described by |template_url|. Takes ownership of |template_url|.
22 TemplateURL* template_url,
26 // |template_url|. Takes ownership of |template_url|.
28 TemplateURL* template_url,
H A Dsearch_host_to_urls_map.h33 // Adds a new TemplateURL to the map. Since |template_url| is owned
35 void Add(const TemplateURL* template_url,
39 void Remove(const TemplateURL* template_url);
64 // Removes the given template_url using only the pointer instead of the value.
67 void RemoveByPointer(const TemplateURL* template_url);
H A Dsearch_host_to_urls_map.cc9 #include "chrome/browser/search_engines/template_url.h"
31 void SearchHostToURLsMap::Add(const TemplateURL* template_url, argument
34 DCHECK(template_url);
37 template_url, search_terms_data));
41 host_to_urls_map_[url.host()].insert(template_url);
44 void SearchHostToURLsMap::Remove(const TemplateURL* template_url) { argument
46 DCHECK(template_url);
48 const GURL url(TemplateURLModel::GenerateSearchURL(template_url));
56 DCHECK(urls.find(template_url) != urls.end());
58 urls.erase(urls.find(template_url));
127 RemoveByPointer( const TemplateURL* template_url) argument
[all...]
H A Dtemplate_url_model.cc24 #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) { argument
290 AddNoNotify(template_url);
294 void TemplateURLModel::Remove(const TemplateURL* template_url) { argument
295 RemoveNoNotify(template_url);
335 scoped_ptr<TemplateURL> template_url(ne
553 const TemplateURL* template_url = GetTemplateURLForKeyword(keyword); local
659 TemplateURL* template_url = new TemplateURL(); local
684 RemoveFromMaps(const TemplateURL* template_url) argument
691 RemoveFromKeywordMapByPointer( const TemplateURL* template_url) argument
705 AddToMaps(const TemplateURL* template_url) argument
1218 AddNoNotify(TemplateURL* template_url) argument
1231 RemoveNoNotify(const TemplateURL* template_url) argument
[all...]
H A Dtemplate_url_fetcher_unittest.cc10 #include "chrome/browser/search_engines/template_url.h"
33 TemplateURL* template_url,
36 TemplateURL* template_url,
72 TemplateURL* template_url,
75 TemplateURL* template_url,
116 TemplateURL* template_url,
118 test_->ConfirmSetDefaultSearchProvider(template_url, template_url_model);
122 TemplateURL* template_url,
124 test_->ConfirmAddSearchProvider(template_url, profile);
144 TemplateURL* template_url,
115 ConfirmSetDefaultSearchProvider( TemplateURL* template_url, TemplateURLModel* template_url_model) argument
121 ConfirmAddSearchProvider( TemplateURL* template_url, Profile* profile) argument
143 ConfirmSetDefaultSearchProvider( TemplateURL* template_url, TemplateURLModel* template_url_model) argument
150 ConfirmAddSearchProvider( TemplateURL* template_url, Profile* profile) argument
[all...]
H A Dsearch_provider_install_data.cc15 #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) { argument
273 if (!template_url) {
280 template_url, search_terms_dat
151 IsSameOrigin(const GURL& requested_origin, const TemplateURL* template_url, const SearchTermsData& search_terms_data) argument
[all...]
H A Dtemplate_url_model.h129 void Add(TemplateURL* template_url);
132 // This fails if the supplied template_url is the default search provider.
133 void Remove(const TemplateURL* template_url);
269 void RemoveFromMaps(const TemplateURL* template_url);
271 // Removes the supplied template_url from the keyword maps. This searches
274 void RemoveFromKeywordMapByPointer(const TemplateURL* template_url);
276 void AddToMaps(const TemplateURL* template_url);
362 void AddNoNotify(TemplateURL* template_url);
365 // This fails if the supplied template_url is the default search provider.
367 void RemoveNoNotify(const TemplateURL* template_url);
[all...]
/external/chromium/chrome/browser/ui/omnibox/
H A Dlocation_bar_util.cc10 #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/
H A Ddialog_stubs_gtk.cc33 const TemplateURL* template_url,
36 new EditSearchEngineDialog(GTK_WINDOW(parent), template_url, NULL, profile); local
32 EditSearchEngine(gfx::NativeWindow parent, const TemplateURL* template_url, EditSearchEngineControllerDelegate* delegate, Profile* profile) argument
H A Dedit_search_engine_dialog.cc10 #include "chrome/browser/search_engines/template_url.h"
42 const TemplateURL* template_url,
45 EditSearchEngineDialog::Show(parent, template_url, delegate, profile);
51 const TemplateURL* template_url,
54 : controller_(new EditSearchEngineController(template_url,
62 const TemplateURL* template_url,
66 new EditSearchEngineDialog(template_url, delegate, profile);
81 return UTF16ToWide(l10n_util::GetStringUTF16(controller_->template_url() ?
126 if (controller_->template_url()) {
128 CreateTextfield(controller_->template_url()
41 EditSearchEngine(gfx::NativeWindow parent, const TemplateURL* template_url, EditSearchEngineControllerDelegate* delegate, Profile* profile) argument
50 EditSearchEngineDialog( const TemplateURL* template_url, EditSearchEngineControllerDelegate* delegate, Profile* profile) argument
61 Show(gfx::NativeWindow parent, const TemplateURL* template_url, EditSearchEngineControllerDelegate* delegate, Profile* profile) argument
[all...]
/external/chromium/chrome/browser/ui/gtk/
H A Dedit_search_engine_dialog.cc14 #include "chrome/browser/search_engines/template_url.h"
71 const TemplateURL* template_url,
74 : controller_(new EditSearchEngineController(template_url, delegate,
83 controller_->template_url() ?
96 controller_->template_url() ?
144 if (controller_->template_url()) {
147 UTF16ToUTF8(controller_->template_url()->short_name()).c_str());
150 UTF16ToUTF8(controller_->template_url()->keyword()).c_str());
153 GetDisplayURL(*controller_->template_url()).c_str());
157 controller_->template_url()
69 EditSearchEngineDialog( GtkWindow* parent_window, const TemplateURL* template_url, EditSearchEngineControllerDelegate* delegate, Profile* profile) argument
[all...]
/external/chromium/chrome/browser/ui/webui/options/
H A Dsearch_engine_manager_handler.cc12 #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) {
214 OnEditedKeyword( const TemplateURL* template_url, const string16& title, const string16& keyword, const std::string& url) argument
[all...]
/external/chromium/chrome/browser/autocomplete/
H A Dkeyword_provider_unittest.cc9 #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));
H A Dautocomplete_popup_model.cc18 #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
[all...]
H A Dkeyword_provider.cc16 #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
[all...]
/external/chromium/chrome/browser/instant/
H A Dinstant_controller.cc19 #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, argument
604 TemplateURLID template_url_id = template_url ? template_url->id() : 0;
609 if (new_loader->Update(tab_contents_, template_url, ur
621 ShouldShowPreviewFor(const AutocompleteMatch& match, const TemplateURL** template_url) argument
677 const TemplateURL* template_url = match.template_url; local
[all...]

Completed in 342 milliseconds

123