uriloader/exthandler/unix/nsMIMEInfoUnix.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/uriloader/exthandler/unix/nsMIMEInfoUnix.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,32 @@
     1.4 +/* -*- Mode: C++; tab-width: 3; indent-tabs-mode: nil; c-basic-offset: 2 -*-
     1.5 + *
     1.6 + * This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#ifndef nsMIMEInfoUnix_h_
    1.11 +#define nsMIMEInfoUnix_h_
    1.12 +
    1.13 +#include "nsMIMEInfoImpl.h"
    1.14 +
    1.15 +class nsMIMEInfoUnix : public nsMIMEInfoImpl
    1.16 +{
    1.17 +public:
    1.18 +  nsMIMEInfoUnix(const char *aMIMEType = "") : nsMIMEInfoImpl(aMIMEType) {}
    1.19 +  nsMIMEInfoUnix(const nsACString& aMIMEType) : nsMIMEInfoImpl(aMIMEType) {}
    1.20 +  nsMIMEInfoUnix(const nsACString& aType, HandlerClass aClass) :
    1.21 +    nsMIMEInfoImpl(aType, aClass) {}
    1.22 +  static bool HandlerExists(const char *aProtocolScheme);
    1.23 +
    1.24 +protected:
    1.25 +  NS_IMETHOD GetHasDefaultHandler(bool *_retval);
    1.26 +
    1.27 +  virtual NS_HIDDEN_(nsresult) LoadUriInternal(nsIURI *aURI);
    1.28 +
    1.29 +  virtual NS_HIDDEN_(nsresult) LaunchDefaultWithFile(nsIFile *aFile);
    1.30 +#if defined(MOZ_ENABLE_CONTENTACTION)
    1.31 +  NS_IMETHOD GetPossibleApplicationHandlers(nsIMutableArray * *aPossibleAppHandlers);
    1.32 +#endif
    1.33 +};
    1.34 +
    1.35 +#endif // nsMIMEInfoUnix_h_

mercurial