@@ -71,30 +71,40 @@ public interface IRequestContext : IDisposable
7171
7272 /// <summary>
7373 /// Tells all renderer processes associated with this context to throw away
74- /// their plugin list cache. If |reload_pages| is true they will also reload
74+ /// their plugin list cache. If reloadPages is true they will also reload
7575 /// all pages with plugins. RequestContextHandler.OnBeforePluginLoad may
7676 /// be called to rebuild the plugin list cache.
7777 /// </summary>
7878 /// <param name="reloadPages">reload any pages with pluginst</param>
7979 void PurgePluginListCache ( bool reloadPages ) ;
8080
8181 /// <summary>
82- /// Returns true if a preference with the specified | name| exists. This method
83- /// must be called on the browser process UI thread.
82+ /// Returns true if a preference with the specified name exists. This method
83+ /// must be called on the CEF UI thread.
8484 /// </summary>
85- /// <param name="name"></param>
86- /// <returns></returns>
85+ /// <param name="name">name of preference</param>
86+ /// <returns>bool if the preference exists</returns>
87+ /// <remarks>Use Cef.UIThreadTaskFactory to execute this method if required,
88+ /// Cef.OnContextInitialized and ChromiumWebBrowser.IsBrowserInitializedChanged are both
89+ /// executed on the CEF UI thread, so can be called directly.
90+ /// When CefSettings.MultiThreadedMessageLoop == false (the default is true) then the main
91+ /// application thread will be the CEF UI thread.</remarks>
8792 bool HasPreference ( string name ) ;
8893
8994 /// <summary>
90- /// Returns the value for the preference with the specified | name| . Returns
95+ /// Returns the value for the preference with the specified name. Returns
9196 /// NULL if the preference does not exist. The returned object contains a copy
9297 /// of the underlying preference value and modifications to the returned object
9398 /// will not modify the underlying preference value. This method must be called
94- /// on the browser process UI thread.
99+ /// on the CEF UI thread.
95100 /// </summary>
96- /// <param name="name"></param>
97- /// <returns></returns>
101+ /// <param name="name">preference name</param>
102+ /// <returns>Returns the value for the preference with the specified name</returns>
103+ /// <remarks>Use Cef.UIThreadTaskFactory to execute this method if required,
104+ /// Cef.OnContextInitialized and ChromiumWebBrowser.IsBrowserInitializedChanged are both
105+ /// executed on the CEF UI thread, so can be called directly.
106+ /// When CefSettings.MultiThreadedMessageLoop == false (the default is true) then the main
107+ /// application thread will be the CEF UI thread.</remarks>
98108 object GetPreference ( string name ) ;
99109
100110 /// <summary>
@@ -112,25 +122,34 @@ public interface IRequestContext : IDisposable
112122 /// <summary>
113123 /// Returns true if the preference with the specified name can be modified
114124 /// using SetPreference. As one example preferences set via the command-line
115- /// usually cannot be modified. This method must be called on the browser
116- /// process UI thread.
125+ /// usually cannot be modified. This method must be called on the CEF UI thread.
117126 /// </summary>
118127 /// <param name="name">preference key</param>
119128 /// <returns>Returns true if the preference with the specified name can be modified
120129 /// using SetPreference</returns>
130+ /// <remarks>Use Cef.UIThreadTaskFactory to execute this method if required,
131+ /// Cef.OnContextInitialized and ChromiumWebBrowser.IsBrowserInitializedChanged are both
132+ /// executed on the CEF UI thread, so can be called directly.
133+ /// When CefSettings.MultiThreadedMessageLoop == false (the default is true) then the main
134+ /// application thread will be the CEF UI thread.</remarks>
121135 bool CanSetPreference ( string name ) ;
122136
123137 /// <summary>
124138 /// Set the value associated with preference name. If value is null the
125139 /// preference will be restored to its default value. If setting the preference
126140 /// fails then error will be populated with a detailed description of the
127- /// problem. This method must be called on the browser process UI thread.
141+ /// problem. This method must be called on the CEF UI thread.
128142 /// Preferences set via the command-line usually cannot be modified.
129143 /// </summary>
130144 /// <param name="name">preference key</param>
131145 /// <param name="value">preference value</param>
132146 /// <param name="error">out error</param>
133147 /// <returns>Returns true if the value is set successfully and false otherwise.</returns>
148+ /// /// <remarks>Use Cef.UIThreadTaskFactory to execute this method if required,
149+ /// Cef.OnContextInitialized and ChromiumWebBrowser.IsBrowserInitializedChanged are both
150+ /// executed on the CEF UI thread, so can be called directly.
151+ /// When CefSettings.MultiThreadedMessageLoop == false (the default is true) then the main
152+ /// application thread will be the CEF UI thread.</remarks>
134153 bool SetPreference ( string name , object value , out string error ) ;
135154
136155 /// <summary>
0 commit comments