OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_MANAGED_PREFS_BANNER_BASE_H_ | 5 #ifndef CHROME_BROWSER_MANAGED_PREFS_BANNER_BASE_H_ |
6 #define CHROME_BROWSER_MANAGED_PREFS_BANNER_BASE_H_ | 6 #define CHROME_BROWSER_MANAGED_PREFS_BANNER_BASE_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 | 33 |
34 protected: | 34 protected: |
35 // Update banner visibility. This is called whenever a preference change is | 35 // Update banner visibility. This is called whenever a preference change is |
36 // observed that may lead to changed visibility of the banner. Subclasses may | 36 // observed that may lead to changed visibility of the banner. Subclasses may |
37 // override this in order to show/hide the banner. | 37 // override this in order to show/hide the banner. |
38 virtual void OnUpdateVisibility() { } | 38 virtual void OnUpdateVisibility() { } |
39 | 39 |
40 private: | 40 private: |
41 PrefService* prefs_; | 41 PrefService* prefs_; |
42 typedef std::set<std::wstring> PrefSet; | 42 typedef std::set<std::wstring> PrefSet; |
43 const PrefSet relevant_prefs_; | 43 PrefSet relevant_prefs_; |
44 | 44 |
45 DISALLOW_COPY_AND_ASSIGN(ManagedPrefsBannerBase); | 45 DISALLOW_COPY_AND_ASSIGN(ManagedPrefsBannerBase); |
46 }; | 46 }; |
47 #endif // CHROME_BROWSER_MANAGED_PREFS_BANNER_BASE_H_ | 47 #endif // CHROME_BROWSER_MANAGED_PREFS_BANNER_BASE_H_ |
OLD | NEW |