Commit Graph

73 Commits

Author SHA1 Message Date
Chris 7ba2de4392 Example - RequestHandler: Throw exception on invalid URI (#2047) 2017-05-15 17:28:01 +02:00
amaitland 2cb7753b0b Add MemoryStreamResponseFilter example - data is copied into a memoryStream which can be read in IRequestHandler.OnResourceLoadComplete 2017-05-08 15:57:51 +10:00
Chris cd934267c6 Updated copyright year and made sure it used same format everywhere (#1966) 2017-03-06 08:44:37 +10:00
Smaran Harihar fa41529853 Add IRequestHandler.OnSelectClientCertificate (#1878)
* wip create hooks for onSelectClientCertificate

* create interface and wrapper for callback

* get certificate from CefCertificateList, convert to X509Certificate2, add them to X509CertificateCollection and return this to ClientAdapter

* code review changes. Certificate selection in wrapper requires recreation of certificate in iteration

* added certificate dialog selection to WinFormsRequestHandler. Used VS untabify to remove all the tabs and replaced it with spaces

* missed updating a summary on ISelectClientCertificateCallback

* code review changes
2016-12-13 09:48:15 +10:00
amaitland cecc8b14f7 Update RequestHandler.OnResourceRedirect example - redirect google to github 2016-12-01 22:22:04 +10:00
amaitland cce8cd825d Upgrade to 3.2840.1493 (Chromium 54.0.2840.59)
Add IResponse to IRequestHandler::OnResourceRedirect
2016-10-19 08:17:50 +10:00
amaitland 397ffb5158 Update AppendResponseFilter to allow for larger chunked files
Change example to append comment to jquery.js file as it's larger
2016-05-25 19:01:20 +10:00
amaitland d4513a88b5 Update SetReferrer example
Add example of setting user-agent in OnBeforeResourceLoad
2016-05-04 18:05:47 +10:00
amaitland 679fad6a89 Add AppendResponseFilter filter implementation
In the examples open custom://cefsharp/assets/js/application.js to see some data appended to a javascript file
2016-02-11 16:33:52 +10:00
amaitland d84caa8646 Pass in find and replace strings as params
Code cleanup and simplifications - make things a little clearer
Remove dataInSize and dataOutSize - can be obtained from Stream.Length
Simplify writing overflow on second pass
Remove unused code
Should be working now
2016-02-11 14:36:23 +10:00
amaitland f238b2bf50 Add Filter test url to WPF Example 2016-02-11 11:33:44 +10:00
amaitland 940a55a521 Rename to PassThruResponseFilter
Add example html file from https://bitbucket.org/chromiumembedded/cef/raw/456ea5a19800a4cc05d0ce7f0c38111a7e73e18b/tests/cefclient/resources/response_filter.html
2016-02-11 10:47:15 +10:00
amaitland 59edbf9ca5 Move filter into it's own folder 2016-02-11 10:44:29 +10:00
amaitland 8d00a3dd26 Add a rough implementation of IRequestHandler.GetResourceResponseFilter
Looks like the basic pass through implementation is working - have yet to append any data
2016-02-11 10:40:11 +10:00
amaitland bae3c28e92 Update copyright to 2016 2016-01-11 14:11:30 +10:00
amaitland c18f951a97 Move OnContextCreated from IRequestHandler to IRenderProcessMessageHandler
Manually resolve some merge conflicts
2015-12-09 11:32:24 +10:00
amaitland af02212217 Merge branch 'feature/oncontextcreated' of https://github.com/amaitland/CefSharp 2015-12-09 11:26:07 +10:00
amaitland 7782490513 Add IRequestHandler.OnResourceLoadComplete
https://bitbucket.org/chromiumembedded/cef/commits/ced449a0efbb39e7ff36af844a4d067935dc324b
2015-12-08 10:46:27 +10:00
amaitland 6f272833fb Add IRequestHandler.OnContextCreated handler
Send an IPC message when OnContextCreated is called in the render process
Currently only called for the main frame
Should be possible to hook the DOMContentLoaded event
2015-12-02 19:04:19 +10:00
amaitland c2b712f06c Update to CEF 3.2454.1326
Remove IRequestHandler.OnBeforePluginLoad (was moved on the upstream API, will need to be re-added)
Fixes #1306
2015-10-01 20:21:21 +10:00
amaitland d9c3569bd7 Add IRequestHandler.OnResourceResponse 2015-09-29 08:03:54 +10:00
amaitland 73df171a22 Add example of setting Referer in OnBeforeResourceLoad 2015-09-29 06:51:38 +10:00
amaitland 2153c51d15 Add PostData null checks to examples
Add basic ajax post example for custom scheme handler test page/handler
2015-09-25 11:47:10 +10:00
amaitland fff0808693 Demo opening OnOpenUrlFromTab - rough example 2015-09-18 13:22:11 +10:00
amaitland 52791957d5 Update callback usage examples
Add some comments in example RequestHandler about disposing of callbacks
2015-09-09 09:18:27 +10:00
amaitland bda5e9eeea Rework some of the example handlers to include the IsDispose check on their callbacks 2015-09-01 12:16:08 +10:00
amaitland 48d364aed7 Load basic error message when render process crashes
TODO: Make this a little more elegant
2015-08-26 17:26:45 +10:00
amaitland ad336a8928 First draft of sslinfo
Conflicts:
	CefSharp.Core/CefSharp.Core.vcxproj.filters
	CefSharp.Example/RequestHandler.cs
2015-08-17 14:49:47 +10:00
amaitland 315e345582 Add OnOpenUrlFromTab and OnRenderViewReady 2015-08-17 13:59:48 +10:00
amaitland 7498c65741 Add copyright to CefSharp.Example 2015-08-03 10:41:29 +10:00
amaitland a88ca171c9 Add IBrowser param to OnFaviconUrlChange
Add IBrowser param to OnResourceRedirect
Update comment so hopefully it's clearer that the browserControl param is the ChromiumWebBrowser instance
2015-07-22 14:53:34 +10:00
amaitland 1aba3b59e6 Add Request param to OnResourceRedirect 2015-07-22 14:47:28 +10:00
amaitland 17df6f8153 Add PostDataElementType enum 2015-07-07 20:37:09 +10:00
amaitland 133a88b644 Add sample of how to use the new post data implementation 2015-07-07 20:35:08 +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 60be64f67b Add IBrowser to IRequestHandler.OnBeforeBrowse - reorder params to match CEF API
Need to look at loading the cached browser instance
2015-06-11 11:06:19 +10:00
amaitland 801bebbbd0 Merge branch 'MorePopupHandlerWork' of https://github.com/rassilon/CefSharp 2015-06-11 10:04:43 +10:00
Bill Tutt 3a330f4352 Here's some more, and the missing return stmt. GetResourceHandler of course doesn't go on PopupHandler. 2015-06-03 00:14:43 -04:00
amaitland 6bda7b20aa Add CefAuthCallbackWrapper 2015-06-01 16:46:28 +10:00
amaitland 64379bc193 Start updating examples to Dispose() the callbacks
Untabify IRequestCallback
2015-06-01 12:05:53 +10:00
Bill Tutt 668738ed58 Add some more methods on IPopupHandler and call them.
Don't put the following handlers on IPopupHandler due to the underlying security related purpose, but add IBrowser parameters:

* OnCertificateError
* OnQuotaError
* OnPluginCrashed
* OnRenderProcessTerminated
* OnProtocolExecution
* OnBeforePluginLoad
* GetAuthCredentials
2015-05-29 01:33:44 -04:00
Bill Tutt 1df0d648a8 Don't create a task for MemoryStreams, and some more Resharper Cleanups. 2015-05-28 22:14:34 -04:00
Alex Maitland 16ba0ab6a5 Merge pull request #1008 from amaitland/enhancement/requestcallback
Implement CefRequestCallback wrapper
2015-05-07 15:24:44 +10:00
amaitland fb87cab4f4 Add OnFaviconURLChange implementation - there is no IDisplayHandler interface so added the method to IRequestHandler as that seemed the next best place. 2015-05-07 13:52:19 +10:00
amaitland dc986b3b06 Implement CefRequestCallback wrapper and expose for relevant CefRequestHandler interfaces
Resolves #982
2015-05-07 11:33:33 +10:00
Bill Tutt de7b6b4240 More IFrame usages, take special note of the chaneges in the EventArgs types. 2015-05-02 01:15:47 -04:00
Bill Tutt e1e58a5da6 Add IFrame interface as the public face of CefFrameWrapper.
IRequestHandler: Pass IFrame instances instead of isMainFrame.
Support EvaluateJavaScriptAsync from a frame.
IBrowserAdapter, IBrowserAdapterNative: Dependency breaking between CefFrameWrapper and ManagedCefBrowserAdapter.
Add IBrowserAdapter.BrowserAdapter to IWebBrowserInternal and implment for all controls.

This builds, but hasn't been tested yet. Thoughts?
2015-05-02 00:01:31 -04:00
amaitland 6abfb8c054 API changed for OnBeforeResourceLoad, OnCertificateError, OnQuotaRequest.
For OnCertificateError, OnQuotaRequest the callback was changed to be a generic one, so no outward facing API change.
With OnBeforeResourceLoad there is now a async callback which isn't used, the only two options that will work are Cancel or Continue
2015-04-28 14:04:35 +10:00
amaitland a9aeaecda5 Comment out example and remove TODO 2015-04-24 10:51:16 +10:00
amaitland dffc3da31f Implement OnProtocolExecution (mapped slightly differently as it's easier to return a bool than use a ref param) 2015-04-22 17:07:55 +10:00