dom/plugins/base/nsPluginDirServiceProvider.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
     2 /* This Source Code Form is subject to the terms of the Mozilla Public
     3  * License, v. 2.0. If a copy of the MPL was not distributed with this
     4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     6 #ifndef nsPluginDirServiceProvider_h_
     7 #define nsPluginDirServiceProvider_h_
     9 #include "nsIDirectoryService.h"
    11 #if defined (XP_WIN)
    12 #include "nsCOMArray.h"
    13 #endif
    15 class nsISimpleEnumerator;
    17 // Note: Our directory service provider scan keys are prefs which are check
    18 //       for minimum versions compatibility
    19 #define NS_WIN_ACROBAT_SCAN_KEY        "plugin.scan.Acrobat"
    20 #define NS_WIN_QUICKTIME_SCAN_KEY      "plugin.scan.Quicktime"
    21 #define NS_WIN_WMP_SCAN_KEY            "plugin.scan.WindowsMediaPlayer"
    23 //*****************************************************************************
    24 // class nsPluginDirServiceProvider
    25 //*****************************************************************************   
    27 class nsPluginDirServiceProvider : public nsIDirectoryServiceProvider
    28 {
    29 public:
    30    nsPluginDirServiceProvider();
    32    NS_DECL_THREADSAFE_ISUPPORTS
    33    NS_DECL_NSIDIRECTORYSERVICEPROVIDER
    35 #ifdef XP_WIN
    36    static nsresult GetPLIDDirectories(nsISimpleEnumerator **aEnumerator);
    37 private:
    38    static nsresult GetPLIDDirectoriesWithRootKey(uint32_t aKey,
    39      nsCOMArray<nsIFile> &aDirs);
    40 #endif
    42 protected:
    43    virtual ~nsPluginDirServiceProvider();
    44 };
    46 #endif // nsPluginDirServiceProvider_h_

mercurial