- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / browser / chromeos / login / multi_profile_first_run_notification.h
1 // Copyright 2013 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_LOGIN_MULTI_PROFILE_FIRST_RUN_NOTIFICATION_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MULTI_PROFILE_FIRST_RUN_NOTIFICATION_H_
7
8 #include "base/basictypes.h"
9 #include "base/memory/weak_ptr.h"
10
11 namespace user_prefs {
12 class PrefRegistrySyncable;
13 }
14
15 class Profile;
16
17 namespace chromeos {
18
19 class MultiProfileFirstRunNotification {
20  public:
21   MultiProfileFirstRunNotification();
22   ~MultiProfileFirstRunNotification();
23
24   static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
25
26   // Invoked when the user profile is prepared. Show the notification for
27   // the primary user when multiprofile is enabled and user has not dismissed
28   // it yet.
29   void UserProfilePrepared(Profile* user_profile);
30
31  private:
32   // Invoked when user dismisses the notification.
33   void OnDismissed(Profile* user_profile);
34
35   base::WeakPtrFactory<MultiProfileFirstRunNotification> weak_ptr_factory_;
36
37   DISALLOW_COPY_AND_ASSIGN(MultiProfileFirstRunNotification);
38 };
39
40 }  // namespace chromeos
41
42 #endif  // CHROME_BROWSER_CHROMEOS_LOGIN_MULTI_PROFILE_FIRST_RUN_NOTIFICATION_H_