Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1329)

Unified Diff: remoting/host/win/host_service.h

Issue 13142002: Moved code implementing message-only windows to a dedicated class (Windows only). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: remoting/host/win/host_service.h
diff --git a/remoting/host/win/host_service.h b/remoting/host/win/host_service.h
index 942f3fadaf71122f4c1ba076c84a3dd68fec22bb..d57fb8de9b79abc13e0d3a44dd7f70d263f2875c 100644
--- a/remoting/host/win/host_service.h
+++ b/remoting/host/win/host_service.h
@@ -13,6 +13,7 @@
#include "base/memory/singleton.h"
#include "base/synchronization/waitable_event.h"
#include "net/base/ip_endpoint.h"
+#include "remoting/host/win/message_window.h"
#include "remoting/host/win/wts_terminal_monitor.h"
class CommandLine;
@@ -27,7 +28,8 @@ class AutoThreadTaskRunner;
class Stoppable;
class WtsTerminalObserver;
-class HostService : public WtsTerminalMonitor {
+class HostService : public win::MessageWindow::Delegate,
+ public WtsTerminalMonitor {
public:
static HostService* GetInstance();
@@ -68,6 +70,10 @@ class HostService : public WtsTerminalMonitor {
// console application).
int RunInConsole();
+ // win::MessageWindow::Delegate interface.
+ virtual bool HandleMessage(UINT message, WPARAM wparam, LPARAM lparam,
+ LRESULT* result) OVERRIDE;
+
static BOOL WINAPI ConsoleControlHandler(DWORD event);
// The control handler of the service.
@@ -79,11 +85,6 @@ class HostService : public WtsTerminalMonitor {
// The main service entry point.
static VOID WINAPI ServiceMain(DWORD argc, WCHAR* argv[]);
- static LRESULT CALLBACK SessionChangeNotificationProc(HWND hwnd,
- UINT message,
- WPARAM wparam,
- LPARAM lparam);
-
struct RegisteredObserver {
// Specifies the client address of an RDP connection or IPEndPoint() for
// the physical console.

Powered by Google App Engine
This is Rietveld 408576698