amaitland
864f9ea7a2
Rename GetResponseHeaders to GetResponse
2015-06-15 23:07:02 +10:00
amaitland
018598171a
Add first draft of CefResponseWrapper
2015-06-15 21:20:02 +10: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
35d31bd533
Only set ResourceHandlerWrapper values if we plan to continue, if we Cancel they would be ignored
2015-06-15 19:03:35 +10:00
amaitland
63cc978ce6
Change CefRequestWrapper to use the IRequest interface instead
2015-06-15 18:46:34 +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
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
1fdf6da796
Default StatusCode = 200 and StatusText = "OK"
...
Remove the check ResourceHandlerWrapper - use the default value for StatusCode
2015-05-28 20:55:42 +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
37384a9461
Rename SchemeHandlerResponse to ResourceHandlerResponse
2015-05-27 17:14:42 +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
1863c571ae
Extract ISchemeHandlerResponse into IResourceHandlerResponse and mark as obsolete
2015-04-17 13:07:07 +10:00
amaitland
98e89111f4
Remove unnecessary ret value and simply use bytes_read instead
2015-04-17 13:07:06 +10:00
amaitland
e07148815e
Fix has_data naming - remove underscore
...
Replace if statement with ternary operator for response_length
2015-04-17 13:07:06 +10:00
amaitland
a904e6c667
Simplify code by removing local variable handled variable - simply return
2015-04-17 13:07:05 +10:00
amaitland
f38438874c
Resolve SeekOrigin ambiguous reference
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
5cc55b50ad
Switch SchemeHandlerResponse to using a more traditional destructor and calling delete on the object (I think it explains the behaviour better when reading the code)
2015-04-17 13:07:04 +10:00
amaitland
16e785a723
Remove OnRequestCompletedHandler action wrapper and expose the method directly on SchemeHandlerResponse
2015-04-17 13:07:03 +10:00
amaitland
6480706ced
Rename SchemeHandlerWrapper to ResourceHandlerWrapper
2015-04-17 13:07:03 +10:00