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

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

Issue 2479113002: Make extensions DSE persistent in browser prefs (Closed)
Patch Set: Tests updated(rewritten) after review 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_CLIENT_H_ 5 #ifndef COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_CLIENT_H_
6 #define COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_CLIENT_H_ 6 #define COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_CLIENT_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "components/search_engines/template_url_id.h" 9 #include "components/search_engines/template_url_id.h"
10 10
(...skipping 22 matching lines...) Expand all
33 virtual void SetKeywordSearchTermsForURL(const GURL& url, 33 virtual void SetKeywordSearchTermsForURL(const GURL& url,
34 TemplateURLID id, 34 TemplateURLID id,
35 const base::string16& term) = 0; 35 const base::string16& term) = 0;
36 36
37 // Adds the given URL to history as a keyword generated visit. 37 // Adds the given URL to history as a keyword generated visit.
38 virtual void AddKeywordGeneratedVisit(const GURL& url) = 0; 38 virtual void AddKeywordGeneratedVisit(const GURL& url) = 0;
39 39
40 // Given the main search |url| for a TemplateURL, returns whether the 40 // Given the main search |url| for a TemplateURL, returns whether the
41 // TemplateURL is from an omnibox extension. 41 // TemplateURL is from an omnibox extension.
42 virtual bool IsOmniboxExtensionURL(const std::string& url) = 0; 42 virtual bool IsOmniboxExtensionURL(const std::string& url) = 0;
43
44 // Returns extension id for extension that is currently overriding default
45 // search preference.
46 virtual std::string GetExtensionControllingDSEPref() = 0;
vasilii 2016/12/06 19:16:42 Hopefully, you won't need it. The component should
Alexander Yashkin 2016/12/09 08:19:52 I have written my thoughts above, not sure we can
43 }; 47 };
44 48
45 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_CLIENT_H_ 49 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698