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

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

Issue 2479113002: Make extensions DSE persistent in browser prefs (Closed)
Patch Set: Updated after review, round 5 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_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 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 TemplateURL* FindPrepopulatedTemplateURL(int prepopulated_id); 700 TemplateURL* FindPrepopulatedTemplateURL(int prepopulated_id);
701 701
702 // Returns the TemplateURL associated with |extension_id|, if any. 702 // Returns the TemplateURL associated with |extension_id|, if any.
703 TemplateURL* FindTemplateURLForExtension(const std::string& extension_id, 703 TemplateURL* FindTemplateURLForExtension(const std::string& extension_id,
704 TemplateURL::Type type); 704 TemplateURL::Type type);
705 705
706 // Finds the extension-supplied TemplateURL that matches |data|, if any. 706 // Finds the extension-supplied TemplateURL that matches |data|, if any.
707 TemplateURL* FindMatchingExtensionTemplateURL(const TemplateURLData& data, 707 TemplateURL* FindMatchingExtensionTemplateURL(const TemplateURLData& data,
708 TemplateURL::Type type); 708 TemplateURL::Type type);
709 709
710 // Finds the most recently-installed NORMAL_CONTROLLED_BY_EXTENSION engine
711 // that supports replacement and wants to be default, if any. Notifies the
712 // DefaultSearchManager, which might change the effective default search
713 // engine.
714 void UpdateExtensionDefaultSearchEngine();
715
716
717 // ---------- Browser state related members --------------------------------- 710 // ---------- Browser state related members ---------------------------------
718 PrefService* prefs_; 711 PrefService* prefs_;
719 712
720 std::unique_ptr<SearchTermsData> search_terms_data_; 713 std::unique_ptr<SearchTermsData> search_terms_data_;
721 714
722 // ---------- Dependencies on other components ------------------------------ 715 // ---------- Dependencies on other components ------------------------------
723 // Service used to store entries. 716 // Service used to store entries.
724 scoped_refptr<KeywordWebDataService> web_data_service_; 717 scoped_refptr<KeywordWebDataService> web_data_service_;
725 718
726 std::unique_ptr<TemplateURLServiceClient> client_; 719 std::unique_ptr<TemplateURLServiceClient> client_;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 // Helper class to manage the default search engine. 825 // Helper class to manage the default search engine.
833 DefaultSearchManager default_search_manager_; 826 DefaultSearchManager default_search_manager_;
834 827
835 std::unique_ptr<GoogleURLTracker::Subscription> 828 std::unique_ptr<GoogleURLTracker::Subscription>
836 google_url_updated_subscription_; 829 google_url_updated_subscription_;
837 830
838 DISALLOW_COPY_AND_ASSIGN(TemplateURLService); 831 DISALLOW_COPY_AND_ASSIGN(TemplateURLService);
839 }; 832 };
840 833
841 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_ 834 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698