22 Commits

Author SHA1 Message Date
amaitland a9d39d7965 Core - Add StreamResponseFilter
- Moved from the Cefsharp.Example.Filters.StreamResponseFilter
- Added CanWrite checks in InitFilter
- Updated example to reflect namespace change.
2019-12-10 18:31:38 +10:00
amaitland 0d236b3b45 Example - Update ResponseFilter example to reflect NetworkService changes
- MemoryStreamResponseFilter renamed to StreamResponseFilter
- Stream is now passed into StreamResponseFilter constructor
- ExampleResourceRequestHandler updated to reflect that it now represents a single resource request
- ExampleResourceRequestHandler is now used for all requests from the CefSharpSchemeHandlerFactory.SchemeName custom scheme

Issue #2743
2019-09-29 14:19:25 +10:00
amaitland 6a4fab2c87 PassThruResponseFilter/MemoryStreamResponseFilter - Rewrite to deal with DataIn being greater than DataOut
In some cases DataIn is greater than data out, the previous implementations simply copied all data, which doesn't work
in some specific instances (the files appear to have compression enabled).

Should resolve #2433
2018-12-11 13:29:22 +10:00
Atvaark 572a05bbbf Fix IDE1006 in FindReplaceResponseFilter.cs (#2545) 2018-10-22 09:46:28 +10:00
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 e27c9c3c21 Add ExperimentalStreamResponseFilter - buffers all data before performing text processing 2018-01-18 10:25:52 +10:00
amaitland 504d04dc43 Include FindReplaceMultiResponseFilter in example project, update it's copyright year and tweak it's formatting 2017-05-08 16:02:46 +10: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
amaitland 1228f992d0 FindReplaceResponseFilter - Remove debugging code that was outputting the count as part of the response
AppendResponseFilter - Improve comment
2017-01-30 09:38:36 +10:00
hathor 995776d232 This lets you do multiple search-and-replaces (#1725)
Add FindReplaceMultiResponseFilter Example
2016-06-30 08:07:34 +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 9262d731d5 IResponseFilter now implements IDisposable
Call delete in CefResponseFilterAdapter destructor
2016-05-20 08:13:14 +10:00
amaitland 231d6d8143 Allow for FindReplaceResponseFilter dataIn to be null 2016-02-18 16:31:09 +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 0288ee353e It's possible for the dataIn stream to be null, allow for it being optional. 2016-02-11 15:45:14 +10:00
amaitland e2fe457b7e Update copyright year (few other files that needed updates as well, so they're coming along for the ride) 2016-02-11 14:40:47 +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 d5d31afadb Progress towards a working version 2016-02-11 11:25:28 +10:00
amaitland ede3370cfd Roughly port FindReplaceResponseFilter - compiles, not yet functional
https://bitbucket.org/chromiumembedded/cef/src/456ea5a19800a4cc05d0ce7f0c38111a7e73e18b/tests/cefclient/browser/response_filter_test.cc?fileviewer=file-view-default#response_filter_test.cc-31
2016-02-11 11:18:00 +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