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

Side by Side Diff: chrome/browser/search_engines/chrome_template_url_service_client.h

Issue 2354413004: Delete from Sync the artificial search engines created by the omnibox extensions. (Closed)
Patch Set: IsOmniboxExtensionURL Created 4 years, 2 months 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 CHROME_BROWSER_SEARCH_ENGINES_CHROME_TEMPLATE_URL_SERVICE_CLIENT_H_ 5 #ifndef CHROME_BROWSER_SEARCH_ENGINES_CHROME_TEMPLATE_URL_SERVICE_CLIENT_H_
6 #define CHROME_BROWSER_SEARCH_ENGINES_CHROME_TEMPLATE_URL_SERVICE_CLIENT_H_ 6 #define CHROME_BROWSER_SEARCH_ENGINES_CHROME_TEMPLATE_URL_SERVICE_CLIENT_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/scoped_observer.h" 9 #include "base/scoped_observer.h"
10 #include "components/history/core/browser/history_service_observer.h" 10 #include "components/history/core/browser/history_service_observer.h"
(...skipping 13 matching lines...) Expand all
24 ~ChromeTemplateURLServiceClient() override; 24 ~ChromeTemplateURLServiceClient() override;
25 25
26 // TemplateURLServiceClient: 26 // TemplateURLServiceClient:
27 void Shutdown() override; 27 void Shutdown() override;
28 void SetOwner(TemplateURLService* owner) override; 28 void SetOwner(TemplateURLService* owner) override;
29 void DeleteAllSearchTermsForKeyword(history::KeywordID keyword_Id) override; 29 void DeleteAllSearchTermsForKeyword(history::KeywordID keyword_Id) override;
30 void SetKeywordSearchTermsForURL(const GURL& url, 30 void SetKeywordSearchTermsForURL(const GURL& url,
31 TemplateURLID id, 31 TemplateURLID id,
32 const base::string16& term) override; 32 const base::string16& term) override;
33 void AddKeywordGeneratedVisit(const GURL& url) override; 33 void AddKeywordGeneratedVisit(const GURL& url) override;
34 void RestoreExtensionInfoIfNecessary(TemplateURL* template_url) override; 34 bool IsOmniboxExtensionURL(const std::string& url) override;
35 35
36 // history::HistoryServiceObserver: 36 // history::HistoryServiceObserver:
37 void OnURLVisited(history::HistoryService* history_service, 37 void OnURLVisited(history::HistoryService* history_service,
38 ui::PageTransition transition, 38 ui::PageTransition transition,
39 const history::URLRow& row, 39 const history::URLRow& row,
40 const history::RedirectList& redirects, 40 const history::RedirectList& redirects,
41 base::Time visit_time) override; 41 base::Time visit_time) override;
42 42
43 private: 43 private:
44 TemplateURLService* owner_; 44 TemplateURLService* owner_;
45 ScopedObserver<history::HistoryService, history::HistoryServiceObserver> 45 ScopedObserver<history::HistoryService, history::HistoryServiceObserver>
46 history_service_observer_; 46 history_service_observer_;
47 history::HistoryService* history_service_; 47 history::HistoryService* history_service_;
48 48
49 DISALLOW_COPY_AND_ASSIGN(ChromeTemplateURLServiceClient); 49 DISALLOW_COPY_AND_ASSIGN(ChromeTemplateURLServiceClient);
50 }; 50 };
51 51
52 #endif // CHROME_BROWSER_SEARCH_ENGINES_CHROME_TEMPLATE_URL_SERVICE_CLIENT_H_ 52 #endif // CHROME_BROWSER_SEARCH_ENGINES_CHROME_TEMPLATE_URL_SERVICE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698