/// <summary>
 /// Called to retrieve an extension resource that would normally be loaded from disk
 /// (e.g. if a file parameter is specified to chrome.tabs.executeScript).
 /// Localization substitutions will not be applied to resources handled via this method.
 /// </summary>
 /// <param name="extension">extension the call originates from</param>
 /// <param name="browser">browser the call originates from</param>
 /// <param name="file">is the requested relative file path.</param>
 /// <param name="callback">callback used to handle custom resource requests</param>
 /// <returns>To handle the resource request return true and execute <paramref name="callback"/> either synchronously or asynchronously.
 /// For the default behavior which reads the resource from the extension directory on disk return false</returns>
 protected virtual bool GetExtensionResource(IExtension extension, IBrowser browser, string file, IGetExtensionResourceCallback callback)
 {
     return(false);
 }
Exemple #2
0
 bool IExtensionHandler.GetExtensionResource(IExtension extension, IBrowser browser, string file, IGetExtensionResourceCallback callback)
 {
     return(false);
 }
Exemple #3
0
 public bool GetExtensionResource(IExtension extension, IBrowser browser, string file, IGetExtensionResourceCallback callback)
 {
     return(true);
 }