2015-10-17 02:44:00 +02:00
|
|
|
// Copyright (c) 2013 The Chromium Embedded Framework 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 CEF_LIBCEF_BROWSER_PREFS_BROWSER_PREFS_H_
|
|
|
|
#define CEF_LIBCEF_BROWSER_PREFS_BROWSER_PREFS_H_
|
|
|
|
|
2016-05-25 01:35:43 +02:00
|
|
|
#include <memory>
|
2024-04-30 03:09:17 +02:00
|
|
|
#include <string>
|
2015-10-17 02:44:00 +02:00
|
|
|
|
2024-04-30 03:09:17 +02:00
|
|
|
class PrefRegistrySimple;
|
|
|
|
class Profile;
|
|
|
|
|
2015-10-17 02:44:00 +02:00
|
|
|
namespace browser_prefs {
|
|
|
|
|
2021-04-10 04:00:33 +02:00
|
|
|
// Register preferences specific to CEF.
|
2024-04-30 03:09:17 +02:00
|
|
|
// Called from chrome/browser/prefs/browser_prefs.cc
|
2022-10-26 00:50:29 +02:00
|
|
|
void RegisterLocalStatePrefs(PrefRegistrySimple* registry);
|
2021-04-10 04:00:33 +02:00
|
|
|
void RegisterProfilePrefs(PrefRegistrySimple* registry);
|
|
|
|
|
2021-04-28 19:12:06 +02:00
|
|
|
// Returns the value for populating the accept-language HTTP request header.
|
|
|
|
// |browser_context| and/or |browser| may be nullptr. If |expand| is true then
|
|
|
|
// base languages and Q values may be added.
|
2023-10-05 22:54:42 +02:00
|
|
|
std::string GetAcceptLanguageList(Profile* profile);
|
2023-10-05 22:35:02 +02:00
|
|
|
|
|
|
|
// Set preferences for a newly initialized Profile.
|
|
|
|
void SetInitialProfilePrefs(Profile* profile);
|
2020-09-25 03:40:47 +02:00
|
|
|
|
2015-10-17 02:44:00 +02:00
|
|
|
} // namespace browser_prefs
|
|
|
|
|
|
|
|
#endif // CEF_LIBCEF_BROWSER_PREFS_BROWSER_PREFS_H_
|