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.

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

mercurial