OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 import "oaidl.idl"; |
| 6 import "ocidl.idl"; |
| 7 |
| 8 [ |
| 9 object, |
| 10 uuid(e051a481-6345-4ba1-bdb1-cf7929955268), |
| 11 dual, |
| 12 nonextensible, |
| 13 helpstring("IDaemonControl Interface"), |
| 14 pointer_default(unique) |
| 15 ] |
| 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 " |
| 20 "information.") ] |
| 21 HRESULT GetConfig([out, retval] BSTR* config_out); |
| 22 |
| 23 [ id(2), helpstring("Returns a string representing the version of " |
| 24 "the daemon.") ] |
| 25 HRESULT GetVersion([out, retval] BSTR* version_out); |
| 26 |
| 27 [ id(3), helpstring("Replaces the existing daemon's configuration with " |
| 28 "the specified settings.") ] |
| 29 HRESULT SetConfig([in] BSTR config); |
| 30 |
| 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); |
| 34 |
| 35 [ id(5), helpstring("Starts the daemon.") ] |
| 36 HRESULT StartDaemon(); |
| 37 |
| 38 [ id(6), helpstring("Stops the daemon.") ] |
| 39 HRESULT StopDaemon(); |
| 40 |
| 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); |
| 46 }; |
| 47 |
| 48 [ |
| 49 object, |
| 50 uuid(655bd819-c08c-4b04-80c2-f160739ff6ef), |
| 51 dual, |
| 52 nonextensible, |
| 53 helpstring("IDaemonControl2 Interface"), |
| 54 pointer_default(unique) |
| 55 ] |
| 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); |
| 61 |
| 62 [ id(9), helpstring("Records the user's consent to collect crash dumps " |
| 63 "and gather usage statistics.") ] |
| 64 HRESULT SetUsageStatsConsent([in] BOOL allowed); |
| 65 }; |
| 66 |
| 67 [ |
| 68 uuid(9d9a5a2c-576e-4acd-9c75-aabff74b205d), |
| 69 version(1.1), |
| 70 helpstring("Chromoting Elevated Controller 1.1 Type Library") |
| 71 ] |
| 72 library ChromotingElevatedControllerLib { |
| 73 importlib("stdole2.tlb"); |
| 74 |
| 75 [ |
| 76 uuid(@DAEMON_CONTROLLER_CLSID@), |
| 77 helpstring("ElevatedController Class") |
| 78 ] |
| 79 coclass ElevatedController { |
| 80 [default] interface IDaemonControl2; |
| 81 }; |
| 82 }; |
OLD | NEW |