| 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_PREFERENCES_MAC_H_ | 5 #ifndef CHROME_BROWSER_PREFERENCES_MAC_H_ |
| 6 #define CHROME_BROWSER_PREFERENCES_MAC_H_ | 6 #define CHROME_BROWSER_PREFERENCES_MAC_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <CoreFoundation/CoreFoundation.h> | 9 #include <CoreFoundation/CoreFoundation.h> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 | 12 |
| 13 // Wraps a small part of the CFPreferences API surface in a very thin layer, to | 13 // Wraps a small part of the CFPreferences API surface in a very thin layer, to |
| 14 // allow it to be mocked out for testing. | 14 // allow it to be mocked out for testing. |
| 15 | 15 |
| 16 // See CFPreferences documentation for function documentation, as these call | 16 // See CFPreferences documentation for function documentation, as these call |
| 17 // through directly to their CFPreferences equivalents (Foo -> | 17 // through directly to their CFPreferences equivalents (Foo -> |
| 18 // CFPreferencesFoo). | 18 // CFPreferencesFoo). |
| 19 class MacPreferences { | 19 class MacPreferences { |
| 20 public: | 20 public: |
| 21 MacPreferences() {} | 21 MacPreferences() {} |
| 22 virtual ~MacPreferences() {} | 22 virtual ~MacPreferences() {} |
| 23 | 23 |
| 24 virtual Boolean AppSynchronize(CFStringRef applicationID); |
| 25 |
| 24 virtual CFPropertyListRef CopyAppValue(CFStringRef key, | 26 virtual CFPropertyListRef CopyAppValue(CFStringRef key, |
| 25 CFStringRef applicationID); | 27 CFStringRef applicationID); |
| 26 | 28 |
| 27 virtual Boolean AppValueIsForced(CFStringRef key, CFStringRef applicationID); | 29 virtual Boolean AppValueIsForced(CFStringRef key, CFStringRef applicationID); |
| 28 | 30 |
| 29 private: | 31 private: |
| 30 DISALLOW_COPY_AND_ASSIGN(MacPreferences); | 32 DISALLOW_COPY_AND_ASSIGN(MacPreferences); |
| 31 }; | 33 }; |
| 32 | 34 |
| 33 #endif // CHROME_BROWSER_PREFERENCES_MAC_H_ | 35 #endif // CHROME_BROWSER_PREFERENCES_MAC_H_ |
| OLD | NEW |