Skip to content

Commit

Permalink
Upgrade to 3.2883.1552
Browse files Browse the repository at this point in the history
Add isMainFrame to IRequestContextHandler.OnBeforePluginLoad (CEF API changed)
  • Loading branch information
amaitland committed Feb 1, 2017
1 parent 2b4840f commit 8a9b0de
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\cef.sdk.3.2883.1545\build\cef.sdk.props" Condition="Exists('..\packages\cef.sdk.3.2883.1545\build\cef.sdk.props')" />
<Import Project="..\packages\cef.sdk.3.2883.1552\build\cef.sdk.props" Condition="Exists('..\packages\cef.sdk.3.2883.1552\build\cef.sdk.props')" />
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
Expand Down Expand Up @@ -67,7 +67,7 @@
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros">
<NuGetPackageImportStamp>f7925841</NuGetPackageImportStamp>
<NuGetPackageImportStamp>feb99166</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
Expand Down
2 changes: 1 addition & 1 deletion CefSharp.BrowserSubprocess.Core/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="cef.sdk" version="3.2883.1545" targetFramework="Native" />
<package id="cef.sdk" version="3.2883.1552" targetFramework="Native" />
</packages>
4 changes: 2 additions & 2 deletions CefSharp.Core/CefSharp.Core.vcxproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\cef.sdk.3.2883.1545\build\cef.sdk.props" Condition="Exists('..\packages\cef.sdk.3.2883.1545\build\cef.sdk.props')" />
<Import Project="..\packages\cef.sdk.3.2883.1552\build\cef.sdk.props" Condition="Exists('..\packages\cef.sdk.3.2883.1552\build\cef.sdk.props')" />
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
Expand Down Expand Up @@ -67,7 +67,7 @@
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<_ProjectFileVersion>11.0.51106.1</_ProjectFileVersion>
<NuGetPackageImportStamp>2ce946f2</NuGetPackageImportStamp>
<NuGetPackageImportStamp>5afa3199</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<OutDir>bin\$(Platform)\$(Configuration)\</OutDir>
Expand Down
2 changes: 2 additions & 0 deletions CefSharp.Core/RequestContextHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ namespace CefSharp

virtual bool OnBeforePluginLoad(const CefString& mime_type,
const CefString& plugin_url,
bool is_main_frame,
const CefString& top_origin_url,
CefRefPtr<CefWebPluginInfo> plugin_info,
CefRequestContextHandler::PluginPolicy* plugin_policy) OVERRIDE
Expand All @@ -56,6 +57,7 @@ namespace CefSharp

