Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / chromeos / login / multi_profile_first_run_notification.h
blob0a0d98cf642f78d81d432b0502fd1c256b4b37cc
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.
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MULTI_PROFILE_FIRST_RUN_NOTIFICATION_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MULTI_PROFILE_FIRST_RUN_NOTIFICATION_H_
8 #include "base/basictypes.h"
9 #include "base/memory/weak_ptr.h"
11 namespace user_prefs {
12 class PrefRegistrySyncable;
15 class Profile;
17 namespace chromeos {
19 class MultiProfileFirstRunNotification {
20 public:
21 MultiProfileFirstRunNotification();
22 ~MultiProfileFirstRunNotification();
24 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
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);
31 private:
32 // Invoked when user dismisses the notification.
33 void OnDismissed(Profile* user_profile);
35 base::WeakPtrFactory<MultiProfileFirstRunNotification> weak_ptr_factory_;
37 DISALLOW_COPY_AND_ASSIGN(MultiProfileFirstRunNotification);
40 } // namespace chromeos
42 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MULTI_PROFILE_FIRST_RUN_NOTIFICATION_H_