1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/chrome/src/nsChromeProtocolHandler.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,35 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#ifndef nsChromeProtocolHandler_h___ 1.10 +#define nsChromeProtocolHandler_h___ 1.11 + 1.12 +#include "nsIProtocolHandler.h" 1.13 +#include "nsWeakReference.h" 1.14 +#include "mozilla/Attributes.h" 1.15 + 1.16 +#define NS_CHROMEPROTOCOLHANDLER_CID \ 1.17 +{ /* 61ba33c0-3031-11d3-8cd0-0060b0fc14a3 */ \ 1.18 + 0x61ba33c0, \ 1.19 + 0x3031, \ 1.20 + 0x11d3, \ 1.21 + {0x8c, 0xd0, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \ 1.22 +} 1.23 + 1.24 +class nsChromeProtocolHandler MOZ_FINAL : public nsIProtocolHandler, 1.25 + public nsSupportsWeakReference 1.26 +{ 1.27 +public: 1.28 + NS_DECL_THREADSAFE_ISUPPORTS 1.29 + 1.30 + // nsIProtocolHandler methods: 1.31 + NS_DECL_NSIPROTOCOLHANDLER 1.32 + 1.33 + // nsChromeProtocolHandler methods: 1.34 + nsChromeProtocolHandler() {} 1.35 + ~nsChromeProtocolHandler() {} 1.36 +}; 1.37 + 1.38 +#endif /* nsChromeProtocolHandler_h___ */