mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-04-17 06:57:13 +02:00
Added TChromium.NetworkPredictions property
Added TChromium.QuicAllowed property
This commit is contained in:
parent
5430db5601
commit
64a9eabcaf
@ -139,6 +139,8 @@ type
|
||||
FAcceptCookies : TCefCookiePref;
|
||||
FBlock3rdPartyCookies : boolean;
|
||||
FDefaultWindowInfoExStyle : cardinal;
|
||||
FNetworkPredictions : TCefNetworkPredictionOptions;
|
||||
FQuicAllowed : boolean;
|
||||
|
||||
{$IFDEF MSWINDOWS}
|
||||
FOldBrowserCompWndPrc : TFNWndProc;
|
||||
@ -387,6 +389,8 @@ type
|
||||
procedure SetOnRequestContextInitialized(const aValue : TOnRequestContextInitialized);
|
||||
procedure SetOnBeforePluginLoad(const aValue : TOnBeforePluginLoad);
|
||||
procedure SetMultiBrowserMode(aValue : boolean);
|
||||
procedure SetNetworkPredictions(aValue : TCefNetworkPredictionOptions);
|
||||
procedure SetQuicAllowed(aValue : boolean);
|
||||
|
||||
function CreateBrowserHost(aWindowInfo : PCefWindowInfo; const aURL : ustring; const aSettings : PCefBrowserSettings; const aExtraInfo : ICefDictionaryValue; const aContext : ICefRequestContext): boolean;
|
||||
function CreateBrowserHostSync(aWindowInfo : PCefWindowInfo; const aURL : ustring; const aSettings : PCefBrowserSettings; const aExtraInfo : ICefDictionaryValue; const aContext : ICefRequestContext): Boolean;
|
||||
@ -874,6 +878,8 @@ type
|
||||
property MultiBrowserMode : boolean read FMultiBrowserMode write SetMultiBrowserMode;
|
||||
property DefaultWindowInfoExStyle : cardinal read FDefaultWindowInfoExStyle write FDefaultWindowInfoExStyle;
|
||||
property Offline : boolean read FOffline write SetOffline;
|
||||
property NetworkPredictions : TCefNetworkPredictionOptions read FNetworkPredictions write SetNetworkPredictions;
|
||||
property QuicAllowed : boolean read FQuicAllowed write SetQuicAllowed;
|
||||
|
||||
property WebRTCIPHandlingPolicy : TCefWebRTCHandlingPolicy read FWebRTCIPHandlingPolicy write SetWebRTCIPHandlingPolicy;
|
||||
property WebRTCMultipleRoutes : TCefState read FWebRTCMultipleRoutes write SetWebRTCMultipleRoutes;
|
||||
@ -1182,6 +1188,8 @@ begin
|
||||
FAcceptCookies := cpAllow;
|
||||
FBlock3rdPartyCookies := False;
|
||||
FOffline := False;
|
||||
FNetworkPredictions := CEF_NETWORK_PREDICTION_WIFI_ONLY;
|
||||
FQuicAllowed := True;
|
||||
|
||||
if (GlobalCEFApp <> nil) then
|
||||
FHyperlinkAuditing := GlobalCEFApp.HyperlinkAuditing
|
||||
@ -2681,6 +2689,24 @@ begin
|
||||
if not(Initialized) then FMultiBrowserMode := aValue;
|
||||
end;
|
||||
|
||||
procedure TChromiumCore.SetNetworkPredictions(aValue : TCefNetworkPredictionOptions);
|
||||
begin
|
||||
if (FNetworkPredictions <> aValue) then
|
||||
begin
|
||||
FNetworkPredictions := aValue;
|
||||
FUpdatePreferences := True;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TChromiumCore.SetQuicAllowed(aValue : boolean);
|
||||
begin
|
||||
if (FQuicAllowed <> aValue) then
|
||||
begin
|
||||
FQuicAllowed := aValue;
|
||||
FUpdatePreferences := True;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TChromiumCore.SetAudioMuted(aValue : boolean);
|
||||
begin
|
||||
if Initialized then
|
||||
@ -3904,6 +3930,9 @@ begin
|
||||
|
||||
if (FWebRTCNonProxiedUDP <> STATE_DEFAULT) then
|
||||
UpdatePreference(aBrowser, 'webrtc.nonproxied_udp_enabled', (FWebRTCNonProxiedUDP = STATE_ENABLED));
|
||||
|
||||
UpdatePreference(aBrowser, 'net.network_prediction_options', integer(FNetworkPredictions));
|
||||
UpdatePreference(aBrowser, 'net.quic_allowed', FQuicAllowed);
|
||||
end;
|
||||
|
||||
procedure TChromiumCore.doUpdateOwnPreferences;
|
||||
|
@ -1135,6 +1135,15 @@ type
|
||||
CEF_CDM_REGISTRATION_ERROR_NOT_SUPPORTED
|
||||
);
|
||||
|
||||
// Values for browser preference "net.network_prediction_options"
|
||||
// https://source.chromium.org/chromium/chromium/src/+/master:chrome/browser/net/prediction_options.h
|
||||
TCefNetworkPredictionOptions = (
|
||||
CEF_NETWORK_PREDICTION_ALWAYS,
|
||||
CEF_NETWORK_PREDICTION_WIFI_ONLY,
|
||||
CEF_NETWORK_PREDICTION_NEVER
|
||||
// CEF_NETWORK_PREDICTION_DEFAULT = CEF_NETWORK_PREDICTION_WIFI_ONLY;
|
||||
);
|
||||
|
||||
// /include/internal/cef_types.h (cef_composition_underline_style_t)
|
||||
TCefCompositionUnderlineStyle = (
|
||||
CEF_CUS_SOLID,
|
||||
|
@ -2,7 +2,7 @@
|
||||
"UpdateLazPackages" : [
|
||||
{
|
||||
"ForceNotify" : true,
|
||||
"InternalVersion" : 173,
|
||||
"InternalVersion" : 174,
|
||||
"Name" : "cef4delphi_lazarus.lpk",
|
||||
"Version" : "84.3.10.0"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user