1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim:expandtab:shiftwidth=2:tabstop=2:
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
{
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
);
26 CFRunLoopSourceRef mRunLoopSource
;
27 CFMessagePortRef mMessageServer
;
30 #endif // TOOLKIT_COMPONENTS_REMOTE_NSMACREMOTESERVER_H_