Commit Graph

39 Commits

Author SHA1 Message Date
amaitland 73a156fdc5 Initial version 75 upgrade and NetworkService changes
Compiles, that's about it at this point, there are major CEF breaking changes, and lots to be addressed.

Browser Process (main process)
- Removed IResourceHandlerFactory as it no longer fits with the structure that CEF provides
- New IResourceRequestHandler interface added, not plumbed in yet
- CefSettings - Add RootCachePath and ApplicationClientIdForFileScanning

BrowserSubprocess (render process)
- SendProcessMessage was moved from CefBrowser to CefFrame
- OnBrowserCreated added extraInfo param

The BrowserSubprocess changes for this upgrade should be complete
2019-06-25 19:24:57 +10:00
amaitland 95ad9cdd06 Remove IRequestContext.ResolveHostCached
Was removed from Chromium

Resolves #2747
2019-04-26 07:31:03 +10:00
amaitland 9f30087870 RequestContext - Improve CEF UI thread xml doc 2019-01-19 13:01:13 +10:00
amaitland 73d6a06284 RequestContext - Fix some xml doc mistakes 2019-01-17 05:36:35 +10:00
amaitland d5a8108ed1 RequestContext.h - Split method implementation out into RequestContext.cpp
Also fix up some other includes that were broken as a result. Still a lot more code cleanup to do.
2019-01-10 07:07:28 +10:00
amaitland 6ea142b114 RequestContext.h - Invoke LoadExtension on CEF UI Thread using CefPostTask
Previously this failed when building with VS2015 (VS2017 was successful)

https://ci.appveyor.com/project/cefsharp/cefsharp/builds/21300703

