diff --git a/ElectronNET.API/BrowserWindow.cs b/ElectronNET.API/BrowserWindow.cs index 382c444..e7b18b4 100644 --- a/ElectronNET.API/BrowserWindow.cs +++ b/ElectronNET.API/BrowserWindow.cs @@ -2310,5 +2310,37 @@ namespace ElectronNET.API ContractResolver = new CamelCasePropertyNamesContractResolver(), NullValueHandling = NullValueHandling.Ignore }; + + /// + /// Adds Chrome extension located at path, and returns extension's name. + /// The method will also not return if the extension's manifest is missing or incomplete. + /// Note: This API cannot be called before the ready event of the app module is emitted. + /// + /// Path to the Chrome extension + /// + public static string AddExtension(string path) + { + throw new NotImplementedException(); + } + + /// + /// Remove Chrome extension with the specified name. + /// Note: This API cannot be called before the ready event of the app module is emitted. + /// + /// Name of the Chrome extension to remove + public static void RemoveExtension(string name) + { + throw new NotImplementedException(); + } + + /// + /// The keys are the extension names and each value is an object containing name and version properties. + /// Note: This API cannot be called before the ready event of the app module is emitted. + /// + /// + public static Dictionary GetExtensions() + { + throw new NotImplementedException(); + } } } diff --git a/ElectronNET.API/Entities/ChromeExtensionInfo.cs b/ElectronNET.API/Entities/ChromeExtensionInfo.cs new file mode 100644 index 0000000..09ec67c --- /dev/null +++ b/ElectronNET.API/Entities/ChromeExtensionInfo.cs @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace ElectronNET.API.Entities +{ + /// + /// Provide metadata about the current loaded Chrome extension + /// + public class ChromeExtensionInfo + { + private string _name; + private string _version; + + + internal ChromeExtensionInfo(string name, string version) + { + _name = name; + _version = version; + } + + /// + /// Name of the Chrome extension + /// + public string Name + { + get => _name; + } + + /// + /// Version of the Chrome extension + /// + public string Version + { + get => _version; + } + } +}