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

Side by Side Diff: components/history/core/browser/history_service_observer.h

Issue 808123003: Eliminate sending NOTIFICATION_HISTORY_KEYWORD_SEARCH_TERM_UPDATED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Inline code for same function name. Created 5 years, 11 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_HISTORY_CORE_BROWSER_HISTORY_SERVICE_OBSERVER_H_ 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_OBSERVER_H_
6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_OBSERVER_H_ 6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_OBSERVER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/history/core/browser/history_types.h" 9 #include "components/history/core/browser/history_types.h"
10 #include "components/history/core/browser/keyword_id.h"
10 11
11 class HistoryService; 12 class HistoryService;
12 13
13 namespace history { 14 namespace history {
14 15
15 class HistoryServiceObserver { 16 class HistoryServiceObserver {
16 public: 17 public:
17 HistoryServiceObserver() {} 18 HistoryServiceObserver() {}
18 virtual ~HistoryServiceObserver() {} 19 virtual ~HistoryServiceObserver() {}
19 20
(...skipping 21 matching lines...) Expand all
41 // Called on changes to the VisitDatabase. 42 // Called on changes to the VisitDatabase.
42 virtual void OnAddVisit(HistoryService* history_service, 43 virtual void OnAddVisit(HistoryService* history_service,
43 const BriefVisitInfo& info) {} 44 const BriefVisitInfo& info) {}
44 45
45 // Is called to notify when |history_service| has finished loading. 46 // Is called to notify when |history_service| has finished loading.
46 virtual void OnHistoryServiceLoaded(HistoryService* history_service) {} 47 virtual void OnHistoryServiceLoaded(HistoryService* history_service) {}
47 48
48 // Is called to notify when |history_service| is being deleted. 49 // Is called to notify when |history_service| is being deleted.
49 virtual void HistoryServiceBeingDeleted(HistoryService* history_service) {} 50 virtual void HistoryServiceBeingDeleted(HistoryService* history_service) {}
50 51
52 // Called when any term searched in omni box.
newt (away) 2014/12/30 16:00:56 s/omni box/omnibox
Abhishek 2014/12/30 16:20:53 Done.
53 //
54 // |row| contains the URL information for search |term|.
55 // |keyword_id| associated with a URL and search term.
56 virtual void OnKeywordSearchTermUpdated(HistoryService* history_service,
57 const URLRow& row,
58 KeywordID keyword_id,
59 const base::string16& term) {}
60
51 private: 61 private:
52 DISALLOW_COPY_AND_ASSIGN(HistoryServiceObserver); 62 DISALLOW_COPY_AND_ASSIGN(HistoryServiceObserver);
53 }; 63 };
54 64
55 } // namespace history 65 } // namespace history
56 66
57 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_OBSERVER_H_ 67 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698