Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(418)

Side by Side Diff: chrome/browser/prefs/pref_set_observer.h

Issue 10857031: Move PrefMember and PrefChangeRegistrar to api directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to parent Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/prefs/pref_service_unittest.cc ('k') | chrome/browser/prefs/scoped_user_pref_update_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698