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
3 // found in the LICENSE file.
10 uuid(e051a481-6345-4ba1-bdb1-cf7929955268),
13 helpstring("IDaemonControl Interface"),
14 pointer_default(unique)
16 interface IDaemonControl: IDispatch {
17 [ id(1), helpstring("Returns a filtered copy of the daemon's configuration. "
18 "Only 'host_id' and 'xmpp_login' values are returned, "
19 "because any other values may contain security-sensitive "
21 HRESULT GetConfig([out, retval] BSTR* config_out);
23 [ id(2), helpstring("Returns a string representing the version of "
25 HRESULT GetVersion([out, retval] BSTR* version_out);
27 [ id(3), helpstring("Replaces the existing daemon's configuration with "
28 "the specified settings.") ]
29 HRESULT SetConfig([in] BSTR config);
31 [ id(4), helpstring("Sets the owner window for any windows shown by "
32 "the daemon controller.") ]
33 HRESULT SetOwnerWindow([in] LONG_PTR owner_window);
35 [ id(5), helpstring("Starts the daemon.") ]
36 HRESULT StartDaemon();
38 [ id(6), helpstring("Stops the daemon.") ]
41 [ id(7), helpstring("Modifies the existing daemon's configuration by "
42 "merging it with the specified settings. The 'host_id' "
43 "and 'xmpp_login' values cannot be modified, and must "
44 "not be passed to this method.") ]
45 HRESULT UpdateConfig([in] BSTR config);
50 uuid(655bd819-c08c-4b04-80c2-f160739ff6ef),
53 helpstring("IDaemonControl2 Interface"),
54 pointer_default(unique)
56 interface IDaemonControl2: IDaemonControl {
57 [ id(8), helpstring("Retrieves the user's consent to collect crash dumps "
58 "and gather usage statistics.") ]
59 HRESULT GetUsageStatsConsent([out] BOOL* allowed,
60 [out] BOOL* set_by_policy);
62 [ id(9), helpstring("Records the user's consent to collect crash dumps "
63 "and gather usage statistics.") ]
64 HRESULT SetUsageStatsConsent([in] BOOL allowed);
68 uuid(9d9a5a2c-576e-4acd-9c75-aabff74b205d),
70 helpstring("Chromoting Elevated Controller 1.1 Type Library")
72 library ChromotingElevatedControllerLib {
73 importlib("stdole2.tlb");
76 uuid(@DAEMON_CONTROLLER_CLSID@),
77 helpstring("ElevatedController Class")
79 coclass ElevatedController {
80 [default] interface IDaemonControl2;