Backed out changeset b06f19b95b94 (bug 1784438) for causing build bustages CLOSED...
[gecko.git] / toolkit / components / remote / nsMacRemoteServer.h
blob0e2bda8a32bfe41eda46033ef9bc78de81c0ca0f
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/. */
8 #ifndef TOOLKIT_COMPONENTS_REMOTE_NSMACREMOTESERVER_H_
9 #define TOOLKIT_COMPONENTS_REMOTE_NSMACREMOTESERVER_H_
11 #import <CoreFoundation/CoreFoundation.h>
13 #include "nsRemoteServer.h"
15 class nsMacRemoteServer final : public nsRemoteServer {
16 public:
17 nsMacRemoteServer() = default;
18 ~nsMacRemoteServer() override { Shutdown(); }
20 nsresult Startup(const char* aAppName, const char* aProfileName) override;
21 void Shutdown() override;
23 void HandleCommandLine(CFDataRef aData);
25 private:
26 CFRunLoopSourceRef mRunLoopSource;
27 CFMessagePortRef mMessageServer;
30 #endif // TOOLKIT_COMPONENTS_REMOTE_NSMACREMOTESERVER_H_