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

Side by Side Diff: remoting/host/win/elevated_controller.h

Issue 10837087: [Chromoting] Auto-generate CLSID of the daemon controller at GYP time. This makes sure that a fresh… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/host/win/chromoting.wxs ('k') | remoting/host/win/elevated_controller.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_HOST_WIN_ELEVATED_CONTROLLER_H_ 5 #ifndef REMOTING_HOST_WIN_ELEVATED_CONTROLLER_H_
6 #define REMOTING_HOST_WIN_ELEVATED_CONTROLLER_H_ 6 #define REMOTING_HOST_WIN_ELEVATED_CONTROLLER_H_
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlcom.h> 9 #include <atlcom.h>
10 #include <atlctl.h> 10 #include <atlctl.h>
11 11
12 #include "remoting/base/scoped_sc_handle_win.h" 12 #include "remoting/base/scoped_sc_handle_win.h"
13 13
14 // MIDL-generated declarations. 14 // MIDL-generated declarations.
15 #include "remoting/host/elevated_controller.h" 15 #include "remoting/host/elevated_controller.h"
16 16
17 namespace remoting { 17 namespace remoting {
18 18
19 class ATL_NO_VTABLE ElevatedController 19 class ATL_NO_VTABLE __declspec(uuid(DAEMON_CONTROLLER_CLSID)) ElevatedController
20 : public ATL::CComObjectRootEx<ATL::CComSingleThreadModel>, 20 : public ATL::CComObjectRootEx<ATL::CComSingleThreadModel>,
21 public ATL::CComCoClass<ElevatedController, &CLSID_ElevatedController>, 21 public ATL::CComCoClass<ElevatedController,
22 &__uuidof(ElevatedController)>,
22 public ATL::IDispatchImpl<IDaemonControl2, &IID_IDaemonControl2, 23 public ATL::IDispatchImpl<IDaemonControl2, &IID_IDaemonControl2,
23 &LIBID_ChromotingElevatedControllerLib, 1, 1> { 24 &LIBID_ChromotingElevatedControllerLib, 1, 1> {
24 public: 25 public:
25 ElevatedController(); 26 ElevatedController();
26 27
27 HRESULT FinalConstruct(); 28 HRESULT FinalConstruct();
28 void FinalRelease(); 29 void FinalRelease();
29 30
30 // IDaemonControl implementation. 31 // IDaemonControl implementation.
31 STDMETHOD(GetConfig)(BSTR* config_out); 32 STDMETHOD(GetConfig)(BSTR* config_out);
(...skipping 18 matching lines...) Expand all
50 COM_INTERFACE_ENTRY(IDaemonControl2) 51 COM_INTERFACE_ENTRY(IDaemonControl2)
51 COM_INTERFACE_ENTRY(IDispatch) 52 COM_INTERFACE_ENTRY(IDispatch)
52 END_COM_MAP() 53 END_COM_MAP()
53 54
54 // Handle of the owner window (if any) for any UI to be shown. 55 // Handle of the owner window (if any) for any UI to be shown.
55 HWND owner_window_; 56 HWND owner_window_;
56 57
57 DECLARE_PROTECT_FINAL_CONSTRUCT() 58 DECLARE_PROTECT_FINAL_CONSTRUCT()
58 }; 59 };
59 60
60 OBJECT_ENTRY_AUTO(CLSID_ElevatedController, ElevatedController) 61 OBJECT_ENTRY_AUTO(__uuidof(ElevatedController), ElevatedController)
61 62
62 } // namespace remoting 63 } // namespace remoting
63 64
64 #endif // REMOTING_HOST_WIN_ELEVATED_CONTROLLER_H_ 65 #endif // REMOTING_HOST_WIN_ELEVATED_CONTROLLER_H_
OLDNEW
« no previous file with comments | « remoting/host/win/chromoting.wxs ('k') | remoting/host/win/elevated_controller.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698