diff options
author | erikwright@chromium.org <erikwright@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-13 17:32:27 +0000 |
---|---|---|
committer | erikwright@chromium.org <erikwright@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-13 17:32:27 +0000 |
commit | d1dc64e6098510be45b2dd1ffe5bf8512107c6a8 (patch) | |
tree | cea19909aacb7f23b48e99f2c3f70c44f3ee48ec /google_update | |
parent | 7d64eb887cc0f3eeb5366e94f08f332a15c1c33d (diff) | |
download | chromium_src-d1dc64e6098510be45b2dd1ffe5bf8512107c6a8.zip chromium_src-d1dc64e6098510be45b2dd1ffe5bf8512107c6a8.tar.gz chromium_src-d1dc64e6098510be45b2dd1ffe5bf8512107c6a8.tar.bz2 |
Update the google_update_idl to reflect recent changes to Omaha.
R=robertshield
BUG=138313
Review URL: https://chromiumcodereview.appspot.com/10823287
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151299 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'google_update')
-rw-r--r-- | google_update/google_update_idl.idl | 81 |
1 files changed, 77 insertions, 4 deletions
diff --git a/google_update/google_update_idl.idl b/google_update/google_update_idl.idl index bcaadfe..cf40946 100644 --- a/google_update/google_update_idl.idl +++ b/google_update/google_update_idl.idl @@ -95,6 +95,17 @@ typedef enum PostInstallAction { POST_INSTALL_ACTION_REBOOT = 6, } PostInstallAction; +enum AppCommandStatus { + // The command has never been executed. + COMMAND_STATUS_INIT = 1, + // The command is running. + COMMAND_STATUS_RUNNING = 2, + // An error occurred while launching or monitoring the command. + COMMAND_STATUS_ERROR = 3, + // The command has completed execution. + COMMAND_STATUS_COMPLETE = 4, +}; + [ object, dual, @@ -121,7 +132,7 @@ interface IGoogleUpdate3 : IDispatch { [ object, dual, - uuid(313cfb25-4888-4fc6-9e19-764d8c5fc8f8), + uuid(fe908cdd-22bb-472a-9870-1a0390e42f36), helpstring("IAppBundle Interface"), pointer_default(unique) ] @@ -145,6 +156,11 @@ interface IAppBundle : IDispatch { [propget] HRESULT sessionId([out, retval] BSTR* session_id); [propput] HRESULT sessionId([in] BSTR session_id); + // Controls whether or not event pings should be sent at the end of + // an operation. + [propget] HRESULT sendPings([out, retval] VARIANT_BOOL* send_pings); + [propput] HRESULT sendPings([in] VARIANT_BOOL send_pings); + // The priority property determines download speed/priority and the number/ // frequency of retries. Use values from the InstallPriority enum. [propget] HRESULT priority([out, retval] long* priority); @@ -227,7 +243,7 @@ interface IAppBundle : IDispatch { [ object, dual, - uuid(D999CE21-98B3-4894-BACB-A49A1D50848F), + uuid(76F7B787-A67C-4c73-82C7-31F5E3AABC5C), helpstring("IApp Interface"), pointer_default(unique) ] @@ -265,6 +281,12 @@ interface IApp : IDispatch { [propget] HRESULT referralId([out, retval] BSTR*); [propput] HRESULT referralId([in] BSTR); + // Returns an IDispatch to a command defined by this installed app with the + // specified ID, or NULL if this app is not installed or the command ID is not + // recognized. + [propget] HRESULT command([in] BSTR command_id, + [out, retval] IDispatch** command); + // Use values from the BrowserType enum. [propget] HRESULT browserType([out, retval] UINT*); [propput] HRESULT browserType([in] UINT); @@ -294,6 +316,29 @@ interface IApp : IDispatch { [ object, dual, + uuid(4DE778FE-F195-4ee3-9DAB-FE446C239221), + helpstring("IAppCommand Interface"), + pointer_default(unique) +] +interface IAppCommand : IDispatch { + [propget] HRESULT isWebAccessible([out, retval] VARIANT_BOOL*); + // Use values from the AppCommandStatus enum. + [propget] HRESULT status([out, retval] UINT*); + [propget] HRESULT exitCode([out, retval] DWORD*); + HRESULT execute([in, optional] VARIANT arg1, + [in, optional] VARIANT arg2, + [in, optional] VARIANT arg3, + [in, optional] VARIANT arg4, + [in, optional] VARIANT arg5, + [in, optional] VARIANT arg6, + [in, optional] VARIANT arg7, + [in, optional] VARIANT arg8, + [in, optional] VARIANT arg9); +}; + +[ + object, + dual, uuid(BCDCB538-01C0-46d1-A6A7-52F4D021C272), helpstring("IAppVersion Interface"), pointer_default(unique) @@ -521,7 +566,7 @@ interface IAppBundleWeb : IDispatch { [ object, dual, - uuid(C6398F88-69CE-44ac-B6A7-1D3E2AA46679), + uuid(18D0F672-18B4-48e6-AD36-6E6BF01DBBC4), helpstring("IAppWeb Interface"), pointer_default(unique), ] @@ -532,6 +577,10 @@ interface IAppWeb : IDispatch { [propget] HRESULT currentVersionWeb([out, retval] IDispatch** current); [propget] HRESULT nextVersionWeb([out, retval] IDispatch** next); + // Returns an IAppCommandWeb IDispatch object, or NULL. + [propget] HRESULT command([in] BSTR command_id, + [out, retval] IDispatch** command); + HRESULT cancel(); [propget] HRESULT currentState([out, retval] IDispatch** current_state); HRESULT launch(); @@ -541,6 +590,28 @@ interface IAppWeb : IDispatch { [ object, dual, + uuid(68D6C2BD-712E-4c96-93E8-49CB8A9AAEED), + helpstring("IAppCommandWeb Interface"), + pointer_default(unique) +] +interface IAppCommandWeb : IDispatch { + // Use values from the AppCommandStatus enum. + [propget] HRESULT status([out, retval] UINT*); + [propget] HRESULT exitCode([out, retval] DWORD*); + HRESULT execute([in, optional] VARIANT arg1, + [in, optional] VARIANT arg2, + [in, optional] VARIANT arg3, + [in, optional] VARIANT arg4, + [in, optional] VARIANT arg5, + [in, optional] VARIANT arg6, + [in, optional] VARIANT arg7, + [in, optional] VARIANT arg8, + [in, optional] VARIANT arg9); +}; + +[ + object, + dual, uuid(0CD01D1E-4A1C-489d-93B9-9B6672877C57), helpstring("IAppVersionWeb Interface"), pointer_default(unique) @@ -717,7 +788,7 @@ interface IJobObserver : IUnknown { HRESULT OnInstalling(); HRESULT OnPause(); HRESULT OnComplete([in] LegacyCompletionCodes code, - [in, string] const WCHAR* reserved); + [in, string] const WCHAR* completion_text); HRESULT SetEventSink([in] IProgressWndEvents* ui_sink); }; @@ -778,6 +849,7 @@ library GoogleUpdate3Lib { interface IGoogleUpdate3; interface IAppBundle; interface IApp; + interface IAppCommand; interface IAppVersion; interface IPackage; interface ICurrentState; @@ -785,6 +857,7 @@ library GoogleUpdate3Lib { interface IGoogleUpdate3Web; interface IAppBundleWeb; interface IAppWeb; + interface IAppCommandWeb; interface IAppVersionWeb; interface ICoCreateAsyncStatus; |