diff --git a/interfaces/IBrowser.h b/interfaces/IBrowser.h index a51333b9..6df7ddeb 100644 --- a/interfaces/IBrowser.h +++ b/interfaces/IBrowser.h @@ -20,6 +20,8 @@ #pragma once #include "Module.h" +// @stubgen:include + namespace WPEFramework { namespace Exchange { @@ -149,5 +151,31 @@ namespace Exchange { virtual uint32_t CollectGarbage() = 0; }; + /* @json */ + struct EXTERNAL IBrowserResources : virtual public Core::IUnknown { + + enum { ID = ID_BROWSER_RESOURCES }; + + using IStringIterator = RPC::IIteratorType; + + // @property + // @brief Headers to send on all requests that the browser makes + // @param header Header Name + virtual uint32_t Headers(IStringIterator*& header /* @out */) const = 0; + virtual uint32_t Headers(IStringIterator* const header) = 0; + + // @property + // @brief User scripts used by the browser + // @param uris JSON array containing URIs pointing to user scripts, supported protocols: file:// + virtual uint32_t UserScripts(IStringIterator*& uris /* @out */) const = 0; + virtual uint32_t UserScripts(IStringIterator* const uris) = 0; + + // @property + // @brief User style sheets used by the browser + // @param uris JSON array containing URIs pointing to user style sheets, supported protocols: file:// + virtual uint32_t UserStyleSheets(IStringIterator*& uris /* @out */) const = 0; + virtual uint32_t UserStyleSheets(IStringIterator* const uris) = 0; + }; + } } diff --git a/interfaces/Ids.h b/interfaces/Ids.h index 9b4fb28a..86b2206c 100644 --- a/interfaces/Ids.h +++ b/interfaces/Ids.h @@ -167,6 +167,7 @@ namespace Exchange { ID_REMOTEINVOCATION, ID_WEB_BROWSER, + ID_BROWSER_RESOURCES, ID_AVSCLIENT, ID_AVSCONTROLLER,