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

Unified Diff: chrome/browser/chromeos/contacts/contact_manager_observer.h

Issue 10831162: contacts: Add ContactManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: diff against the correct branch Created 8 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
Index: chrome/browser/chromeos/contacts/contact_manager_observer.h
diff --git a/chrome/browser/chromeos/contacts/contact_manager_observer.h b/chrome/browser/chromeos/contacts/contact_manager_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..885378d5abd6566ae7d3938689001d414f47f3f7
--- /dev/null
+++ b/chrome/browser/chromeos/contacts/contact_manager_observer.h
@@ -0,0 +1,29 @@
+// Copyright (c) 2012 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_CHROMEOS_CONTACTS_CONTACT_MANAGER_OBSERVER_H_
+#define CHROME_BROWSER_CHROMEOS_CONTACTS_CONTACT_MANAGER_OBSERVER_H_
+
+class Profile;
+
+namespace contacts {
+
+class ContactManager;
+
+// Interface for classes that need to observe changes to ContactManager.
+class ContactManagerObserver {
+ public:
+ ContactManagerObserver() {}
+ virtual ~ContactManagerObserver() {}
+
+ // Called when |profile|'s contacts have been updated.
+ virtual void OnContactsUpdated(ContactManager* manager, Profile* profile) = 0;
satorux1 2012/08/03 21:16:22 Do you need to pass |manager|? Usually observers h
Daniel Erat 2012/08/03 22:12:07 You're right; since ContactManager is a singleton
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ContactManagerObserver);
+};
+
+} // namespace contacts
+
+#endif // CHROME_BROWSER_CHROMEOS_CONTACTS_CONTACT_MANAGER_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698