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

Unified Diff: remoting/host/elevated_controller_win.h

Issue 9953002: The me2me host is now configurable from the web UI on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feedback Created 8 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/elevated_controller_win.h
diff --git a/remoting/host/elevated_controller_win.h b/remoting/host/elevated_controller_win.h
index 64a9afac6bf417cbd917629361fde7a3bc1a7f81..6f73162f1cd41276b381a7c61e9d18b5ca49d474 100644
--- a/remoting/host/elevated_controller_win.h
+++ b/remoting/host/elevated_controller_win.h
@@ -9,8 +9,10 @@
#include <atlcom.h>
#include <atlctl.h>
+#include "remoting/base/scoped_sc_handle_win.h"
+
// MIDL-generated declarations.
-#include <elevated_controller.h>
+#include "elevated_controller.h"
namespace remoting {
@@ -18,10 +20,7 @@ class ATL_NO_VTABLE ElevatedControllerWin
: public ATL::CComObjectRootEx<ATL::CComSingleThreadModel>,
public ATL::CComCoClass<ElevatedControllerWin, &CLSID_ElevatedController>,
public ATL::IDispatchImpl<IDaemonControl, &IID_IDaemonControl,
- &LIBID_ChromotingElevatedControllerLib, 1, 0>,
- public ATL::IConnectionPointContainerImpl<ElevatedControllerWin>,
- public ATL::IConnectionPointImpl<ElevatedControllerWin,
- &IID_IDaemonEvents> {
+ &LIBID_ChromotingElevatedControllerLib, 1, 0> {
public:
ElevatedControllerWin();
@@ -29,27 +28,21 @@ class ATL_NO_VTABLE ElevatedControllerWin
void FinalRelease();
// IDaemonControl implementation.
- STDMETHOD(get_State)(DaemonState* state_out);
- STDMETHOD(ReadConfig)(BSTR* config_out);
- STDMETHOD(WriteConfig)(BSTR config);
+ STDMETHOD(GetConfig)(BSTR* config_out);
+ STDMETHOD(SetConfig)(BSTR config);
STDMETHOD(StartDaemon)();
STDMETHOD(StopDaemon)();
- // Fires IDaemonEvents::OnStateChange notification.
- HRESULT FireOnStateChange(DaemonState state);
-
DECLARE_NO_REGISTRY()
+ private:
+ HRESULT OpenService(ScopedScHandle* service_out);
Wez 2012/03/30 22:11:01 base::ScopedScHandle?
+
BEGIN_COM_MAP(ElevatedControllerWin)
COM_INTERFACE_ENTRY(IDaemonControl)
COM_INTERFACE_ENTRY(IDispatch)
- COM_INTERFACE_ENTRY(IConnectionPointContainer)
END_COM_MAP()
- BEGIN_CONNECTION_POINT_MAP(ElevatedControllerWin)
- CONNECTION_POINT_ENTRY(IID_IDaemonEvents)
- END_CONNECTION_POINT_MAP()
-
DECLARE_PROTECT_FINAL_CONSTRUCT()
};

Powered by Google App Engine
This is Rietveld 408576698