Home | History | Annotate | Download | only in browser
      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.
      4 
      5 #ifndef EXTENSIONS_BROWSER_PREF_NAMES_H_
      6 #define EXTENSIONS_BROWSER_PREF_NAMES_H_
      7 
      8 #include <string>
      9 
     10 #include "extensions/browser/extension_prefs_scope.h"
     11 
     12 namespace extensions {
     13 
     14 // Preference keys which are needed by both the ExtensionPrefs and by external
     15 // clients, such as APIs.
     16 namespace pref_names {
     17 
     18 // If the given |scope| is persisted, return true and populate |result| with the
     19 // appropriate pref name. If |scope| is not persisted, return false, and leave
     20 // |result| unchanged.
     21 bool ScopeToPrefName(ExtensionPrefsScope scope, std::string* result);
     22 
     23 // A preference that contains any extension-controlled preferences.
     24 extern const char kPrefPreferences[];
     25 
     26 // A preference that contains any extension-controlled incognito preferences.
     27 extern const char kPrefIncognitoPreferences[];
     28 
     29 // A preference that contains any extension-controlled regular-only preferences.
     30 extern const char kPrefRegularOnlyPreferences[];
     31 
     32 // A preference that contains extension-set content settings.
     33 extern const char kPrefContentSettings[];
     34 
     35 // A preference that contains extension-set content settings.
     36 extern const char kPrefIncognitoContentSettings[];
     37 
     38 }  // namespace pref_names
     39 
     40 }  // namespace extensions
     41 
     42 #endif  // EXTENSIONS_BROWSER_PREF_NAMES_H_
     43