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

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

Issue 884713010: Remove ElevatedController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updating comment Created 5 years, 10 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
« no previous file with comments | « remoting/host/win/chromoting_module.cc ('k') | remoting/host/win/elevated_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/win/elevated_controller.h
diff --git a/remoting/host/win/elevated_controller.h b/remoting/host/win/elevated_controller.h
deleted file mode 100644
index 23e5e318ef2504ed9968503902494d2ad48071c2..0000000000000000000000000000000000000000
--- a/remoting/host/win/elevated_controller.h
+++ /dev/null
@@ -1,74 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef REMOTING_HOST_WIN_ELEVATED_CONTROLLER_H_
-#define REMOTING_HOST_WIN_ELEVATED_CONTROLLER_H_
-
-#include <atlbase.h>
-#include <atlcom.h>
-#include <atlctl.h>
-
-#include "remoting/base/scoped_sc_handle_win.h"
-
-// chromoting_lib.h contains MIDL-generated declarations.
-#include "remoting/host/chromoting_lib.h"
-
-namespace remoting {
-
-class __declspec(uuid(DAEMON_CONTROLLER_CLSID)) ElevatedController
- : public ATL::CComObjectRootEx<ATL::CComSingleThreadModel>,
- public ATL::CComCoClass<ElevatedController,
- &__uuidof(ElevatedController)>,
- public ATL::IDispatchImpl<IDaemonControl2, &IID_IDaemonControl2,
- &LIBID_ChromotingLib, 1, 0> {
- public:
- // Declare a class factory which must not lock the ATL module. This is the
- // same as DECLARE_CLASSFACTORY() with the exception that
- // ATL::CComObjectNoLock is used unconditionally.
- //
- // By default ATL generates locking class factories (by wrapping them in
- // ATL::CComObjectCached) for classes hosted in a DLL. This class is compiled
- // into a DLL but it is registered as an out-of-process class, so its class
- // factory should not use locking.
- typedef ATL::CComCreator<ATL::CComObjectNoLock<ATL::CComClassFactory> >
- _ClassFactoryCreatorClass;
-
- ElevatedController();
-
- HRESULT FinalConstruct();
- void FinalRelease();
-
- // IDaemonControl implementation.
- STDMETHOD(GetConfig)(BSTR* config_out);
- STDMETHOD(GetVersion)(BSTR* version_out);
- STDMETHOD(SetConfig)(BSTR config);
- STDMETHOD(SetOwnerWindow)(LONG_PTR owner_window);
- STDMETHOD(StartDaemon)();
- STDMETHOD(StopDaemon)();
- STDMETHOD(UpdateConfig)(BSTR config);
-
- // IDaemonControl2 implementation.
- STDMETHOD(GetUsageStatsConsent)(BOOL* allowed, BOOL* set_by_policy);
- STDMETHOD(SetUsageStatsConsent)(BOOL allowed);
-
- DECLARE_NO_REGISTRY()
-
- private:
- HRESULT OpenService(ScopedScHandle* service_out);
-
- BEGIN_COM_MAP(ElevatedController)
- COM_INTERFACE_ENTRY(IDaemonControl)
- COM_INTERFACE_ENTRY(IDaemonControl2)
- COM_INTERFACE_ENTRY(IDispatch)
- END_COM_MAP()
-
- // Handle of the owner window (if any) for any UI to be shown.
- HWND owner_window_;
-
- DECLARE_PROTECT_FINAL_CONSTRUCT()
-};
-
-} // namespace remoting
-
-#endif // REMOTING_HOST_WIN_ELEVATED_CONTROLLER_H_
« no previous file with comments | « remoting/host/win/chromoting_module.cc ('k') | remoting/host/win/elevated_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698