uriloader/exthandler/android/nsOSHelperAppService.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/uriloader/exthandler/android/nsOSHelperAppService.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,40 @@
     1.4 +/* -*- Mode: c++; c-basic-offset: 4; tab-width: 20; indent-tabs-mode: nil; -*-
     1.5 + * This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#ifndef nsOSHelperAppService_h
    1.10 +#define nsOSHelperAppService_h
    1.11 +
    1.12 +#include "nsCExternalHandlerService.h"
    1.13 +#include "nsExternalHelperAppService.h"
    1.14 +
    1.15 +class nsOSHelperAppService : public nsExternalHelperAppService
    1.16 +{
    1.17 +public:
    1.18 +    nsOSHelperAppService();
    1.19 +    virtual ~nsOSHelperAppService();
    1.20 +
    1.21 +    virtual already_AddRefed<nsIMIMEInfo>
    1.22 +    GetMIMEInfoFromOS(const nsACString& aMIMEType,
    1.23 +                      const nsACString& aFileExt,
    1.24 +                      bool* aFound);
    1.25 +
    1.26 +    virtual NS_HIDDEN_(nsresult)
    1.27 +    OSProtocolHandlerExists(const char* aScheme,
    1.28 +                            bool* aExists);
    1.29 +
    1.30 +    NS_IMETHOD GetProtocolHandlerInfoFromOS(const nsACString &aScheme,
    1.31 +                                            bool *found,
    1.32 +                                            nsIHandlerInfo **_retval);
    1.33 +
    1.34 +    static nsIHandlerApp*
    1.35 +    CreateAndroidHandlerApp(const nsAString& aName,
    1.36 +                            const nsAString& aDescription,
    1.37 +                            const nsAString& aPackageName,
    1.38 +                            const nsAString& aClassName, 
    1.39 +                            const nsACString& aMimeType,
    1.40 +                            const nsAString& aAction = EmptyString());
    1.41 +};
    1.42 +
    1.43 +#endif /* nsOSHelperAppService_h */

mercurial