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

Unified Diff: chrome/browser/history/url_database_observer.h

Issue 22569006: tmp Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/history/url_database.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/url_database_observer.h
diff --git a/chrome/browser/history/url_database_observer.h b/chrome/browser/history/url_database_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..3e84e6bb6ffeeb00202edfa6afc622911e2fdcff
--- /dev/null
+++ b/chrome/browser/history/url_database_observer.h
@@ -0,0 +1,36 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_HISTORY_URL_DATABASE_OBSERVER_H_
+#define CHROME_BROWSER_HISTORY_URL_DATABASE_OBSERVER_H_
+
+namespace history {
+
+class URLRow;
+
+// Observer for the URLDatabase.
+class URLDatabaseObserver {
+ public:
+ URLDatabaseObserver() {};
+
+ // Invoked when url was added to database.
+ virtual void URLAdded(const URLRow& added) = 0;
+
+ // Invoked when url was removed from database.
+ virtual void URLDeleted(const URLRow& removed) = 0;
+
+ // Invoked when url was changed in database.
+ virtual void URLChanged(const URLRow& old,
+ const URLRow& current) = 0;
+
+ protected:
+ virtual ~URLDatabaseObserver() {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(URLDatabaseObserver);
+};
+
+} // history
+
+#endif // CHROME_BROWSER_HISTORY_URL_DATABASE_OBSERVER_H_
« no previous file with comments | « chrome/browser/history/url_database.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698