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

Side by Side Diff: chrome/browser/history/history_backend.h

Issue 694843002: Remove NOTIFICATION_HISTORY_URLS_MODIFIED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 6 years, 1 month 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 // the events to the FaviconChangedObservers in the correct thread. 132 // the events to the FaviconChangedObservers in the correct thread.
133 virtual void NotifyFaviconChanged(const std::set<GURL>& urls) = 0; 133 virtual void NotifyFaviconChanged(const std::set<GURL>& urls) = 0;
134 134
135 // Notify HistoryService that the user is visiting an URL. The event will 135 // Notify HistoryService that the user is visiting an URL. The event will
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
143 // be forwarded to the HistoryServiceObservers in the correct thread.
144 virtual void NotifyURLsModified(const URLRows& changed_urls) = 0;
145
142 // Broadcasts the specified notification to the notification service. 146 // Broadcasts the specified notification to the notification service.
143 // This is implemented here because notifications must only be sent from 147 // This is implemented here because notifications must only be sent from
144 // the main thread. This is the only method that doesn't identify the 148 // the main thread. This is the only method that doesn't identify the
145 // caller because notifications must always be sent. 149 // caller because notifications must always be sent.
146 virtual void BroadcastNotifications(int type, 150 virtual void BroadcastNotifications(int type,
147 scoped_ptr<HistoryDetails> details) = 0; 151 scoped_ptr<HistoryDetails> details) = 0;
148 152
149 // Invoked when the backend has finished loading the db. 153 // Invoked when the backend has finished loading the db.
150 virtual void DBLoaded() = 0; 154 virtual void DBLoaded() = 0;
151 }; 155 };
(...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after
924 928
925 // List of observers 929 // List of observers
926 ObserverList<HistoryBackendObserver> observers_; 930 ObserverList<HistoryBackendObserver> observers_;
927 931
928 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); 932 DISALLOW_COPY_AND_ASSIGN(HistoryBackend);
929 }; 933 };
930 934
931 } // namespace history 935 } // namespace history
932 936
933 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ 937 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_
OLDNEW
« no previous file with comments | « chrome/browser/history/android/android_provider_backend_unittest.cc ('k') | chrome/browser/history/history_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698