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

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

Issue 2479113002: Make extensions DSE persistent in browser prefs (Closed)
Patch Set: Move extension overriden DSE logic to setting_override_api.cc Created 4 years, 1 month 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_SERVICE_H_ 5 #ifndef COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_
6 #define COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_ 6 #define COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 TemplateURL* FindPrepopulatedTemplateURL(int prepopulated_id); 682 TemplateURL* FindPrepopulatedTemplateURL(int prepopulated_id);
683 683
684 // Returns the TemplateURL associated with |extension_id|, if any. 684 // Returns the TemplateURL associated with |extension_id|, if any.
685 TemplateURL* FindTemplateURLForExtension(const std::string& extension_id, 685 TemplateURL* FindTemplateURLForExtension(const std::string& extension_id,
686 TemplateURL::Type type); 686 TemplateURL::Type type);
687 687
688 // Finds the extension-supplied TemplateURL that matches |data|, if any. 688 // Finds the extension-supplied TemplateURL that matches |data|, if any.
689 TemplateURL* FindMatchingExtensionTemplateURL(const TemplateURLData& data, 689 TemplateURL* FindMatchingExtensionTemplateURL(const TemplateURLData& data,
690 TemplateURL::Type type); 690 TemplateURL::Type type);
691 691
692 // Finds the most recently-installed NORMAL_CONTROLLED_BY_EXTENSION engine
693 // that supports replacement and wants to be default, if any. Notifies the
694 // DefaultSearchManager, which might change the effective default search
695 // engine.
696 void UpdateExtensionDefaultSearchEngine();
697
698
699 // ---------- Browser state related members --------------------------------- 692 // ---------- Browser state related members ---------------------------------
700 PrefService* prefs_; 693 PrefService* prefs_;
701 694
702 std::unique_ptr<SearchTermsData> search_terms_data_; 695 std::unique_ptr<SearchTermsData> search_terms_data_;
703 696
704 // ---------- Dependencies on other components ------------------------------ 697 // ---------- Dependencies on other components ------------------------------
705 // Service used to store entries. 698 // Service used to store entries.
706 scoped_refptr<KeywordWebDataService> web_data_service_; 699 scoped_refptr<KeywordWebDataService> web_data_service_;
707 700
708 std::unique_ptr<TemplateURLServiceClient> client_; 701 std::unique_ptr<TemplateURLServiceClient> client_;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
814 // Helper class to manage the default search engine. 807 // Helper class to manage the default search engine.
815 DefaultSearchManager default_search_manager_; 808 DefaultSearchManager default_search_manager_;
816 809
817 std::unique_ptr<GoogleURLTracker::Subscription> 810 std::unique_ptr<GoogleURLTracker::Subscription>
818 google_url_updated_subscription_; 811 google_url_updated_subscription_;
819 812
820 DISALLOW_COPY_AND_ASSIGN(TemplateURLService); 813 DISALLOW_COPY_AND_ASSIGN(TemplateURLService);
821 }; 814 };
822 815
823 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_ 816 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698