Commit Graph

29 Commits

Author SHA1 Message Date
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 f93a387593 Use fully qualified cli::array as it appears VS2015 gets confused with the generic std::array (must be in the newer C++ library as code builds fine in VS2013)
Resolves #2049
2017-05-16 23:14:02 +10:00
amaitland c8d0127f31 In rare cases CefStreamReader::CreateForFile returns null - rather than causing a hard crash, log the error and return NULL 2017-05-08 13:22:57 +10:00
amaitland 6691d0080a Refactor ResourceHandler, split FileResourceHandler out into it's own class, rather than relaying on ResourceHandlerType - this allows us to add more underlying CEF type wrappers without a huge amount of effort now.
Add new ByteArrayResourceHandler - uses CefStreamReader::CreateForData to load the byte array, for use with CefStreamResourceHandler
Add ResourceHandler.FromByteArray method for ease of use
Change ResourceHandler.FromString to use the new ByteArrayResourceHandler class
2017-05-05 12:55:44 +10:00
Chris cd934267c6 Updated copyright year and made sure it used same format everywhere (#1966) 2017-03-06 08:44:37 +10:00
justin-caldicott 8f02008c58 Fix NRE when returning null from a scheme handler factory (#1792)
Regression in 49.0 release.  Prevented use of default CEF handler when
using a custom scheme handler.
2016-09-02 06:45:51 +10:00
amaitland 12f42331dc Resolves #1592 - Expose all methods of CefResourceHandler
Previously we were passing in the frame, request wrappers which hadn't been used, so just keep things simple and remove the code.
Current users should extend ResourceHandler instead of IResourceHandler and add the override keyword
TODO: Deal with setting bytesRead property - currently using Stream.Length which won't work for every stream type
2016-02-18 16:44:51 +10:00
amaitland bae3c28e92 Update copyright to 2016 2016-01-11 14:11:30 +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 4828919a27 Remove unused reference to autolock.h 2015-08-19 13:06:00 +10:00
Alex Maitland 85fc74df8a Merge pull request #1156 from amaitland/feature/CefStreamReader
Use CefStreamReader::CreateForFile for Reading files on Disk
2015-08-03 08:41:10 +10:00
amaitland cfa20ad9dd Remove outdated comment 2015-07-30 14:37:06 +10:00
amaitland e235e2469b Add missing include 2015-07-29 20:57:01 +10:00
amaitland abb06171b6 Add basic example of reading the Debug.log file from disk and add option to use ResourceHandler in a SchemeHandlerFactory
(Means that ISchemeHandler had to be removed - which is an unfortunate breaking change, better to be done now though)
2015-07-29 20:55:28 +10:00
amaitland 2129c1907e Remove IBrowserAdapter from Frame and Browser wrappers - now directly cast CefClient to ClientAdapter so can execute js 2015-06-29 14:03:10 +10:00
rassilon 1a62db2446 Allow the browser/frame instances to be active (i.e. non-disposed) until ResourceHandlerWrapper has completed processing for ResourceHandlers and Schemes. 2015-06-18 08:27:53 -04:00
amaitland c445a508ea Allow for ISchemeHandlerFactory.Create to return null (allow for default behaviour)
Updated ISchemeHandlerFactory xml doc

As both current use cases for ResourceHandlerWrapper can potentially return null rather than handle the resource change CefRequestWrapper to be disposed of automatically and use the CefRequest provided by ResourceHandlerWrapper::ProcessRequest
2015-06-15 20:00:32 +10:00
rassilon 431cb511c3 * Move unmanged objects into finalizer and call finalizer from Dispose.
* Remove DisposableResources from ManagedCefBrowserAdapter
* Improve disposing of CefRequestWrapper
* Have callbacks dispose themselves.
* Allow the Application exit handler shutdown CEF from the Winforms example application.
2015-06-13 10:42:33 -04:00
amaitland bbaa58faed Expand ISchemeHandlerFactory to pass in browser, frame, schemeName and request 2015-06-05 13:40:27 +10:00
amaitland af8e53a6a1 Remove redundant method prefix (cpp) 2015-05-27 17:45:55 +10:00
rassilon 61ce52a2a4 Merge remote-tracking branch 'origin/cef/2272' into cleanup/resourcehandler
Conflicts:
	CefSharp.Core/SchemeHandlerFactoryWrapper.cpp
	CefSharp.Core/SchemeHandlerFactoryWrapper.h
	CefSharp.Core/SchemeHandlerResponse.cpp

Merge merge merge, merges are fun.
2015-04-25 03:06:21 -04:00
rassilon 4275da30b7 The other two hiding tab files. Be gone! 2015-04-25 02:48:37 -04:00
rassilon 7128e40fd1 It's time for copyright updates again. Yay!
Throw in a couple of tab containing files for good measure.
Evil tabs, evil I say.
2015-04-25 02:45:21 -04:00
amaitland 2468e41ea1 Extract ISchemeHandler into IResourceHandler - haven't marked as [Obsolete] as it may make more sense naming wise to keep this interface
Maybe need to add a code comment explaining the reason for keeping both interfaces?
2015-04-17 13:07:07 +10:00
amaitland bbbd2393f6 Explicitly release ISchemeHandlerFactory in SchemeHandlerFactoryWrapper 2015-04-17 13:07:04 +10:00
amaitland 94fa0f0e48 Inline SchemeHandlerFactoryWrapper::Create (for such a small .cpp file it didn't make a lot of sense) 2015-04-17 13:07:03 +10:00
amaitland 9044359bb4 Explicitly specify class access modifiers 2015-04-17 13:06:24 +10:00
amaitland 00b25f5e3f Split SchemeHandlerFactoryWrapper out into it's own .h/.cpp files 2015-02-14 12:04:59 +10:00