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

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

Issue 651193002: Remove NOTIFICATION_HISTORY_URL_VISITED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@373326.2
Patch Set: Address comments Created 6 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 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
11 class GURL; 11 class GURL;
12 class TemplateURL; 12 class TemplateURL;
13 class TemplateURLService; 13 class TemplateURLService;
14 14
15 // This interface provides history related functionality required by 15 // This interface provides history related functionality required by
16 // TemplateURLService. 16 // TemplateURLService.
17 // TODO(hashimoto): Get rid of this once HistoryService gets componentized. 17 // TODO(hashimoto): Get rid of this once HistoryService gets componentized.
18 class TemplateURLServiceClient { 18 class TemplateURLServiceClient {
19 public: 19 public:
20 virtual ~TemplateURLServiceClient() {} 20 virtual ~TemplateURLServiceClient() {}
21 21
22 // Called by TemplateURLService::Shutdown as part of the two phase shutdown
23 // of the KeyedService.
24 virtual void Shutdown() = 0;
25
22 // Sets the pointer to the owner of this object. 26 // Sets the pointer to the owner of this object.
23 virtual void SetOwner(TemplateURLService* owner) = 0; 27 virtual void SetOwner(TemplateURLService* owner) = 0;
24 28
25 // Deletes all search terms for the specified keyword. 29 // Deletes all search terms for the specified keyword.
26 virtual void DeleteAllSearchTermsForKeyword(TemplateURLID id) = 0; 30 virtual void DeleteAllSearchTermsForKeyword(TemplateURLID id) = 0;
27 31
28 // Sets the search terms for the specified url and keyword. 32 // Sets the search terms for the specified url and keyword.
29 virtual void SetKeywordSearchTermsForURL(const GURL& url, 33 virtual void SetKeywordSearchTermsForURL(const GURL& url,
30 TemplateURLID id, 34 TemplateURLID id,
31 const base::string16& term) = 0; 35 const base::string16& term) = 0;
32 36
33 // Adds the given URL to history as a keyword generated visit. 37 // Adds the given URL to history as a keyword generated visit.
34 virtual void AddKeywordGeneratedVisit(const GURL& url) = 0; 38 virtual void AddKeywordGeneratedVisit(const GURL& url) = 0;
35 39
36 // Restores the extension info of a TemplateURL loaded from the database. 40 // Restores the extension info of a TemplateURL loaded from the database.
37 virtual void RestoreExtensionInfoIfNecessary(TemplateURL* template_url) = 0; 41 virtual void RestoreExtensionInfoIfNecessary(TemplateURL* template_url) = 0;
38 }; 42 };
39 43
40 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_CLIENT_H_ 44 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « components/search_engines/template_url_service.cc ('k') | components/search_engines/template_url_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698