Ignore title parameter for navigator.registerProtocolHandler
[chromium-blink-merge.git] / components / policy / core / common / preferences_mac.h
blob5bb14c0ab6abedc2de22be04e3a2fdd507b0e323
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
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_POLICY_CORE_COMMON_PREFERENCES_MAC_H_
6 #define COMPONENTS_POLICY_CORE_COMMON_PREFERENCES_MAC_H_
8 #include <CoreFoundation/CoreFoundation.h>
10 #include "base/basictypes.h"
11 #include "components/policy/policy_export.h"
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.
16 // See CFPreferences documentation for function documentation, as these call
17 // through directly to their CFPreferences equivalents (Foo ->
18 // CFPreferencesFoo).
19 class POLICY_EXPORT MacPreferences {
20 public:
21 MacPreferences() {}
22 virtual ~MacPreferences() {}
24 virtual Boolean AppSynchronize(CFStringRef applicationID);
26 virtual CFPropertyListRef CopyAppValue(CFStringRef key,
27 CFStringRef applicationID);
29 virtual Boolean AppValueIsForced(CFStringRef key, CFStringRef applicationID);
31 private:
32 DISALLOW_COPY_AND_ASSIGN(MacPreferences);
35 #endif // COMPONENTS_POLICY_CORE_COMMON_PREFERENCES_MAC_H_