summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/contacts/contact_manager_observer.h
blob: 1913f385ed6c6cd4e5a1e0c1f28755158a4ab814 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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(Profile* profile) = 0;

 private:
  DISALLOW_COPY_AND_ASSIGN(ContactManagerObserver);
};

}  // namespace contacts

#endif  // CHROME_BROWSER_CHROMEOS_CONTACTS_CONTACT_MANAGER_OBSERVER_H_