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

Side by Side Diff: components/policy/core/common/preferences_mac.h

Issue 1543423002: Switch to standard integer types in components/policy/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 COMPONENTS_POLICY_CORE_COMMON_PREFERENCES_MAC_H_ 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_PREFERENCES_MAC_H_
6 #define COMPONENTS_POLICY_CORE_COMMON_PREFERENCES_MAC_H_ 6 #define COMPONENTS_POLICY_CORE_COMMON_PREFERENCES_MAC_H_
7 7
8 #include <CoreFoundation/CoreFoundation.h> 8 #include <CoreFoundation/CoreFoundation.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/macros.h"
11 #include "components/policy/policy_export.h" 11 #include "components/policy/policy_export.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 POLICY_EXPORT MacPreferences { 19 class POLICY_EXPORT MacPreferences {
20 public: 20 public:
21 MacPreferences() {} 21 MacPreferences() {}
22 virtual ~MacPreferences() {} 22 virtual ~MacPreferences() {}
23 23
24 virtual Boolean AppSynchronize(CFStringRef applicationID); 24 virtual Boolean AppSynchronize(CFStringRef applicationID);
25 25
26 virtual CFPropertyListRef CopyAppValue(CFStringRef key, 26 virtual CFPropertyListRef CopyAppValue(CFStringRef key,
27 CFStringRef applicationID); 27 CFStringRef applicationID);
28 28
29 virtual Boolean AppValueIsForced(CFStringRef key, CFStringRef applicationID); 29 virtual Boolean AppValueIsForced(CFStringRef key, CFStringRef applicationID);
30 30
31 private: 31 private:
32 DISALLOW_COPY_AND_ASSIGN(MacPreferences); 32 DISALLOW_COPY_AND_ASSIGN(MacPreferences);
33 }; 33 };
34 34
35 #endif // COMPONENTS_POLICY_CORE_COMMON_PREFERENCES_MAC_H_ 35 #endif // COMPONENTS_POLICY_CORE_COMMON_PREFERENCES_MAC_H_
OLDNEW
« no previous file with comments | « components/policy/core/common/policy_test_utils.cc ('k') | components/policy/core/common/preg_parser_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698