Skip to content

Commit

Permalink
CefSettings/RequestContextSettings - Improve xml doc
Browse files Browse the repository at this point in the history
Clarifications about empty/non-empty values for CachePath/RootCachePath
  • Loading branch information
amaitland committed Jun 14, 2019
1 parent 6dde636 commit c0ebbb4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 19 deletions.
27 changes: 15 additions & 12 deletions CefSharp.Core/AbstractCefSettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,13 @@ namespace CefSharp
}

/// <summary>
/// The location where cache data will be stored on disk. If empty then
/// browsers will be created in "incognito mode" where in-memory caches are
/// used for storage and no data is persisted to disk. HTML5 databases such as
/// localStorage will only persist across sessions if a cache path is
/// specified. Can be overridden for individual CefRequestContext instances via
/// the RequestContextSettings.CachePath value.
/// The location where data for the global browser cache will be stored on disk.
/// In non-empty this must be either equal to or a child directory of CefSettings.RootCachePath
/// (if RootCachePath is empty it will default to this value).
/// If empty then browsers will be created in "incognito mode" where in-memory caches are used
/// for storage and no data is persisted to disk. HTML5 databases such as localStorage will
/// only persist across sessions if a cache path is specified. Can be overridden for individual
/// RequestContext instances via the RequestContextSettings.CachePath value.
/// </summary>
property String^ CachePath
{
Expand All @@ -163,12 +164,14 @@ namespace CefSharp
}

/// <summary>
/// The root directory that all CefSettings.CachePath and
/// RequestContextSettings.CachePath values must have in common. If this
/// value is empty and CefSettings.CachePath is non-empty then this value will
/// default to the CefSettings.CachePath value. Failure to set this value
/// correctly may result in the sandbox blocking read/write access to the
/// CachePath directory. NOTE: CefSharp does not implement the CHROMIUM SANDBOX.
/// The root directory that all CefSettings.CachePath and RequestContextSettings.CachePath values
/// must have in common. If this value is empty and CefSettings.CachePath is non-empty then this
/// value will default to the CefSettings.CachePath value. Failure to set this value correctly
/// may result in the sandbox blocking read/write access to the CachePath directory.
/// NOTE: CefSharp does not implement the CHROMIUM SANDBOX.
/// A non-empty RootCachePath can be used in conjuncation with an empty CefSettings.CachePath
/// in instances where you would like browsers attached to the Global RequestContext (the default)
/// created in "incognito mode" and instances created with a custom RequestContext using a disk based cache.
/// </summary>
property String^ RootCachePath
{
Expand Down
16 changes: 9 additions & 7 deletions CefSharp.Core/RequestContextSettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,14 @@ namespace CefSharp
}

/// <summary>
/// The location where cache data will be stored on disk. If empty then
/// browsers will be created in "incognito mode" where in-memory caches are
/// used for storage and no data is persisted to disk. HTML5 databases such as
/// localStorage will only persist across sessions if a cache path is
/// specified. To share the global browser cache and related configuration set
/// this value to match the CefSettings.CachePath value.
/// The location where cache data for this request context will be stored on
/// disk. If non-empty this must be either equal to or a child directory of
/// CefSettings.RootCachePath. If empty then browsers will be created in
/// "incognito mode" where in-memory caches are used for storage and no data is
/// persisted to disk. HTML5 databases such as localStorage will only persist
/// across sessions if a cache path is specified. To share the global browser
/// cache and related configuration set this value to match the
/// CefSettings.CachePath value.
/// </summary>
property String^ CachePath
{
Expand Down Expand Up @@ -121,4 +123,4 @@ namespace CefSharp
void set(bool value) { _settings->ignore_certificate_errors = value; }
}
};
}
}

0 comments on commit c0ebbb4

Please sign in to comment.