Add header guard to see if that resolves the issue.
2019-01-09 21:08:42 +10:00
Alex Maitland 02e3084af3 Add Chromium Extension Support (#2613)
* Add Chromium Extension Support

Add IRequestContext.LoadExtension
Add IExtensionHandler
Add IExtension
Add example (import from cefclient) - was added to CefSharp.WinForms.Example projct
Add RequestContextExtensions - to make loading an extension slightly easier
2018-12-31 13:12:10 +10:00
Chris bef5dd37c4 Maintenance - Fixed formatting, file encoding, and copyright year (#2504)
* Applied formatting

* Fixed file encoding + Updated copyright year

* Updated License

* Fixed more file encoding

* Copyright notice now shows the year the file was created
2018-09-10 10:41:13 +10:00
amaitland e3ae0024f3 Untabify RequestContext 2018-07-19 11:36:34 +10:00
amaitland 82db644213 RequestContext - Add new constructor methods creating a new context object that shares storage with otherRequestContext and uses an optional handler. 2018-07-18 21:21:42 +10:00
amaitland 48bd8d5590 Add IRequestContextHandler.OnRequestContextInitialized
- Rename RequestContextHandler to CefRequestContextHandlerAdapter and move to internals
- Add missing RequestContextSettings.EnableNetSecurityExpiration
- Minor code cleanup
2018-07-10 20:21:46 +10:00
amaitland 9fc2f33ea8 Xml Doc improvements
Fix some invalid markup
Move some unmanaged constructors and implicit conversion to internal
2018-02-09 13:41:55 +10:00
Chris cd934267c6 Updated copyright year and made sure it used same format everywhere (#1966) 2017-03-06 08:44:37 +10:00
amaitland f4814c4abb Rename Task callbacks for consistency - will move them into a new folder shortly 2017-02-14 11:59:41 +10:00
amaitland 5f1adc695b Move CookieManager to CefSharp.Core folder 2016-10-18 22:53:34 +10:00
amaitland 6ed54d3ad5 Update cherry picked commits to reflect IRequestContextHandler (replaced IPluginHandler) 2016-09-26 09:08:42 +10:00
amaitland 3066b19f84 Add RequestContext::CreateContext static method to create a context that shares the storage with an existing 2016-09-26 09:06:29 +10:00
amaitland fb1c70a44c Rename IPluginHandler to IRequestContextHandler
Add IRequestContextHandler.GetCookieManager() - Can now have unique CookieManager for each RequestContext
**Breaking Change**
CookieManager should be moved from the CefSharp.Internals namespace - will do that at some point later hopefully
2016-09-25 20:35:04 +10:00
amaitland 9db72f12ad Add RequestContext xml doc (copied from IRequestContext) 2016-06-03 09:07:53 +10:00
amaitland 466fa67525 Change origin from string to Uri as that's what the code is expecting - so github.com wasn't working, http://www.github.com does
Improved the documentation a little
2016-03-20 09:45:28 +10:00
amaitland 8e817b3feb IRequestContext.ResolveHost changed to ResolveHostAsync with a TaskCompletionSource wrapper 2016-03-20 09:30:42 +10:00
amaitland 174beb2371 Add IRequestContext.ResolveHost
Add IRequestContext.ResolveHostCached
Both methods are for DNS -> IPAddress resolution

https://bitbucket.org/chromiumembedded/cef/commits/ce1e9e65fd3f5a075cac924ed987165bb4641d9d?at=master
2016-03-20 09:14:23 +10:00
amaitland 7b29d7a665 RequestContext now implements CefWrapper
ThrowIfDisposed(); called in each method now
2016-03-20 08:42:58 +10:00
amaitland ee67324a24 Add IRequestContext.CloseAllConnections
Add IRequestContext.ClearCertificateExceptions
Also forgot to make IRequestContext extend IDisposable

https://bitbucket.org/chromiumembedded/cef/commits/cd7e8a055816f1bfc681c18a2e959ef3e414f265?at=master
2016-03-20 08:13:45 +10:00
amaitland f18fe9d4ae Add Cef.CurrentlyOnThread method for checking if your on a particular CEF thread
Add Cef.GetGlobalRequestContext, can be used to set preferences and other related features
Update IRequestContext.SetPreference documentation, preferences set via the command line are read only
2016-03-19 07:30:03 +10:00
amaitland bb4746c612 Minor code cleanup after static analysis from PVS Studio - mostly uninitialized variables (which I don't think was an actual problem as they were all in .Net classes)
Remove a static cast that wasn't required.
2016-02-19 16:24:14 +10:00
amaitland bae3c28e92 Update copyright to 2016 2016-01-11 14:11:30 +10:00
amaitland dc121af997 Add IRequestContext interface to allow for extension methods
Can now access the RequestContext through IBrowserHost (can get access to the global context if required now)
2015-12-23 08:30:43 +10:00
amaitland abd10ede6d Implement GetAllPreferences 2015-12-23 07:48:26 +10:00
amaitland fb137f932f Implement basic Get/Set of Preferences
Haven't yet implemented the GetAllPreferences as yet.
2015-12-23 07:48:23 +10:00
amaitland ad9f7c70ac Add IPluginHandler.OnBeforePluginLoad
Can now be used through the RequestContext
Add Example to WPF application
2015-10-12 15:32:10 +10:00
amaitland b9ee476e8e Fix up some of the vc++ include mess that we had going
Cleanup using namespace statements as well
2015-09-29 16:26:06 +10:00
amaitland 0a65fd65a5 Add RegisterSchemeHandlerFactory and ClearSchemeHandlerFactories
Add missing includes to SchemeHandlerFactoryWrapper
2015-08-26 21:39:12 +10:00
amaitland ebaba426ba Fix compiler warning for missing xml comment from ChromiumWebBrowser OffScreen constructor
Add xml comment to RequestContext to better explain what it actually does
2015-07-31 14:19:57 +10:00
amaitland 42d51980ef Add nullptr check and return NULL for implicitor operator when object is not initialized 2015-07-22 14:19:50 +10:00
amaitland 50af1575cc Dispose of the RequestContextSettings when the RequestContext is disposed of 2015-07-22 14:11:44 +10:00
amaitland 4ce93ba555 Add RequestContextSettings wrapper 2015-07-22 14:09:20 +10:00
amaitland 265ab37620 Assign cachePath
TODO create a wrapper around CefRequestContextSettings
2015-07-21 23:57:24 +10:00
Tommaso Ercole a3e869b542 Add basic CefRequestContext wrapper 2015-07-21 23:51:49 +10:00