OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_CONTACTS_CONTACT_SOURCE_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_CONTACTS_CONTACT_SOURCE_OBSERVER_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 |
| 10 namespace contacts { |
| 11 |
| 12 class ContactSource; |
| 13 |
| 14 // Interface for observing changes to a ContactSource. |
| 15 class ContactSourceObserver { |
| 16 public: |
| 17 ContactSourceObserver() {} |
| 18 virtual ~ContactSourceObserver() {} |
| 19 |
| 20 // Called when the contacts stored within a ContactSource are updated. |
| 21 virtual void OnContactsUpdated(ContactSource* source) = 0; |
| 22 |
| 23 private: |
| 24 DISALLOW_COPY_AND_ASSIGN(ContactSourceObserver); |
| 25 }; |
| 26 |
| 27 } // namespace contacts |
| 28 |
| 29 #endif // CHROME_BROWSER_CHROMEOS_CONTACTS_CONTACT_SOURCE_OBSERVER_H_ |
OLD | NEW |