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;
|
FAcceptCookies : TCefCookiePref;
|
||||||
FBlock3rdPartyCookies : boolean;
|
FBlock3rdPartyCookies : boolean;
|
||||||
FDefaultWindowInfoExStyle : cardinal;
|
FDefaultWindowInfoExStyle : cardinal;
|
||||||
|
FNetworkPredictions : TCefNetworkPredictionOptions;
|
||||||
|
FQuicAllowed : boolean;
|
||||||
|
|
||||||
{$IFDEF MSWINDOWS}
|
{$IFDEF MSWINDOWS}
|
||||||
FOldBrowserCompWndPrc : TFNWndProc;
|
FOldBrowserCompWndPrc : TFNWndProc;
|
||||||
@ -387,6 +389,8 @@ type
|
|||||||
procedure SetOnRequestContextInitialized(const aValue : TOnRequestContextInitialized);
|
procedure SetOnRequestContextInitialized(const aValue : TOnRequestContextInitialized);
|
||||||
procedure SetOnBeforePluginLoad(const aValue : TOnBeforePluginLoad);
|
procedure SetOnBeforePluginLoad(const aValue : TOnBeforePluginLoad);
|
||||||
procedure SetMultiBrowserMode(aValue : boolean);
|
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 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;
|
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 MultiBrowserMode : boolean read FMultiBrowserMode write SetMultiBrowserMode;
|
||||||
property DefaultWindowInfoExStyle : cardinal read FDefaultWindowInfoExStyle write FDefaultWindowInfoExStyle;
|
property DefaultWindowInfoExStyle : cardinal read FDefaultWindowInfoExStyle write FDefaultWindowInfoExStyle;
|
||||||
property Offline : boolean read FOffline write SetOffline;
|
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 WebRTCIPHandlingPolicy : TCefWebRTCHandlingPolicy read FWebRTCIPHandlingPolicy write SetWebRTCIPHandlingPolicy;
|
||||||
property WebRTCMultipleRoutes : TCefState read FWebRTCMultipleRoutes write SetWebRTCMultipleRoutes;
|
property WebRTCMultipleRoutes : TCefState read FWebRTCMultipleRoutes write SetWebRTCMultipleRoutes;
|
||||||
@ -1182,6 +1188,8 @@ begin
|
|||||||
FAcceptCookies := cpAllow;
|
FAcceptCookies := cpAllow;
|
||||||
FBlock3rdPartyCookies := False;
|
FBlock3rdPartyCookies := False;
|
||||||
FOffline := False;
|
FOffline := False;
|
||||||
|
FNetworkPredictions := CEF_NETWORK_PREDICTION_WIFI_ONLY;
|
||||||
|
FQuicAllowed := True;
|
||||||
|
|
||||||
if (GlobalCEFApp <> nil) then
|
if (GlobalCEFApp <> nil) then
|
||||||
FHyperlinkAuditing := GlobalCEFApp.HyperlinkAuditing
|
FHyperlinkAuditing := GlobalCEFApp.HyperlinkAuditing
|
||||||
@ -2681,6 +2689,24 @@ begin
|
|||||||
if not(Initialized) then FMultiBrowserMode := aValue;
|
if not(Initialized) then FMultiBrowserMode := aValue;
|
||||||
end;
|
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);
|
procedure TChromiumCore.SetAudioMuted(aValue : boolean);
|
||||||
begin
|
begin
|
||||||
if Initialized then
|
if Initialized then
|
||||||
@ -3904,6 +3930,9 @@ begin
|
|||||||
|
|
||||||
if (FWebRTCNonProxiedUDP <> STATE_DEFAULT) then
|
if (FWebRTCNonProxiedUDP <> STATE_DEFAULT) then
|
||||||
UpdatePreference(aBrowser, 'webrtc.nonproxied_udp_enabled', (FWebRTCNonProxiedUDP = STATE_ENABLED));
|
UpdatePreference(aBrowser, 'webrtc.nonproxied_udp_enabled', (FWebRTCNonProxiedUDP = STATE_ENABLED));
|
||||||
|
|
||||||
|
UpdatePreference(aBrowser, 'net.network_prediction_options', integer(FNetworkPredictions));
|
||||||
|
UpdatePreference(aBrowser, 'net.quic_allowed', FQuicAllowed);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TChromiumCore.doUpdateOwnPreferences;
|
procedure TChromiumCore.doUpdateOwnPreferences;
|
||||||
|
@ -1135,6 +1135,15 @@ type
|
|||||||
CEF_CDM_REGISTRATION_ERROR_NOT_SUPPORTED
|
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)
|
// /include/internal/cef_types.h (cef_composition_underline_style_t)
|
||||||
TCefCompositionUnderlineStyle = (
|
TCefCompositionUnderlineStyle = (
|
||||||
CEF_CUS_SOLID,
|
CEF_CUS_SOLID,
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"UpdateLazPackages" : [
|
"UpdateLazPackages" : [
|
||||||
{
|
{
|
||||||
"ForceNotify" : true,
|
"ForceNotify" : true,
|
||||||
"InternalVersion" : 173,
|
"InternalVersion" : 174,
|
||||||
"Name" : "cef4delphi_lazarus.lpk",
|
"Name" : "cef4delphi_lazarus.lpk",
|
||||||
"Version" : "84.3.10.0"
|
"Version" : "84.3.10.0"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user