You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-11-23 21:34:53 +02:00
Added uCEFApplicationCore.pas to project files
- Replaced response.GetHeader by response.GetHeaderByName in ResponseFilterBrowser demo
This commit is contained in:
@@ -493,7 +493,7 @@ begin
|
|||||||
FFilterInit := True;
|
FFilterInit := True;
|
||||||
|
|
||||||
CheckResponseHeaders(response);
|
CheckResponseHeaders(response);
|
||||||
UpdateRscEncoding(response.MimeType, response.GetHeader('Content-Type'));
|
UpdateRscEncoding(response.MimeType, response.GetHeaderByName('Content-Type'));
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
Result := nil;
|
Result := nil;
|
||||||
@@ -557,7 +557,7 @@ begin
|
|||||||
try
|
try
|
||||||
FStreamCS.Acquire;
|
FStreamCS.Acquire;
|
||||||
|
|
||||||
TempContentEncoding := trim(lowercase(response.GetHeader('Content-Encoding')));
|
TempContentEncoding := trim(lowercase(response.GetHeaderByName('Content-Encoding')));
|
||||||
|
|
||||||
if (length(TempContentEncoding) > 0) and (TempContentEncoding <> 'identity') then
|
if (length(TempContentEncoding) > 0) and (TempContentEncoding <> 'identity') then
|
||||||
begin
|
begin
|
||||||
@@ -568,7 +568,7 @@ begin
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
TempContentLength := trim(response.GetHeader('Content-Length'));
|
TempContentLength := trim(response.GetHeaderByName('Content-Length'));
|
||||||
|
|
||||||
if (length(TempContentLength) > 0) and
|
if (length(TempContentLength) > 0) and
|
||||||
TryStrToInt(TempContentLength, TempLen) and
|
TryStrToInt(TempContentLength, TempLen) and
|
||||||
@@ -601,7 +601,7 @@ begin
|
|||||||
// we still can use this event to know when the resource is complete
|
// we still can use this event to know when the resource is complete
|
||||||
if IsMyResource(request) and CopyScriptBtn.Checked then
|
if IsMyResource(request) and CopyScriptBtn.Checked then
|
||||||
begin
|
begin
|
||||||
UpdateRscEncoding(response.MimeType, response.GetHeader('Content-Type'));
|
UpdateRscEncoding(response.MimeType, response.GetHeaderByName('Content-Type'));
|
||||||
|
|
||||||
// Only send the message if this event is triggered before we have a OnFilter event with data_in = nil
|
// Only send the message if this event is triggered before we have a OnFilter event with data_in = nil
|
||||||
if not(FRscCompleted) then
|
if not(FRscCompleted) then
|
||||||
@@ -624,7 +624,7 @@ begin
|
|||||||
if not(FRscCompleted) and (response <> nil) and IsMyResource(request) then
|
if not(FRscCompleted) and (response <> nil) and IsMyResource(request) then
|
||||||
begin
|
begin
|
||||||
CheckResponseHeaders(response);
|
CheckResponseHeaders(response);
|
||||||
UpdateRscEncoding(response.MimeType, response.GetHeader('Content-Type'));
|
UpdateRscEncoding(response.MimeType, response.GetHeaderByName('Content-Type'));
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|||||||
@@ -172,7 +172,8 @@ contains
|
|||||||
uCEFResourceRequestHandler in '..\source\uCEFResourceRequestHandler.pas',
|
uCEFResourceRequestHandler in '..\source\uCEFResourceRequestHandler.pas',
|
||||||
uCEFResourceSkipCallback in '..\source\uCEFResourceSkipCallback.pas',
|
uCEFResourceSkipCallback in '..\source\uCEFResourceSkipCallback.pas',
|
||||||
uCEFResourceReadCallback in '..\source\uCEFResourceReadCallback.pas',
|
uCEFResourceReadCallback in '..\source\uCEFResourceReadCallback.pas',
|
||||||
uCEFSentinel in '..\source\uCEFSentinel.pas';
|
uCEFSentinel in '..\source\uCEFSentinel.pas',
|
||||||
|
uCEFApplicationCore in '..\source\uCEFApplicationCore.pas';
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|||||||
@@ -267,6 +267,7 @@
|
|||||||
<DCCReference Include="..\source\uCEFResourceSkipCallback.pas"/>
|
<DCCReference Include="..\source\uCEFResourceSkipCallback.pas"/>
|
||||||
<DCCReference Include="..\source\uCEFResourceReadCallback.pas"/>
|
<DCCReference Include="..\source\uCEFResourceReadCallback.pas"/>
|
||||||
<DCCReference Include="..\source\uCEFSentinel.pas"/>
|
<DCCReference Include="..\source\uCEFSentinel.pas"/>
|
||||||
|
<DCCReference Include="..\source\uCEFApplicationCore.pas"/>
|
||||||
<BuildConfiguration Include="Base">
|
<BuildConfiguration Include="Base">
|
||||||
<Key>Base</Key>
|
<Key>Base</Key>
|
||||||
</BuildConfiguration>
|
</BuildConfiguration>
|
||||||
|
|||||||
@@ -169,6 +169,7 @@ contains
|
|||||||
uCEFResourceRequestHandler in '..\source\uCEFResourceRequestHandler.pas',
|
uCEFResourceRequestHandler in '..\source\uCEFResourceRequestHandler.pas',
|
||||||
uCEFResourceSkipCallback in '..\source\uCEFResourceSkipCallback.pas',
|
uCEFResourceSkipCallback in '..\source\uCEFResourceSkipCallback.pas',
|
||||||
uCEFResourceReadCallback in '..\source\uCEFResourceReadCallback.pas',
|
uCEFResourceReadCallback in '..\source\uCEFResourceReadCallback.pas',
|
||||||
uCEFSentinel in '..\source\uCEFSentinel.pas';
|
uCEFSentinel in '..\source\uCEFSentinel.pas',
|
||||||
|
uCEFApplicationCore in '..\source\uCEFApplicationCore.pas';
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|||||||
@@ -177,7 +177,8 @@ contains
|
|||||||
uCEFResourceRequestHandler in '..\source\uCEFResourceRequestHandler.pas',
|
uCEFResourceRequestHandler in '..\source\uCEFResourceRequestHandler.pas',
|
||||||
uCEFResourceSkipCallback in '..\source\uCEFResourceSkipCallback.pas',
|
uCEFResourceSkipCallback in '..\source\uCEFResourceSkipCallback.pas',
|
||||||
uCEFResourceReadCallback in '..\source\uCEFResourceReadCallback.pas',
|
uCEFResourceReadCallback in '..\source\uCEFResourceReadCallback.pas',
|
||||||
uCEFSentinel in '..\source\uCEFSentinel.pas';
|
uCEFSentinel in '..\source\uCEFSentinel.pas',
|
||||||
|
uCEFApplicationCore in '..\source\uCEFApplicationCore.pas';
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|||||||
@@ -293,6 +293,7 @@
|
|||||||
<DCCReference Include="..\source\uCEFResourceSkipCallback.pas"/>
|
<DCCReference Include="..\source\uCEFResourceSkipCallback.pas"/>
|
||||||
<DCCReference Include="..\source\uCEFResourceReadCallback.pas"/>
|
<DCCReference Include="..\source\uCEFResourceReadCallback.pas"/>
|
||||||
<DCCReference Include="..\source\uCEFSentinel.pas"/>
|
<DCCReference Include="..\source\uCEFSentinel.pas"/>
|
||||||
|
<DCCReference Include="..\source\uCEFApplicationCore.pas"/>
|
||||||
<BuildConfiguration Include="Base">
|
<BuildConfiguration Include="Base">
|
||||||
<Key>Base</Key>
|
<Key>Base</Key>
|
||||||
</BuildConfiguration>
|
</BuildConfiguration>
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
<Description Value="CEF4Delphi is an open source project created by Salvador Díaz Fau to embed Chromium-based browsers in applications made with Delphi or Lazarus/FPC."/>
|
<Description Value="CEF4Delphi is an open source project created by Salvador Díaz Fau to embed Chromium-based browsers in applications made with Delphi or Lazarus/FPC."/>
|
||||||
<License Value="MPL 1.1"/>
|
<License Value="MPL 1.1"/>
|
||||||
<Version Major="78" Minor="3" Release="1"/>
|
<Version Major="78" Minor="3" Release="1"/>
|
||||||
<Files Count="144">
|
<Files Count="145">
|
||||||
<Item1>
|
<Item1>
|
||||||
<Filename Value="..\source\uCEFAccessibilityHandler.pas"/>
|
<Filename Value="..\source\uCEFAccessibilityHandler.pas"/>
|
||||||
<UnitName Value="uCEFAccessibilityHandler"/>
|
<UnitName Value="uCEFAccessibilityHandler"/>
|
||||||
@@ -608,6 +608,10 @@
|
|||||||
<HasRegisterProc Value="True"/>
|
<HasRegisterProc Value="True"/>
|
||||||
<UnitName Value="uCEFSentinel"/>
|
<UnitName Value="uCEFSentinel"/>
|
||||||
</Item144>
|
</Item144>
|
||||||
|
<Item145>
|
||||||
|
<Filename Value="..\source\uCEFApplicationCore.pas"/>
|
||||||
|
<UnitName Value="uCEFApplicationCore"/>
|
||||||
|
</Item145>
|
||||||
</Files>
|
</Files>
|
||||||
<RequiredPkgs Count="3">
|
<RequiredPkgs Count="3">
|
||||||
<Item1>
|
<Item1>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"UpdateLazPackages" : [
|
"UpdateLazPackages" : [
|
||||||
{
|
{
|
||||||
"ForceNotify" : true,
|
"ForceNotify" : true,
|
||||||
"InternalVersion" : 59,
|
"InternalVersion" : 60,
|
||||||
"Name" : "cef4delphi_lazarus.lpk",
|
"Name" : "cef4delphi_lazarus.lpk",
|
||||||
"Version" : "78.3.1.0"
|
"Version" : "78.3.1.0"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user