Thu, 15 Jan 2015 15:55:04 +0100
Back out 97036ab72558 which inappropriately compared turds to third parties.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | #ifndef nsgnomeshellservice_h____ |
michael@0 | 7 | #define nsgnomeshellservice_h____ |
michael@0 | 8 | |
michael@0 | 9 | #include "nsIShellService.h" |
michael@0 | 10 | #include "nsStringAPI.h" |
michael@0 | 11 | #include "mozilla/Attributes.h" |
michael@0 | 12 | |
michael@0 | 13 | class nsGNOMEShellService MOZ_FINAL : public nsIShellService |
michael@0 | 14 | { |
michael@0 | 15 | public: |
michael@0 | 16 | nsGNOMEShellService() : mCheckedThisSession(false), mAppIsInPath(false) { } |
michael@0 | 17 | |
michael@0 | 18 | NS_DECL_ISUPPORTS |
michael@0 | 19 | NS_DECL_NSISHELLSERVICE |
michael@0 | 20 | |
michael@0 | 21 | nsresult Init() NS_HIDDEN; |
michael@0 | 22 | |
michael@0 | 23 | private: |
michael@0 | 24 | ~nsGNOMEShellService() {} |
michael@0 | 25 | |
michael@0 | 26 | NS_HIDDEN_(bool) KeyMatchesAppName(const char *aKeyValue) const; |
michael@0 | 27 | NS_HIDDEN_(bool) CheckHandlerMatchesAppName(const nsACString& handler) const; |
michael@0 | 28 | |
michael@0 | 29 | NS_HIDDEN_(bool) GetAppPathFromLauncher(); |
michael@0 | 30 | bool mCheckedThisSession; |
michael@0 | 31 | bool mUseLocaleFilenames; |
michael@0 | 32 | nsCString mAppPath; |
michael@0 | 33 | bool mAppIsInPath; |
michael@0 | 34 | }; |
michael@0 | 35 | |
michael@0 | 36 | #endif // nsgnomeshellservice_h____ |