@@ -306,6 +306,73 @@ namespace CefSharp
306
306
// / <returns>A task that represents the Resoolve Host operation. The value of the TResult parameter contains ResolveCallbackResult.</returns>
307
307
virtual Task<ResolveCallbackResult>^ ResolveHostAsync(Uri^ origin);
308
308
309
+ // / <summary>
310
+ // / Returns the current value for <paramref name="contentType"/> that applies for the
311
+ // / specified URLs. If both URLs are empty the default value will be returned.
312
+ // / Returns null if no value is configured.
313
+ // / Must be called on the browser
314
+ // / process UI thread.
315
+ // / </summary>
316
+ // / <param name="requestingUrl">Requesting url</param>
317
+ // / <param name="topLevelUrl">Top level url</param>
318
+ // / <param name="contentType">Content type</param>
319
+ // / <returns>Returns the current value for <paramref name="contentType"/> that applies for the
320
+ // / specified URLs.</returns>
321
+ virtual Object^ GetWebsiteSetting(String^ requestingUrl, String^ topLevelUrl, Enums::ContentSettingTypes contentType);
322
+
323
+ // / <summary>
324
+ // / Sets the current value for <paramref name="contentType"/> for the specified URLs in the
325
+ // / default scope. If both URLs are empty, and the context is not incognito,
326
+ // / the default value will be set. Pass null for <paramref name="value"/> to remove the
327
+ // / default value for this content type.
328
+ // /
329
+ // / WARNING: Incorrect usage of this method may cause instability or security
330
+ // / issues in Chromium. Make sure that you first understand the potential
331
+ // / impact of any changes to <paramref name="contentType"/> by reviewing the related source
332
+ // / code in Chromium. For example, if you plan to modify
333
+ // / <see cref="ContentSettingTypes.Popups"/>, first review and understand the usage of
334
+ // / ContentSettingsType::POPUPS in Chromium:
335
+ // / https://source.chromium.org/search?q=ContentSettingsType::POPUPS
336
+ // / </summary>
337
+ // / <param name="requestingUrl">Requesting url</param>
338
+ // / <param name="topLevelUrl">Top level url</param>
339
+ // / <param name="contentType">Content type</param>
340
+ // / <param name="value">value </param>
341
+ virtual void SetWebsiteSetting (String^ requestingUrl, String^ topLevelUrl, Enums::ContentSettingTypes contentType, Object^ value);
342
+
343
+ // / <summary>
344
+ // / Returns the current value for <paramref name="contentType"/> that applies for the
345
+ // / specified URLs. If both URLs are empty the default value will be returned.
346
+ // / Returns <see cref="ContentSettingValues.Default"/> if no value is configured. Must
347
+ // / be called on the browser process UI thread.
348
+ // / </summary>
349
+ // / <param name="requestingUrl">Requesting url</param>
350
+ // / <param name="topLevelUrl">Top level url</param>
351
+ // / <param name="contentType">Content type</param>
352
+ // / <returns>Returns the current value for <paramref name="contentType"/> that applies for the
353
+ // / specified URLs.</returns>
354
+ virtual Enums::ContentSettingValues GetContentSetting (String^ requestingUrl, String^ topLevelUrl, Enums::ContentSettingTypes contentType);
355
+
356
+ // / <summary>
357
+ // / Sets the current value for <paramref name="contentType"/> for the specified URLs in the
358
+ // / default scope. If both URLs are empty, and the context is not incognito,
359
+ // / the default value will be set. Pass <see cref="ContentSettingValues.Default"/> for
360
+ // / <paramref name="value"/> to use the default value for this content type.
361
+ // /
362
+ // / WARNING: Incorrect usage of this method may cause instability or security
363
+ // / issues in Chromium. Make sure that you first understand the potential
364
+ // / impact of any changes to |content_type| by reviewing the related source
365
+ // / code in Chromium. For example, if you plan to modify
366
+ // / <see cref="ContentSettingTypes.Popups"/>, first review and understand the usage of
367
+ // / ContentSettingsType::POPUPS in Chromium:
368
+ // / https://source.chromium.org/search?q=ContentSettingsType::POPUPS
369
+ // / </summary>
370
+ // / <param name="requestingUrl">Requesting url</param>
371
+ // / <param name="topLevelUrl">Top level url</param>
372
+ // / <param name="contentType">Content type</param>
373
+ // / <param name="value">value</param>
374
+ virtual void SetContentSetting (String^ requestingUrl, String^ topLevelUrl, Enums::ContentSettingTypes contentType, Enums::ContentSettingValues value);
375
+
309
376
// / <summary>
310
377
// / Gets the inner most instance
311
378
// / </summary>
0 commit comments