uriloader/exthandler/mac/nsMIMEInfoMac.h

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:04425b9f6338
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5 #ifndef nsMIMEInfoMac_h_
6 #define nsMIMEInfoMac_h_
7
8 #include "nsMIMEInfoImpl.h"
9
10 class nsMIMEInfoMac : public nsMIMEInfoImpl {
11 public:
12 nsMIMEInfoMac(const char* aMIMEType = "") : nsMIMEInfoImpl(aMIMEType) {}
13 nsMIMEInfoMac(const nsACString& aMIMEType) : nsMIMEInfoImpl(aMIMEType) {}
14 nsMIMEInfoMac(const nsACString& aType, HandlerClass aClass) :
15 nsMIMEInfoImpl(aType, aClass) {}
16
17 NS_IMETHOD LaunchWithFile(nsIFile* aFile);
18 protected:
19 virtual NS_HIDDEN_(nsresult) LoadUriInternal(nsIURI *aURI);
20 #ifdef DEBUG
21 virtual NS_HIDDEN_(nsresult) LaunchDefaultWithFile(nsIFile* aFile) {
22 NS_NOTREACHED("do not call this method, use LaunchWithFile");
23 return NS_ERROR_UNEXPECTED;
24 }
25 #endif
26 static NS_HIDDEN_(nsresult) OpenApplicationWithURI(nsIFile *aApplication,
27 const nsCString& aURI);
28
29 NS_IMETHOD GetDefaultDescription(nsAString& aDefaultDescription);
30
31 };
32
33
34 #endif

mercurial