Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added default implementation of IRequestHandler #2157

Conversation

martinekvili
Copy link
Contributor

This PR was requested by @amaitland in issue #1437, but as far as I was able to tell, it was never implemented.

@perlun
Copy link
Member

perlun commented Dec 1, 2017

@martinekvili Thanks for the PR. Could you resolve the conflicts? We can then review it.

@AppVeyorBot
Copy link

@martinekvili
Copy link
Contributor Author

@perlun Thanks, the conflicts should be sorted now.

@perlun
Copy link
Member

perlun commented Dec 12, 2017

@amaitland Since you requested the original change, I think it would make most sense if you review this. Let me know if you are unable to do this and we'll let someone else give it a look.

@amaitland
Copy link
Member

@perlun Seems reasonable, will have a look 👍

Copy link
Member

@amaitland amaitland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor changes required.


using System.Security.Cryptography.X509Certificates;

namespace CefSharp
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At a minimum this should be in the Handler folder. Probably the CefSharp.Handler namespace as well. (Ideally all the handlers should be in their own namespace, moving the interfaces is a massive breaking change, so probably won't happen).

/// </summary>
public class DefaultRequestHandler : IRequestHandler
{
public virtual bool GetAuthCredentials(IWebBrowser browserControl, IBrowser browser, IFrame frame, bool isProxy, string host,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally the xmldoc would be copied from the parent IRequestHandler. GhostDoc is handy when it comes to this sort of thing.

@AppVeyorBot
Copy link

@martinekvili
Copy link
Contributor Author

@amaitland Thank you very much for the feedback! I think I implemented all the requested changes.

@perlun
Copy link
Member

perlun commented Dec 16, 2017

@amaitland AppVeyor has stalled on this one for some reason, but I'm fine with you merging this nonetheless.

@amaitland amaitland added this to the 63.0.0 milestone Dec 19, 2017
@amaitland amaitland merged commit 021d780 into cefsharp:master Dec 19, 2017
amaitland added a commit that referenced this pull request Dec 20, 2017
A new default implementation was added in #2157
BrowserTabView - cleanup usings and remove unused code
@amaitland amaitland mentioned this pull request Jan 17, 2018
26 tasks
@martinekvili martinekvili deleted the feautre/irequesthandler-default-implementation branch January 19, 2019 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants