toolkit/components/remote/nsWinRemoteServer.h
author Dave Townsend <dtownsend@oxymoronical.com>
Wed, 06 Feb 2019 14:18:35 -0800
changeset 520645 fe3cd9f0d12bae82190bd17ea474d1a2f4bb80a2
parent 520631 84e8066625fd72fdb1eb6eab85621ae842fe91b4
child 521393 fdd61e6fb91139bedb183b393f4eecd45f914356
permissions -rw-r--r--
Bug 1518639: Implement windows remoting server and client. r=jimm Implements the windows remove client and server based on the current remoting code in nsNativeAppSupportWin.cpp. Makes the hidden window classname encode both program name and profile name. nsNativeAppSupportWin is now just used for setting up the console. Differential Revision: https://phabricator.services.mozilla.com/D19076

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:expandtab:shiftwidth=2:tabstop=2:
 */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef __nsWinRemoteServer_h__
#define __nsWinRemoteServer_h__

#include "nsRemoteServer.h"

#include <windows.h>

class nsWinRemoteServer final : public nsRemoteServer {
 public:
  nsWinRemoteServer() = default;
  ~nsWinRemoteServer() override = default;

  nsresult Startup(const char* aAppName, const char* aProfileName) override;
  void Shutdown() override;

 private:
  HWND mHandle;
};

#endif  // __nsWinRemoteService_h__