Chromium Embedded Framework (CEF)
128.4.2+g5c235a2+chromium-128.0.6613.18
|
Class that manages custom preference registrations. More...
#include "include/cef_preference.h"
Public Member Functions | |
virtual bool | AddPreference (const CefString &name, CefRefPtr< CefValue > default_value)=0 |
Register a preference with the specified |name| and |default_value|. More... | |
Public Member Functions inherited from CefBaseScoped | |
virtual | ~CefBaseScoped () |
Class that manages custom preference registrations.
|
pure virtual |
Register a preference with the specified |name| and |default_value|.
To avoid conflicts with built-in preferences the |name| value should contain an application-specific prefix followed by a period (e.g. "myapp.value"). The contents of |default_value| will be copied. The data type for the preference will be inferred from |default_value|'s type and cannot be changed after registration. Returns true on success. Returns false if |name| is already registered or if |default_value| has an invalid type. This method must be called from within the scope of the CefBrowserProcessHandler::OnRegisterCustomPreferences callback.