HomeSort by relevance Sort by last modified time
    Searched refs:template_url (Results 1 - 25 of 65) sorted by null

1 2 3

  /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/search_engines/
template_url_fetcher_callbacks.h 20 // 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,
search_host_to_urls_map.h 33 // 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);
search_host_to_urls_map.cc 9 #include "chrome/browser/search_engines/template_url.h"
31 void SearchHostToURLsMap::Add(const TemplateURL* template_url,
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) {
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));
    [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_fetcher_unittest.cc 10 #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,
    [all...]
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.h 129 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/search_engines/
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...]
search_engine_tab_helper_delegate.h 19 // 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,
template_url_fetcher_ui_callbacks.cc 9 #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);
template_url_fetcher_ui_callbacks.h 27 TemplateURL* template_url,
30 TemplateURL* template_url,
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...]
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
template_url_table_model.h 57 void Add(int index, TemplateURL* template_url);
73 int IndexOfTemplateURL(const TemplateURL* template_url);
  /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
edit_search_engine_dialog.cc 10 #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()->short_name(), false)
    [all...]
edit_search_engine_dialog.h 35 // The |template_url| and/or |delegate| may be NULL.
36 EditSearchEngineDialog(const TemplateURL* template_url,
43 const TemplateURL* template_url,
  /external/chromium/chrome/browser/ui/gtk/
edit_search_engine_dialog.cc 14 #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()->prepopulate_id() == 0)
    [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/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...]
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...]

Completed in 216 milliseconds

1 2 3