Commit Graph

21 Commits

Author SHA1 Message Date
amaitland 2acc334570 Remove unused constructor from ResourceHandlerWrapper 2015-06-25 10:34:22 +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
rassilon 1d2454b0bc Merge remote-tracking branch 'origin/master' into continued/43
Conflicts:
	CefSharp.Core/Internals/CefRequestCallbackWrapper.h
	CefSharp.Core/ResourceHandlerWrapper.h
2015-06-18 07:56:59 -04:00
rassilon afb8aae4eb Fix things that break VS2012. 2015-06-17 19:13:42 -04:00
rassilon 8ec01da230 Use GetBrowserWrapper everywhere except popup creation/closing for all of ClientAdapter.cpp.
This means that none of the callbacks need to own disposing the IBrowser^ instance.
2015-06-17 18:14:07 -04:00
amaitland afbed86524 First draft of what is hopefully the final rewrite of ResourceHandler/SchemeHandler
This will built but won't run as CefResponseWrapper has not yet been implemented.
2015-06-15 21:03:25 +10: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
amaitland 63cc978ce6 Change CefRequestWrapper to use the IRequest interface instead 2015-06-15 18:46:34 +10:00
amaitland 4b245f1ab9 Revert "Be paranoid about _requestWrapper being disposed properly in ResourceHandlerWrapper."
This reverts commit 4f7302086b.
2015-06-15 18:45:12 +10:00
rassilon 4f7302086b Be paranoid about _requestWrapper being disposed properly in ResourceHandlerWrapper. 2015-06-13 10:45:36 -04: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 c8d73574da Add cancel param to ProcessRequestCallback - previously only able to call the Continue() method on the callback 2015-06-05 12:12:33 +10:00
amaitland 2983bf7383 Change ContentLength to be a long (int64)
Set ContentLength in ResourceHandler when using a MemoryStream
2015-05-27 18:01:17 +10:00
amaitland 9c7bf2e930 Change ResourceHandler to IResourceHandler
Add StatusText
2015-05-27 17:11:52 +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
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 1863c571ae Extract ISchemeHandlerResponse into IResourceHandlerResponse and mark as obsolete 2015-04-17 13:07:07 +10:00
amaitland f32b717187 ResourceHandlerWrapper release resources on destructor 2015-04-17 13:07:05 +10:00
amaitland c1d15e46d2 Switch to using ISchemeHandlerResponse interface 2015-04-17 13:07:05 +10:00
amaitland 3551faa364 Move ToHeaderMap method into TypeConversion as it's generic and used in two places 2015-04-17 13:07:04 +10:00
amaitland 6480706ced Rename SchemeHandlerWrapper to ResourceHandlerWrapper 2015-04-17 13:07:03 +10:00