| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_HISTORY_URL_DATABASE_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_HISTORY_URL_DATABASE_OBSERVER_H_ |
| 7 |
| 8 namespace history { |
| 9 |
| 10 class URLRow; |
| 11 |
| 12 // Observer for the URLDatabase. |
| 13 class URLDatabaseObserver { |
| 14 public: |
| 15 URLDatabaseObserver() {}; |
| 16 |
| 17 // Invoked when url was added to database. |
| 18 virtual void URLAdded(const URLRow& added) = 0; |
| 19 |
| 20 // Invoked when url was removed from database. |
| 21 virtual void URLDeleted(const URLRow& removed) = 0; |
| 22 |
| 23 // Invoked when url was changed in database. |
| 24 virtual void URLChanged(const URLRow& old, |
| 25 const URLRow& current) = 0; |
| 26 |
| 27 protected: |
| 28 virtual ~URLDatabaseObserver() {} |
| 29 |
| 30 private: |
| 31 DISALLOW_COPY_AND_ASSIGN(URLDatabaseObserver); |
| 32 }; |
| 33 |
| 34 } // history |
| 35 |
| 36 #endif // CHROME_BROWSER_HISTORY_URL_DATABASE_OBSERVER_H_ |
| OLD | NEW |