struct Manifest

Overview

Struct representing a native manifest. Reference: https://developer.chrome.com/docs/extensions/mv3/nativeMessaging/#native-messaging-host

Included Modules

Defined in:

manifest.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(name : String = PROGRAM_NAME, description : String = PROGRAM_NAME, path : Path = Path[Process.executable_path.to_s], type : String = "stdio", allowed_origins : Set(String) = Set(String).new) #

[View source]

Instance Method Detail

def add_extension(extension_id : String) #

Adds an extension to allowed origins.


[View source]
def allowed_origins : Set(String) #

The list of extensions allowed to communicate with the native application.


[View source]
def description : String #

The description of the native application.


[View source]
def name : String #

The name of the native application.


[View source]
def path : Path #

The path to the native application.


[View source]
def remove_extension(extension_id : String) #

Removes an extension from allowed origins.


[View source]
def type : String #

The type of interface used to communicate with the native application.


[View source]