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

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

Issue 179813008: Move PolicyLoaderMac::CreateValueFromProperty to a generic file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: POLICY_EXPORT Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « components/components_tests.gyp ('k') | components/policy/core/common/mac_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_POLICY_CORE_COMMON_MAC_UTIL_H_
6 #define COMPONENTS_POLICY_CORE_COMMON_MAC_UTIL_H_
7
8 #include <CoreFoundation/CoreFoundation.h>
9
10 #include "base/memory/scoped_ptr.h"
11 #include "components/policy/policy_export.h"
12
13 // This file contains utilities shared by both Mac OS X and iOS.
14
15 namespace base {
16 class Value;
17 }
18
19 namespace policy {
20
21 // Converts a CFPropertyListRef to the equivalent base::Value. CFDictionary
22 // entries whose key is not a CFStringRef are ignored.
dconnelly 2014/03/04 21:13:36 why?
Joao da Silva 2014/03/04 23:18:01 Because that's supported in CFDictionaries but not
23 // Returns NULL if an invalid CFType was found, such as CFDate or CFData.
24 // NSDictionary is toll-free bridged to CFDictionaryRef, which is a
25 // CFPropertyListRef, so it can also be passed directly here. Same for the
26 // other NS* classes that map to CF* properties.
27 POLICY_EXPORT scoped_ptr<base::Value> PropertyToValue(
28 CFPropertyListRef property);
29
30 } // namespace policy
31
32 #endif // COMPONENTS_POLICY_CORE_COMMON_MAC_UTIL_H_
OLDNEW
« no previous file with comments | « components/components_tests.gyp ('k') | components/policy/core/common/mac_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698