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 // A helper class that assists preferences in firing notifications when lists | 5 // A helper class that assists preferences in firing notifications when lists |
6 // are changed. | 6 // are changed. |
7 | 7 |
8 #ifndef CHROME_BROWSER_SCOPED_PREF_UPDATE_H_ | 8 #ifndef CHROME_BROWSER_PREFS_SCOPED_PREF_UPDATE_H_ |
9 #define CHROME_BROWSER_SCOPED_PREF_UPDATE_H_ | 9 #define CHROME_BROWSER_PREFS_SCOPED_PREF_UPDATE_H_ |
10 #pragma once | 10 #pragma once |
11 | 11 |
12 #include "chrome/browser/pref_service.h" | 12 #include "chrome/browser/prefs/pref_service.h" |
13 | 13 |
14 class ScopedPrefUpdate { | 14 class ScopedPrefUpdate { |
15 public: | 15 public: |
16 ScopedPrefUpdate(PrefService* service, const char* path); | 16 ScopedPrefUpdate(PrefService* service, const char* path); |
17 // TODO(viettrungluu): deprecate: | 17 // TODO(viettrungluu): deprecate: |
18 ScopedPrefUpdate(PrefService* service, const wchar_t* path); | 18 ScopedPrefUpdate(PrefService* service, const wchar_t* path); |
19 ~ScopedPrefUpdate(); | 19 ~ScopedPrefUpdate(); |
20 | 20 |
21 private: | 21 private: |
22 PrefService* service_; | 22 PrefService* service_; |
23 std::string path_; | 23 std::string path_; |
24 }; | 24 }; |
25 | 25 |
26 #endif // CHROME_BROWSER_SCOPED_PREF_UPDATE_H_ | 26 #endif // CHROME_BROWSER_PREFS_SCOPED_PREF_UPDATE_H_ |
OLD | NEW |