Line | Count | Source (jump to first uncovered line) |
1 | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | |
2 | /* vim:expandtab:shiftwidth=2:tabstop=2: | |
3 | */ | |
4 | /* This Source Code Form is subject to the terms of the Mozilla Public | |
5 | * License, v. 2.0. If a copy of the MPL was not distributed with this | |
6 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
7 | ||
8 | #ifndef __nsRemoteService_h__ | |
9 | #define __nsRemoteService_h__ | |
10 | ||
11 | #include "nsIRemoteService.h" | |
12 | #include "nsIObserverService.h" | |
13 | #include "nsIObserver.h" | |
14 | #include "nsPIDOMWindow.h" | |
15 | ||
16 | class nsRemoteService final : public nsIRemoteService, | |
17 | public nsIObserver | |
18 | { | |
19 | public: | |
20 | // We will be a static singleton, so don't use the ordinary methods. | |
21 | NS_DECL_ISUPPORTS | |
22 | NS_DECL_NSIREMOTESERVICE | |
23 | NS_DECL_NSIOBSERVER | |
24 | ||
25 | static const char* | |
26 | HandleCommandLine(const char* aBuffer, nsIDOMWindow* aWindow, | |
27 | uint32_t aTimestamp); | |
28 | ||
29 | nsCOMPtr<nsIRemoteService> mDBusRemoteService; | |
30 | nsCOMPtr<nsIRemoteService> mGtkRemoteService; | |
31 | ||
32 | nsRemoteService() | |
33 | 0 | {} |
34 | private: | |
35 | ~nsRemoteService(); | |
36 | ||
37 | static void | |
38 | SetDesktopStartupIDOrTimestamp(const nsACString& aDesktopStartupID, | |
39 | uint32_t aTimestamp); | |
40 | }; | |
41 | ||
42 | #endif // __nsRemoteService_h__ |