summaryrefslogtreecommitdiffstats
path: root/extensions/browser/pref_names.h
blob: f70b525b15c2225fce0e1b62ac16e5129ecf8f92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef EXTENSIONS_BROWSER_PREF_NAMES_H_
#define EXTENSIONS_BROWSER_PREF_NAMES_H_

#include <string>

#include "extensions/browser/extension_prefs_scope.h"

namespace extensions {

// Preference keys which are needed by both the ExtensionPrefs and by external
// clients, such as APIs.
namespace pref_names {

// If the given |scope| is persisted, return true and populate |result| with the
// appropriate pref name. If |scope| is not persisted, return false, and leave
// |result| unchanged.
bool ScopeToPrefName(ExtensionPrefsScope scope, std::string* result);

// A preference that contains any extension-controlled preferences.
extern const char kPrefPreferences[];

// A preference that contains any extension-controlled incognito preferences.
extern const char kPrefIncognitoPreferences[];

// A preference that contains any extension-controlled regular-only preferences.
extern const char kPrefRegularOnlyPreferences[];

// A preference that contains extension-set content settings.
extern const char kPrefContentSettings[];

// A preference that contains extension-set content settings.
extern const char kPrefIncognitoContentSettings[];

}  // namespace pref_names

}  // namespace extensions

#endif  // EXTENSIONS_BROWSER_PREF_NAMES_H_