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_PROTECTOR_BASE_PREFS_CHANGE_H_ | 5 #ifndef CHROME_BROWSER_PROTECTOR_BASE_PREFS_CHANGE_H_ |
6 #define CHROME_BROWSER_PROTECTOR_BASE_PREFS_CHANGE_H_ | 6 #define CHROME_BROWSER_PROTECTOR_BASE_PREFS_CHANGE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "chrome/browser/api/prefs/pref_change_registrar.h" | 11 #include "base/prefs/public/pref_change_registrar.h" |
12 #include "chrome/browser/protector/base_setting_change.h" | 12 #include "chrome/browser/protector/base_setting_change.h" |
13 #include "content/public/browser/notification_observer.h" | 13 #include "content/public/browser/notification_observer.h" |
14 | 14 |
15 namespace protector { | 15 namespace protector { |
16 | 16 |
17 // BaseSettingChange subclass for PrefService-managed settings changes. | 17 // BaseSettingChange subclass for PrefService-managed settings changes. |
18 class BasePrefsChange : public BaseSettingChange, | 18 class BasePrefsChange : public BaseSettingChange, |
19 public content::NotificationObserver { | 19 public content::NotificationObserver { |
20 public: | 20 public: |
21 BasePrefsChange(); | 21 BasePrefsChange(); |
(...skipping 19 matching lines...) Expand all Loading... |
41 const content::NotificationDetails& details) OVERRIDE; | 41 const content::NotificationDetails& details) OVERRIDE; |
42 | 42 |
43 PrefChangeRegistrar pref_observer_; | 43 PrefChangeRegistrar pref_observer_; |
44 | 44 |
45 DISALLOW_COPY_AND_ASSIGN(BasePrefsChange); | 45 DISALLOW_COPY_AND_ASSIGN(BasePrefsChange); |
46 }; | 46 }; |
47 | 47 |
48 } // namespace protector | 48 } // namespace protector |
49 | 49 |
50 #endif // CHROME_BROWSER_PROTECTOR_BASE_PREFS_CHANGE_H_ | 50 #endif // CHROME_BROWSER_PROTECTOR_BASE_PREFS_CHANGE_H_ |
OLD | NEW |