Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: components/search_engines/template_url.h

Issue 2479113002: Make extensions DSE persistent in browser prefs (Closed)
Patch Set: Added DSE tests Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_H_ 5 #ifndef COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_H_
6 #define COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_H_ 6 #define COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 528
529 // Generates a favicon URL from the specified url. 529 // Generates a favicon URL from the specified url.
530 static GURL GenerateFaviconURL(const GURL& url); 530 static GURL GenerateFaviconURL(const GURL& url);
531 531
532 // Returns true if |t_url| and |data| are equal in all meaningful respects. 532 // Returns true if |t_url| and |data| are equal in all meaningful respects.
533 // Static to allow either or both params to be NULL. 533 // Static to allow either or both params to be NULL.
534 static bool MatchesData(const TemplateURL* t_url, 534 static bool MatchesData(const TemplateURL* t_url,
535 const TemplateURLData* data, 535 const TemplateURLData* data,
536 const SearchTermsData& search_terms_data); 536 const SearchTermsData& search_terms_data);
537 537
538 static bool SearchTermsReplacementKeysMatch(
vasilii 2016/11/30 14:00:03 A comment?
Alexander Yashkin 2016/12/05 18:16:49 Done
539 const std::string& search_terms_replacement_key1,
540 const std::string& search_terms_replacement_key2);
541
538 const TemplateURLData& data() const { return data_; } 542 const TemplateURLData& data() const { return data_; }
539 543
540 const base::string16& short_name() const { return data_.short_name(); } 544 const base::string16& short_name() const { return data_.short_name(); }
541 // An accessor for the short_name, but adjusted so it can be appropriately 545 // An accessor for the short_name, but adjusted so it can be appropriately
542 // displayed even if it is LTR and the UI is RTL. 546 // displayed even if it is LTR and the UI is RTL.
543 base::string16 AdjustedShortNameForLocaleDirection() const; 547 base::string16 AdjustedShortNameForLocaleDirection() const;
544 548
545 const base::string16& keyword() const { return data_.keyword(); } 549 const base::string16& keyword() const { return data_.keyword(); }
546 550
547 const std::string& url() const { return data_.url(); } 551 const std::string& url() const { return data_.url(); }
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 757
754 // Caches the computed engine type across successive calls to GetEngineType(). 758 // Caches the computed engine type across successive calls to GetEngineType().
755 mutable SearchEngineType engine_type_; 759 mutable SearchEngineType engine_type_;
756 760
757 // TODO(sky): Add date last parsed OSD file. 761 // TODO(sky): Add date last parsed OSD file.
758 762
759 DISALLOW_COPY_AND_ASSIGN(TemplateURL); 763 DISALLOW_COPY_AND_ASSIGN(TemplateURL);
760 }; 764 };
761 765
762 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_H_ 766 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698