OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PREFS_PREF_SET_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_PREFS_PREF_SET_OBSERVER_H_ |
6 #define CHROME_BROWSER_PREFS_PREF_SET_OBSERVER_H_ | 6 #define CHROME_BROWSER_PREFS_PREF_SET_OBSERVER_H_ |
7 #pragma once | |
8 | 7 |
9 #include <set> | 8 #include <set> |
10 | 9 |
11 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
12 #include "chrome/browser/prefs/pref_change_registrar.h" | 11 #include "chrome/browser/prefs/pref_change_registrar.h" |
13 #include "chrome/browser/prefs/pref_service.h" | 12 #include "chrome/browser/prefs/pref_service.h" |
14 #include "content/public/browser/notification_observer.h" | 13 #include "content/public/browser/notification_observer.h" |
15 | 14 |
16 // Observes the state of a set of preferences and allows to query their combined | 15 // Observes the state of a set of preferences and allows to query their combined |
17 // managed bits. | 16 // managed bits. |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 PrefSet prefs_; | 51 PrefSet prefs_; |
53 | 52 |
54 PrefService* pref_service_; | 53 PrefService* pref_service_; |
55 PrefChangeRegistrar registrar_; | 54 PrefChangeRegistrar registrar_; |
56 content::NotificationObserver* observer_; | 55 content::NotificationObserver* observer_; |
57 | 56 |
58 DISALLOW_COPY_AND_ASSIGN(PrefSetObserver); | 57 DISALLOW_COPY_AND_ASSIGN(PrefSetObserver); |
59 }; | 58 }; |
60 | 59 |
61 #endif // CHROME_BROWSER_PREFS_PREF_SET_OBSERVER_H_ | 60 #endif // CHROME_BROWSER_PREFS_PREF_SET_OBSERVER_H_ |
OLD | NEW |