auto result = _requestContextHandler->OnBeforePluginLoad(StringUtils::ToClr(mime_type),
StringUtils::ToClr(plugin_url),
is_main_frame,
StringUtils::ToClr(top_origin_url),
pluginInfo,
pluginPolicy);
Expand Down
2 changes: 1 addition & 1 deletion CefSharp.Core/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="cef.sdk" version="3.2883.1545" targetFramework="Native" />
<package id="cef.sdk" version="3.2883.1552" targetFramework="Native" />
</packages>
6 changes: 3 additions & 3 deletions CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
<NuGetPackageImportStamp>0d9430cd</NuGetPackageImportStamp>
<NuGetPackageImportStamp>437304d9</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
Expand Down Expand Up @@ -95,6 +95,6 @@
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)\CefSharp.props" />
<Import Project="$(SolutionDir)\CefSharp.Native.props" />
<Import Project="..\packages\cef.redist.x64.3.2883.1545\build\cef.redist.x64.targets" Condition="Exists('..\packages\cef.redist.x64.3.2883.1545\build\cef.redist.x64.targets')" />
<Import Project="..\packages\cef.redist.x86.3.2883.1545\build\cef.redist.x86.targets" Condition="Exists('..\packages\cef.redist.x86.3.2883.1545\build\cef.redist.x86.targets')" />
<Import Project="..\packages\cef.redist.x64.3.2883.1552\build\cef.redist.x64.targets" Condition="Exists('..\packages\cef.redist.x64.3.2883.1552\build\cef.redist.x64.targets')" />
<Import Project="..\packages\cef.redist.x86.3.2883.1552\build\cef.redist.x86.targets" Condition="Exists('..\packages\cef.redist.x86.3.2883.1552\build\cef.redist.x86.targets')" />
</Project>
4 changes: 2 additions & 2 deletions CefSharp.OffScreen.Example/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="cef.redist.x64" version="3.2883.1545" targetFramework="net452" />
<package id="cef.redist.x86" version="3.2883.1545" targetFramework="net452" />
<package id="cef.redist.x64" version="3.2883.1552" targetFramework="net452" />
<package id="cef.redist.x86" version="3.2883.1552" targetFramework="net452" />
</packages>
6 changes: 3 additions & 3 deletions CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<OldToolsVersion>3.5</OldToolsVersion>
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
<TargetFrameworkProfile />
<NuGetPackageImportStamp>a2503883</NuGetPackageImportStamp>
<NuGetPackageImportStamp>1e004422</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<PlatformTarget>x64</PlatformTarget>
Expand Down Expand Up @@ -185,6 +185,6 @@
<Import Project="$(SolutionDir)\CefSharp.Native.props" />
<Import Project="..\packages\cef.redist.x64.3.2272.30\build\cef.redist.x64.targets" Condition="Exists('..\packages\cef.redist.x64.3.2272.30\build\cef.redist.x64.targets')" />
<Import Project="..\packages\cef.redist.x86.3.2272.30\build\cef.redist.x86.targets" Condition="Exists('..\packages\cef.redist.x86.3.2272.30\build\cef.redist.x86.targets')" />
<Import Project="..\packages\cef.redist.x64.3.2883.1545\build\cef.redist.x64.targets" Condition="Exists('..\packages\cef.redist.x64.3.2883.1545\build\cef.redist.x64.targets')" />
<Import Project="..\packages\cef.redist.x86.3.2883.1545\build\cef.redist.x86.targets" Condition="Exists('..\packages\cef.redist.x86.3.2883.1545\build\cef.redist.x86.targets')" />
<Import Project="..\packages\cef.redist.x64.3.2883.1552\build\cef.redist.x64.targets" Condition="Exists('..\packages\cef.redist.x64.3.2883.1552\build\cef.redist.x64.targets')" />
<Import Project="..\packages\cef.redist.x86.3.2883.1552\build\cef.redist.x86.targets" Condition="Exists('..\packages\cef.redist.x86.3.2883.1552\build\cef.redist.x86.targets')" />
</Project>
4 changes: 2 additions & 2 deletions CefSharp.WinForms.Example/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="cef.redist.x64" version="3.2883.1545" targetFramework="net452" />
<package id="cef.redist.x86" version="3.2883.1545" targetFramework="net452" />
<package id="cef.redist.x64" version="3.2883.1552" targetFramework="net452" />
<package id="cef.redist.x86" version="3.2883.1552" targetFramework="net452" />
</packages>
6 changes: 3 additions & 3 deletions CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<OldToolsVersion>3.5</OldToolsVersion>
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
<TargetFrameworkProfile />
<NuGetPackageImportStamp>7a75bfb3</NuGetPackageImportStamp>
<NuGetPackageImportStamp>b61df991</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
Expand Down Expand Up @@ -186,6 +186,6 @@
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)\CefSharp.props" />
<Import Project="$(SolutionDir)\CefSharp.Native.props" />
<Import Project="..\packages\cef.redist.x64.3.2883.1545\build\cef.redist.x64.targets" Condition="Exists('..\packages\cef.redist.x64.3.2883.1545\build\cef.redist.x64.targets')" />
<Import Project="..\packages\cef.redist.x86.3.2883.1545\build\cef.redist.x86.targets" Condition="Exists('..\packages\cef.redist.x86.3.2883.1545\build\cef.redist.x86.targets')" />
<Import Project="..\packages\cef.redist.x64.3.2883.1552\build\cef.redist.x64.targets" Condition="Exists('..\packages\cef.redist.x64.3.2883.1552\build\cef.redist.x64.targets')" />
<Import Project="..\packages\cef.redist.x86.3.2883.1552\build\cef.redist.x86.targets" Condition="Exists('..\packages\cef.redist.x86.3.2883.1552\build\cef.redist.x86.targets')" />
</Project>
2 changes: 1 addition & 1 deletion CefSharp.Wpf.Example/Handlers/RequestContextHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace CefSharp.Wpf.Example.Handlers
{
public class RequestContextHandler : IRequestContextHandler
{
bool IRequestContextHandler.OnBeforePluginLoad(string mimeType, string url, string topOriginUrl, WebPluginInfo pluginInfo, ref PluginPolicy pluginPolicy)
bool IRequestContextHandler.OnBeforePluginLoad(string mimeType, string url, bool isMainFrame, string topOriginUrl, WebPluginInfo pluginInfo, ref PluginPolicy pluginPolicy)
{
//pluginPolicy = PluginPolicy.Disable;
//return true;
Expand Down
4 changes: 2 additions & 2 deletions CefSharp.Wpf.Example/packages.config
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="cef.redist.x64" version="3.2883.1545" targetFramework="net452" />
<package id="cef.redist.x86" version="3.2883.1545" targetFramework="net452" />
<package id="cef.redist.x64" version="3.2883.1552" targetFramework="net452" />
<package id="cef.redist.x86" version="3.2883.1552" targetFramework="net452" />
<package id="CommonServiceLocator" version="1.3" targetFramework="net45" />
<package id="MvvmLightLibs" version="5.1.1.0" targetFramework="net45" />
</packages>
3 changes: 2 additions & 1 deletion CefSharp/IRequestContextHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ public interface IRequestContextHandler
/// </summary>
/// <param name="mimeType">is the mime type of the plugin that will be loaded</param>
/// <param name="url">is the content URL that the plugin will load and may be empty</param>
/// <param name="isMainFrame">will be true if the plugin is being loaded in the main (top-level) frame</param>
/// <param name="topOriginUrl">is the URL for the top-level frame that contains the plugin</param>
/// <param name="pluginInfo">includes additional information about the plugin that will be loaded</param>
/// <param name="pluginPolicy">Modify and return true to change the policy.</param>
/// <returns>Return false to use the recommended policy. Modify and return true to change the policy.</returns>
bool OnBeforePluginLoad(string mimeType, string url, string topOriginUrl, WebPluginInfo pluginInfo, ref PluginPolicy pluginPolicy);
bool OnBeforePluginLoad(string mimeType, string url, bool isMainFrame, string topOriginUrl, WebPluginInfo pluginInfo, ref PluginPolicy pluginPolicy);
}
}

0 comments on commit 8a9b0de

Please sign in to comment.