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

Side by Side Diff: chrome/browser/history/history_backend.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_HISTORY_HISTORY_BACKEND_H_ 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_
6 #define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ 6 #define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // be forwarded to the HistoryServiceObservers in the correct thread. 136 // be forwarded to the HistoryServiceObservers in the correct thread.
137 virtual void NotifyURLVisited(ui::PageTransition transition, 137 virtual void NotifyURLVisited(ui::PageTransition transition,
138 const URLRow& row, 138 const URLRow& row,
139 const RedirectList& redirects, 139 const RedirectList& redirects,
140 base::Time visit_time) = 0; 140 base::Time visit_time) = 0;
141 141
142 // Notify HistoryService that some URLs have been modified. The event will 142 // Notify HistoryService that some URLs have been modified. The event will
143 // be forwarded to the HistoryServiceObservers in the correct thread. 143 // be forwarded to the HistoryServiceObservers in the correct thread.
144 virtual void NotifyURLsModified(const URLRows& changed_urls) = 0; 144 virtual void NotifyURLsModified(const URLRows& changed_urls) = 0;
145 145
146 // Notify HistoryService that some keyword has be searched in omni box. The
newt (away) 2014/12/30 16:00:56 s/omni box/omnibox
Abhishek 2014/12/30 16:20:53 Done.
147 // event will be forwarded to the HistoryServiceObservers in the correct
148 // thread.
149 virtual void NotifyKeywordSearchTermUpdated(const URLRow& row,
150 KeywordID keyword_id,
151 const base::string16& term) = 0;
152
146 // Broadcasts the specified notification to the notification service. 153 // Broadcasts the specified notification to the notification service.
147 // This is implemented here because notifications must only be sent from 154 // This is implemented here because notifications must only be sent from
148 // the main thread. This is the only method that doesn't identify the 155 // the main thread. This is the only method that doesn't identify the
149 // caller because notifications must always be sent. 156 // caller because notifications must always be sent.
150 virtual void BroadcastNotifications(int type, 157 virtual void BroadcastNotifications(int type,
151 scoped_ptr<HistoryDetails> details) = 0; 158 scoped_ptr<HistoryDetails> details) = 0;
152 159
153 // Invoked when the backend has finished loading the db. 160 // Invoked when the backend has finished loading the db.
154 virtual void DBLoaded() = 0; 161 virtual void DBLoaded() = 0;
155 }; 162 };
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 917
911 // List of observers 918 // List of observers
912 ObserverList<HistoryBackendObserver> observers_; 919 ObserverList<HistoryBackendObserver> observers_;
913 920
914 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); 921 DISALLOW_COPY_AND_ASSIGN(HistoryBackend);
915 }; 922 };
916 923
917 } // namespace history 924 } // namespace history
918 925
919 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ 926 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698