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_PREFS_PREF_CHANGE_REGISTRAR_H_ | 5 #ifndef CHROME_BROWSER_PREFS_PREF_CHANGE_REGISTRAR_H_ |
6 #define CHROME_BROWSER_PREFS_PREF_CHANGE_REGISTRAR_H_ | 6 #define CHROME_BROWSER_PREFS_PREF_CHANGE_REGISTRAR_H_ |
7 #pragma once | |
8 | 7 |
9 #include <set> | 8 #include <set> |
10 #include <string> | 9 #include <string> |
11 | 10 |
12 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
13 | 12 |
14 class PrefService; | 13 class PrefService; |
15 | 14 |
16 namespace content { | 15 namespace content { |
17 class NotificationObserver; | 16 class NotificationObserver; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 typedef std::pair<std::string, content::NotificationObserver*> | 51 typedef std::pair<std::string, content::NotificationObserver*> |
53 ObserverRegistration; | 52 ObserverRegistration; |
54 | 53 |
55 std::set<ObserverRegistration> observers_; | 54 std::set<ObserverRegistration> observers_; |
56 PrefService* service_; | 55 PrefService* service_; |
57 | 56 |
58 DISALLOW_COPY_AND_ASSIGN(PrefChangeRegistrar); | 57 DISALLOW_COPY_AND_ASSIGN(PrefChangeRegistrar); |
59 }; | 58 }; |
60 | 59 |
61 #endif // CHROME_BROWSER_PREFS_PREF_CHANGE_REGISTRAR_H_ | 60 #endif // CHROME_BROWSER_PREFS_PREF_CHANGE_REGISTRAR_H_ |
OLD | NEW |