uriloader/exthandler/mac/nsMIMEInfoMac.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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/. */
     5 #ifndef nsMIMEInfoMac_h_
     6 #define nsMIMEInfoMac_h_
     8 #include "nsMIMEInfoImpl.h"
    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) {}
    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);
    29     NS_IMETHOD GetDefaultDescription(nsAString& aDefaultDescription);
    31 };
    34 #endif

mercurial