michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: #ifndef nsIWebShellServices_h___ michael@0: #define nsIWebShellServices_h___ michael@0: michael@0: #include "nsISupports.h" michael@0: #include "nsCharsetSource.h" michael@0: michael@0: // Interface ID for nsIWebShellServices michael@0: michael@0: /* 0c628af0-5638-4703-8f99-ed6134c9de18 */ michael@0: #define NS_IWEB_SHELL_SERVICES_IID \ michael@0: { 0x0c628af0, 0x5638, 0x4703, {0x8f, 0x99, 0xed, 0x61, 0x34, 0xc9, 0xde, 0x18} } michael@0: michael@0: //---------------------------------------------------------------------- michael@0: michael@0: class nsIWebShellServices : public nsISupports { michael@0: public: michael@0: NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWEB_SHELL_SERVICES_IID) michael@0: michael@0: NS_IMETHOD ReloadDocument(const char* aCharset = nullptr , michael@0: int32_t aSource = kCharsetUninitialized) = 0; michael@0: NS_IMETHOD StopDocumentLoad(void) = 0; michael@0: }; michael@0: michael@0: NS_DEFINE_STATIC_IID_ACCESSOR(nsIWebShellServices, NS_IWEB_SHELL_SERVICES_IID) michael@0: michael@0: /* Use this macro when declaring classes that implement this interface. */ michael@0: #define NS_DECL_NSIWEBSHELLSERVICES \ michael@0: NS_IMETHOD ReloadDocument(const char *aCharset=nullptr, int32_t aSource=kCharsetUninitialized); \ michael@0: NS_IMETHOD StopDocumentLoad(void); \ michael@0: michael@0: #endif /* nsIWebShellServices_h___ */