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.

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

mercurial