blob: 3657a9ad7ae2782381c1255ac2e0bb19d1eb8f43 (
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
30
31
32
33
|
// Copyright (c) 2011 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_PROFILES_PROFILE_INFO_CACHE_OBSERVER_H_
#define CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_OBSERVER_H_
#pragma once
#include "ui/gfx/image/image.h"
class FilePath;
// This class provides an Observer interface to watch for changes to the
// ProfileInfoCache.
class ProfileInfoCacheObserver {
public:
virtual ~ProfileInfoCacheObserver() {}
virtual void OnProfileAdded(const FilePath& profile_path) = 0;
virtual void OnProfileWillBeRemoved(const FilePath& profile_path) = 0;
virtual void OnProfileWasRemoved(const FilePath& profile_path,
const string16& profile_name) = 0;
virtual void OnProfileNameChanged(const FilePath& profile_path,
const string16& old_profile_name) = 0;
virtual void OnProfileAvatarChanged(const FilePath& profile_path) = 0;
protected:
ProfileInfoCacheObserver() {}
DISALLOW_COPY_AND_ASSIGN(ProfileInfoCacheObserver);
};
#endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_OBSERVER_H_
|