uriloader/exthandler/mac/nsOSHelperAppService.h

Wed, 31 Dec 2014 07:53:36 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:53:36 +0100
branch
TOR_BUG_3246
changeset 5
4ab42b5ab56c
permissions
-rw-r--r--

Correct small whitespace inconsistency, lost while renaming variables.

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 nsOSHelperAppService_h__
michael@0 8 #define nsOSHelperAppService_h__
michael@0 9
michael@0 10 // The OS helper app service is a subclass of nsExternalHelperAppService and is implemented on each
michael@0 11 // platform. It contains platform specific code for finding helper applications for a given mime type
michael@0 12 // in addition to launching those applications. This is the Mac version.
michael@0 13
michael@0 14 #include "nsExternalHelperAppService.h"
michael@0 15 #include "nsCExternalHandlerService.h"
michael@0 16 #include "nsMIMEInfoImpl.h"
michael@0 17 #include "nsCOMPtr.h"
michael@0 18
michael@0 19 class nsOSHelperAppService : public nsExternalHelperAppService
michael@0 20 {
michael@0 21 public:
michael@0 22 nsOSHelperAppService();
michael@0 23 virtual ~nsOSHelperAppService();
michael@0 24
michael@0 25 // override nsIExternalProtocolService methods
michael@0 26 NS_IMETHOD GetApplicationDescription(const nsACString& aScheme, nsAString& _retval);
michael@0 27
michael@0 28 // method overrides --> used to hook the mime service into internet config....
michael@0 29 NS_IMETHOD GetFromTypeAndExtension(const nsACString& aType, const nsACString& aFileExt, nsIMIMEInfo ** aMIMEInfo);
michael@0 30 already_AddRefed<nsIMIMEInfo> GetMIMEInfoFromOS(const nsACString& aMIMEType, const nsACString& aFileExt, bool * aFound);
michael@0 31 NS_IMETHOD GetProtocolHandlerInfoFromOS(const nsACString &aScheme,
michael@0 32 bool *found,
michael@0 33 nsIHandlerInfo **_retval);
michael@0 34
michael@0 35 // GetFileTokenForPath must be implemented by each platform.
michael@0 36 // platformAppPath --> a platform specific path to an application that we got out of the
michael@0 37 // rdf data source. This can be a mac file spec, a unix path or a windows path depending on the platform
michael@0 38 // aFile --> an nsIFile representation of that platform application path.
michael@0 39 virtual nsresult GetFileTokenForPath(const char16_t * platformAppPath, nsIFile ** aFile);
michael@0 40
michael@0 41 nsresult OSProtocolHandlerExists(const char * aScheme,
michael@0 42 bool * aHandlerExists);
michael@0 43
michael@0 44 private:
michael@0 45 uint32_t mPermissions;
michael@0 46 };
michael@0 47
michael@0 48 #endif // nsOSHelperAppService_h__

mercurial