1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/uriloader/exthandler/mac/nsMIMEInfoMac.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,34 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#ifndef nsMIMEInfoMac_h_ 1.9 +#define nsMIMEInfoMac_h_ 1.10 + 1.11 +#include "nsMIMEInfoImpl.h" 1.12 + 1.13 +class nsMIMEInfoMac : public nsMIMEInfoImpl { 1.14 + public: 1.15 + nsMIMEInfoMac(const char* aMIMEType = "") : nsMIMEInfoImpl(aMIMEType) {} 1.16 + nsMIMEInfoMac(const nsACString& aMIMEType) : nsMIMEInfoImpl(aMIMEType) {} 1.17 + nsMIMEInfoMac(const nsACString& aType, HandlerClass aClass) : 1.18 + nsMIMEInfoImpl(aType, aClass) {} 1.19 + 1.20 + NS_IMETHOD LaunchWithFile(nsIFile* aFile); 1.21 + protected: 1.22 + virtual NS_HIDDEN_(nsresult) LoadUriInternal(nsIURI *aURI); 1.23 +#ifdef DEBUG 1.24 + virtual NS_HIDDEN_(nsresult) LaunchDefaultWithFile(nsIFile* aFile) { 1.25 + NS_NOTREACHED("do not call this method, use LaunchWithFile"); 1.26 + return NS_ERROR_UNEXPECTED; 1.27 + } 1.28 +#endif 1.29 + static NS_HIDDEN_(nsresult) OpenApplicationWithURI(nsIFile *aApplication, 1.30 + const nsCString& aURI); 1.31 + 1.32 + NS_IMETHOD GetDefaultDescription(nsAString& aDefaultDescription); 1.33 + 1.34 +}; 1.35 + 1.36 + 1.37 +#endif