| 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  |   7  | 
|   8 #include <set> |   8 #include <set> | 
|   9  |   9  | 
|  10 #include "base/basictypes.h" |  10 #include "base/basictypes.h" | 
|  11 #include "chrome/browser/prefs/pref_change_registrar.h" |  11 #include "chrome/browser/api/prefs/pref_change_registrar.h" | 
|  12 #include "chrome/browser/prefs/pref_service.h" |  12 #include "chrome/browser/prefs/pref_service.h" | 
|  13 #include "content/public/browser/notification_observer.h" |  13 #include "content/public/browser/notification_observer.h" | 
|  14  |  14  | 
|  15 // 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 | 
|  16 // managed bits. |  16 // managed bits. | 
|  17 class PrefSetObserver : public content::NotificationObserver { |  17 class PrefSetObserver : public content::NotificationObserver { | 
|  18  public: |  18  public: | 
|  19   // Initialize with an empty set of preferences. |  19   // Initialize with an empty set of preferences. | 
|  20   PrefSetObserver(PrefService* pref_service, |  20   PrefSetObserver(PrefService* pref_service, | 
|  21                   content::NotificationObserver* observer); |  21                   content::NotificationObserver* observer); | 
| (...skipping 29 matching lines...) Expand all  Loading... | 
|  51   PrefSet prefs_; |  51   PrefSet prefs_; | 
|  52  |  52  | 
|  53   PrefService* pref_service_; |  53   PrefService* pref_service_; | 
|  54   PrefChangeRegistrar registrar_; |  54   PrefChangeRegistrar registrar_; | 
|  55   content::NotificationObserver* observer_; |  55   content::NotificationObserver* observer_; | 
|  56  |  56  | 
|  57   DISALLOW_COPY_AND_ASSIGN(PrefSetObserver); |  57   DISALLOW_COPY_AND_ASSIGN(PrefSetObserver); | 
|  58 }; |  58 }; | 
|  59  |  59  | 
|  60 #endif  // CHROME_BROWSER_PREFS_PREF_SET_OBSERVER_H_ |  60 #endif  // CHROME_BROWSER_PREFS_PREF_SET_OBSERVER_H_ | 
| OLD | NEW |