uriloader/exthandler/unix/nsMIMEInfoUnix.h

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     1 /* -*- Mode: C++; tab-width: 3; indent-tabs-mode: nil; c-basic-offset: 2 -*-
     2  *
     3  * This Source Code Form is subject to the terms of the Mozilla Public
     4  * License, v. 2.0. If a copy of the MPL was not distributed with this
     5  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     7 #ifndef nsMIMEInfoUnix_h_
     8 #define nsMIMEInfoUnix_h_
    10 #include "nsMIMEInfoImpl.h"
    12 class nsMIMEInfoUnix : public nsMIMEInfoImpl
    13 {
    14 public:
    15   nsMIMEInfoUnix(const char *aMIMEType = "") : nsMIMEInfoImpl(aMIMEType) {}
    16   nsMIMEInfoUnix(const nsACString& aMIMEType) : nsMIMEInfoImpl(aMIMEType) {}
    17   nsMIMEInfoUnix(const nsACString& aType, HandlerClass aClass) :
    18     nsMIMEInfoImpl(aType, aClass) {}
    19   static bool HandlerExists(const char *aProtocolScheme);
    21 protected:
    22   NS_IMETHOD GetHasDefaultHandler(bool *_retval);
    24   virtual NS_HIDDEN_(nsresult) LoadUriInternal(nsIURI *aURI);
    26   virtual NS_HIDDEN_(nsresult) LaunchDefaultWithFile(nsIFile *aFile);
    27 #if defined(MOZ_ENABLE_CONTENTACTION)
    28   NS_IMETHOD GetPossibleApplicationHandlers(nsIMutableArray * *aPossibleAppHandlers);
    29 #endif
    30 };
    32 #endif // nsMIMEInfoUnix_h_

mercurial