| 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_MANAGER_OBSERVER_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_CONTACTS_CONTACT_MANAGER_OBSERVER_H_ | |
| 7 | |
| 8 class Profile; | |
| 9 | |
| 10 namespace contacts { | |
| 11 | |
| 12 class ContactManager; | |
| 13 | |
| 14 // Interface for classes that need to observe changes to ContactManager. | |
| 15 class ContactManagerObserver { | |
| 16 public: | |
| 17 ContactManagerObserver() {} | |
| 18 virtual ~ContactManagerObserver() {} | |
| 19 | |
| 20 // Called when |profile|'s contacts have been updated. | |
| 21 virtual void OnContactsUpdated(Profile* profile) = 0; | |
| 22 | |
| 23 private: | |
| 24 DISALLOW_COPY_AND_ASSIGN(ContactManagerObserver); | |
| 25 }; | |
| 26 | |
| 27 } // namespace contacts | |
| 28 | |
| 29 #endif // CHROME_BROWSER_CHROMEOS_CONTACTS_CONTACT_MANAGER_OBSERVER_H_ | |
| OLD | NEW |