| 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_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/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| 11 #include "chrome/browser/options_window.h" | 11 #include "chrome/browser/ui/options/options_window.h" |
| 12 #include "chrome/common/notification_observer.h" | 12 #include "chrome/common/notification_observer.h" |
| 13 | 13 |
| 14 class PrefService; | 14 class PrefService; |
| 15 class PrefSetObserver; | 15 class PrefSetObserver; |
| 16 | 16 |
| 17 namespace policy { | 17 namespace policy { |
| 18 | 18 |
| 19 // Common base functionality for the managed prefs warning banner displayed in | 19 // Common base functionality for the managed prefs warning banner displayed in |
| 20 // the preference dialogs when there are options that are controlled by | 20 // the preference dialogs when there are options that are controlled by |
| 21 // configuration policy and thus cannot be changed by the user. | 21 // configuration policy and thus cannot be changed by the user. |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |