From ab4e513693dc478bc75979b31c7ff8a02394b1bf Mon Sep 17 00:00:00 2001 From: amaitland Date: Thu, 11 May 2017 13:02:13 +1000 Subject: [PATCH] Improve ByteArrayResourceHandler and FileResourceHandler comments They should probably be renamed before the next version is branched, give a better indication they're classes that represent unmanaged CEF implementations --- CefSharp/Internals/ByteArrayResourceHandler.cs | 5 ++++- CefSharp/Internals/FileResourceHandler.cs | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CefSharp/Internals/ByteArrayResourceHandler.cs b/CefSharp/Internals/ByteArrayResourceHandler.cs index f78d044db..c9ac3f7b9 100644 --- a/CefSharp/Internals/ByteArrayResourceHandler.cs +++ b/CefSharp/Internals/ByteArrayResourceHandler.cs @@ -11,7 +11,10 @@ using System.Text; namespace CefSharp { /// - /// ByteArrayResourceHandler is used as a placeholder to represent the underlying CefStreamResourceHandler + /// ByteArrayResourceHandler is used as a placeholder class which uses native CEF implementations. + /// CefStreamReader::CreateForData(); reads the byte array that is passed to a new instance + /// of CefStreamResourceHandler + /// TODO: Move this class into Handler namespace /// public class ByteArrayResourceHandler : IResourceHandler { diff --git a/CefSharp/Internals/FileResourceHandler.cs b/CefSharp/Internals/FileResourceHandler.cs index 736ab04f1..93d4ed2fb 100644 --- a/CefSharp/Internals/FileResourceHandler.cs +++ b/CefSharp/Internals/FileResourceHandler.cs @@ -11,8 +11,11 @@ using System.Text; namespace CefSharp { /// - /// FileResourceHandler is used as a placeholder to represent the underlying CefStreamResourceHandler + /// FileResourceHandler is used as a placeholder class which uses native CEF implementations. + /// CefStreamReader::CreateForFile is used to create a CefStreamReader instance which is passed to + /// a new instance of CefStreamResourceHandler /// (Was previously ResourceHandlerType::File to differentiate, going for a more flexible approach now) + /// TODO: Move this class into Handler namespace /// public class FileResourceHandler : IResourceHandler {