OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_POLICY_MANAGED_PREFS_BANNER_BASE_H_ | 5 #ifndef CHROME_BROWSER_POLICY_MANAGED_PREFS_BANNER_BASE_H_ |
6 #define CHROME_BROWSER_POLICY_MANAGED_PREFS_BANNER_BASE_H_ | 6 #define CHROME_BROWSER_POLICY_MANAGED_PREFS_BANNER_BASE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 // override this in order to show/hide the banner. | 53 // override this in order to show/hide the banner. |
54 virtual void OnUpdateVisibility() { } | 54 virtual void OnUpdateVisibility() { } |
55 | 55 |
56 private: | 56 private: |
57 // Initialization helper, called from the constructors. | 57 // Initialization helper, called from the constructors. |
58 void Init(PrefService* local_state, | 58 void Init(PrefService* local_state, |
59 PrefService* user_prefs, | 59 PrefService* user_prefs, |
60 OptionsPage page); | 60 OptionsPage page); |
61 | 61 |
62 // |NotificationObserver| implementation. | 62 // |NotificationObserver| implementation. |
63 virtual void Observe(NotificationType type, | 63 virtual void Observe(int type, |
64 const NotificationSource& source, | 64 const NotificationSource& source, |
65 const NotificationDetails& details); | 65 const NotificationDetails& details); |
66 | 66 |
67 scoped_ptr<PrefSetObserver> local_state_set_; | 67 scoped_ptr<PrefSetObserver> local_state_set_; |
68 scoped_ptr<PrefSetObserver> user_pref_set_; | 68 scoped_ptr<PrefSetObserver> user_pref_set_; |
69 | 69 |
70 DISALLOW_COPY_AND_ASSIGN(ManagedPrefsBannerBase); | 70 DISALLOW_COPY_AND_ASSIGN(ManagedPrefsBannerBase); |
71 }; | 71 }; |
72 | 72 |
73 } // namespace policy | 73 } // namespace policy |
74 | 74 |
75 #endif // CHROME_BROWSER_POLICY_MANAGED_PREFS_BANNER_BASE_H_ | 75 #endif // CHROME_BROWSER_POLICY_MANAGED_PREFS_BANNER_BASE_H_ |
OLD | NEW |