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

Side by Side Diff: google_update/google_update_idl.idl

Issue 10823287: Update the google_update_idl to reflect recent changes to Omaha. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009-2010 Google Inc. 1 // Copyright 2009-2010 Google Inc.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 POST_INSTALL_ACTION_RESTART_BROWSER = 4, 88 POST_INSTALL_ACTION_RESTART_BROWSER = 4,
89 89
90 // Similar to POST_INSTALL_ACTION_RESTART_BROWSER, but ask the user to shut 90 // Similar to POST_INSTALL_ACTION_RESTART_BROWSER, but ask the user to shut
91 // down all browsers. 91 // down all browsers.
92 POST_INSTALL_ACTION_RESTART_ALL_BROWSERS = 5, 92 POST_INSTALL_ACTION_RESTART_ALL_BROWSERS = 5,
93 93
94 // The caller should ask the user to reboot the machine. 94 // The caller should ask the user to reboot the machine.
95 POST_INSTALL_ACTION_REBOOT = 6, 95 POST_INSTALL_ACTION_REBOOT = 6,
96 } PostInstallAction; 96 } PostInstallAction;
97 97
98 enum AppCommandStatus {
99 // The command has never been executed.
100 COMMAND_STATUS_INIT = 1,
101 // The command is running.
102 COMMAND_STATUS_RUNNING = 2,
103 // An error occurred while launching or monitoring the command.
104 COMMAND_STATUS_ERROR = 3,
105 // The command has completed execution.
106 COMMAND_STATUS_COMPLETE = 4,
107 };
108
98 [ 109 [
99 object, 110 object,
100 dual, 111 dual,
101 uuid(6DB17455-4E85-46e7-9D23-E555E4B005AF), 112 uuid(6DB17455-4E85-46e7-9D23-E555E4B005AF),
102 helpstring("IGoogleUpdate3 Interface"), 113 helpstring("IGoogleUpdate3 Interface"),
103 pointer_default(unique) 114 pointer_default(unique)
104 ] 115 ]
105 interface IGoogleUpdate3 : IDispatch { 116 interface IGoogleUpdate3 : IDispatch {
106 // TODO(Omaha): Perhaps this interface exposes helpers such as 117 // TODO(Omaha): Perhaps this interface exposes helpers such as
107 // RestartBrowsers, etc. 118 // RestartBrowsers, etc.
108 119
109 // Returns the count of the AppBundles in this IGoogleUpdate3 interface. 120 // Returns the count of the AppBundles in this IGoogleUpdate3 interface.
110 [id(1), propget] HRESULT Count([out, retval] long* count); 121 [id(1), propget] HRESULT Count([out, retval] long* count);
111 122
112 // Returns an IDispatch of the AppBundle in this IGoogleUpdate3 interface at 123 // Returns an IDispatch of the AppBundle in this IGoogleUpdate3 interface at
113 // the specified 0-based index. This property has the dispid of DISPID_VALUE 124 // the specified 0-based index. This property has the dispid of DISPID_VALUE
114 // to make it the default property of IGoogleUpdate3. 125 // to make it the default property of IGoogleUpdate3.
115 [id(DISPID_VALUE), propget] HRESULT Item([in] long index, 126 [id(DISPID_VALUE), propget] HRESULT Item([in] long index,
116 [out, retval] IDispatch** bundle); 127 [out, retval] IDispatch** bundle);
117 // Returns an IDispatch to a newly created empty AppBundle. 128 // Returns an IDispatch to a newly created empty AppBundle.
118 [id(2)] HRESULT createAppBundle([out, retval] IDispatch** app_bundle); 129 [id(2)] HRESULT createAppBundle([out, retval] IDispatch** app_bundle);
119 } 130 }
120 131
121 [ 132 [
122 object, 133 object,
123 dual, 134 dual,
124 uuid(313cfb25-4888-4fc6-9e19-764d8c5fc8f8), 135 uuid(fe908cdd-22bb-472a-9870-1a0390e42f36),
125 helpstring("IAppBundle Interface"), 136 helpstring("IAppBundle Interface"),
126 pointer_default(unique) 137 pointer_default(unique)
127 ] 138 ]
128 interface IAppBundle : IDispatch { 139 interface IAppBundle : IDispatch {
129 // TODO(omaha3): AppBundle::display_name_ is never used. Should we remove? 140 // TODO(omaha3): AppBundle::display_name_ is never used. Should we remove?
130 [propget] HRESULT displayName([out, retval] BSTR*); 141 [propget] HRESULT displayName([out, retval] BSTR*);
131 [propput] HRESULT displayName([in] BSTR); 142 [propput] HRESULT displayName([in] BSTR);
132 143
133 [propget] HRESULT displayLanguage([out, retval] BSTR*); 144 [propget] HRESULT displayLanguage([out, retval] BSTR*);
134 [propput] HRESULT displayLanguage([in] BSTR); 145 [propput] HRESULT displayLanguage([in] BSTR);
135 146
136 [propget] HRESULT installSource([out, retval] BSTR*); 147 [propget] HRESULT installSource([out, retval] BSTR*);
137 [propput] HRESULT installSource([in] BSTR); 148 [propput] HRESULT installSource([in] BSTR);
138 149
139 [propget] HRESULT originURL([out, retval] BSTR*); 150 [propget] HRESULT originURL([out, retval] BSTR*);
140 [propput] HRESULT originURL([in] BSTR); 151 [propput] HRESULT originURL([in] BSTR);
141 152
142 [propget] HRESULT offlineDirectory([out, retval] BSTR* offline_dir); 153 [propget] HRESULT offlineDirectory([out, retval] BSTR* offline_dir);
143 [propput] HRESULT offlineDirectory([in] BSTR offline_dir); 154 [propput] HRESULT offlineDirectory([in] BSTR offline_dir);
144 155
145 [propget] HRESULT sessionId([out, retval] BSTR* session_id); 156 [propget] HRESULT sessionId([out, retval] BSTR* session_id);
146 [propput] HRESULT sessionId([in] BSTR session_id); 157 [propput] HRESULT sessionId([in] BSTR session_id);
147 158
159 // Controls whether or not event pings should be sent at the end of
160 // an operation.
161 [propget] HRESULT sendPings([out, retval] VARIANT_BOOL* send_pings);
162 [propput] HRESULT sendPings([in] VARIANT_BOOL send_pings);
163
148 // The priority property determines download speed/priority and the number/ 164 // The priority property determines download speed/priority and the number/
149 // frequency of retries. Use values from the InstallPriority enum. 165 // frequency of retries. Use values from the InstallPriority enum.
150 [propget] HRESULT priority([out, retval] long* priority); 166 [propget] HRESULT priority([out, retval] long* priority);
151 [propput] HRESULT priority([in] long priority); 167 [propput] HRESULT priority([in] long priority);
152 168
153 // Returns the count of the Apps in the AppBundle. 169 // Returns the count of the Apps in the AppBundle.
154 [id(1), propget] HRESULT Count([out, retval] long* count); 170 [id(1), propget] HRESULT Count([out, retval] long* count);
155 171
156 // Returns an IDispatch of the App in the AppBundle at the specified 0-based 172 // Returns an IDispatch of the App in the AppBundle at the specified 0-based
157 // index. This property has the dispid of DISPID_VALUE to make it the default 173 // index. This property has the dispid of DISPID_VALUE to make it the default
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 // available from App in all post-update check states. 236 // available from App in all post-update check states.
221 // To do this, we will probably need to know the total expected download 237 // To do this, we will probably need to know the total expected download
222 // size for all packages to be installed - those that are required or in use - 238 // size for all packages to be installed - those that are required or in use -
223 // by the time the update check phase is complete. 239 // by the time the update check phase is complete.
224 [id(15), propget] HRESULT currentState([out, retval] VARIANT* current_state); 240 [id(15), propget] HRESULT currentState([out, retval] VARIANT* current_state);
225 }; 241 };
226 242
227 [ 243 [
228 object, 244 object,
229 dual, 245 dual,
230 uuid(D999CE21-98B3-4894-BACB-A49A1D50848F), 246 uuid(76F7B787-A67C-4c73-82C7-31F5E3AABC5C),
231 helpstring("IApp Interface"), 247 helpstring("IApp Interface"),
232 pointer_default(unique) 248 pointer_default(unique)
233 ] 249 ]
234 interface IApp : IDispatch { 250 interface IApp : IDispatch {
235 // Returns a version IDispatch object. 251 // Returns a version IDispatch object.
236 [id(1), propget] HRESULT currentVersion([out, retval] IDispatch** current); 252 [id(1), propget] HRESULT currentVersion([out, retval] IDispatch** current);
237 [id(2), propget] HRESULT nextVersion([out, retval] IDispatch** next); 253 [id(2), propget] HRESULT nextVersion([out, retval] IDispatch** next);
238 254
239 [propget] HRESULT appId([out, retval] BSTR*); 255 [propget] HRESULT appId([out, retval] BSTR*);
240 256
(...skipping 17 matching lines...) Expand all
258 274
259 [propget] HRESULT clientId([out, retval] BSTR*); 275 [propget] HRESULT clientId([out, retval] BSTR*);
260 [propput] HRESULT clientId([in] BSTR); 276 [propput] HRESULT clientId([in] BSTR);
261 277
262 [propget] HRESULT labels([out, retval] BSTR*); 278 [propget] HRESULT labels([out, retval] BSTR*);
263 [propput] HRESULT labels([in] BSTR); 279 [propput] HRESULT labels([in] BSTR);
264 280
265 [propget] HRESULT referralId([out, retval] BSTR*); 281 [propget] HRESULT referralId([out, retval] BSTR*);
266 [propput] HRESULT referralId([in] BSTR); 282 [propput] HRESULT referralId([in] BSTR);
267 283
284 // Returns an IDispatch to a command defined by this installed app with the
285 // specified ID, or NULL if this app is not installed or the command ID is not
286 // recognized.
287 [propget] HRESULT command([in] BSTR command_id,
288 [out, retval] IDispatch** command);
289
268 // Use values from the BrowserType enum. 290 // Use values from the BrowserType enum.
269 [propget] HRESULT browserType([out, retval] UINT*); 291 [propget] HRESULT browserType([out, retval] UINT*);
270 [propput] HRESULT browserType([in] UINT); 292 [propput] HRESULT browserType([in] UINT);
271 293
272 [propget] HRESULT clientInstallData([out, retval] BSTR*); 294 [propget] HRESULT clientInstallData([out, retval] BSTR*);
273 [propput] HRESULT clientInstallData([in] BSTR); 295 [propput] HRESULT clientInstallData([in] BSTR);
274 296
275 [propget] HRESULT serverInstallDataIndex([out, retval] BSTR*); 297 [propget] HRESULT serverInstallDataIndex([out, retval] BSTR*);
276 [propput] HRESULT serverInstallDataIndex([in] BSTR); 298 [propput] HRESULT serverInstallDataIndex([in] BSTR);
277 299
278 // Set as soon as possible. Error pings are disabled until set to true. 300 // Set as soon as possible. Error pings are disabled until set to true.
279 [propget] HRESULT isEulaAccepted([out, retval] VARIANT_BOOL*); 301 [propget] HRESULT isEulaAccepted([out, retval] VARIANT_BOOL*);
280 [propput] HRESULT isEulaAccepted([in] VARIANT_BOOL); 302 [propput] HRESULT isEulaAccepted([in] VARIANT_BOOL);
281 303
282 [propget] HRESULT usageStatsEnable([out, retval] UINT*); 304 [propget] HRESULT usageStatsEnable([out, retval] UINT*);
283 [propput] HRESULT usageStatsEnable([in] UINT); 305 [propput] HRESULT usageStatsEnable([in] UINT);
284 306
285 [propget] HRESULT installTimeDiffSec([out, retval] UINT*); 307 [propget] HRESULT installTimeDiffSec([out, retval] UINT*);
286 308
287 // Returns an ICurrentState interface. The object underlying the interface has 309 // Returns an ICurrentState interface. The object underlying the interface has
288 // static data that does not get updated as the server state changes. To get 310 // static data that does not get updated as the server state changes. To get
289 // the most "current" state, the currentState property needs to be queried 311 // the most "current" state, the currentState property needs to be queried
290 // again. 312 // again.
291 [propget] HRESULT currentState([out, retval] IDispatch**); 313 [propget] HRESULT currentState([out, retval] IDispatch**);
292 }; 314 };
293 315
294 [ 316 [
295 object, 317 object,
296 dual, 318 dual,
319 uuid(4DE778FE-F195-4ee3-9DAB-FE446C239221),
320 helpstring("IAppCommand Interface"),
321 pointer_default(unique)
322 ]
323 interface IAppCommand : IDispatch {
324 [propget] HRESULT isWebAccessible([out, retval] VARIANT_BOOL*);
325 // Use values from the AppCommandStatus enum.
326 [propget] HRESULT status([out, retval] UINT*);
327 [propget] HRESULT exitCode([out, retval] DWORD*);
328 HRESULT execute([in, optional] VARIANT arg1,
329 [in, optional] VARIANT arg2,
330 [in, optional] VARIANT arg3,
331 [in, optional] VARIANT arg4,
332 [in, optional] VARIANT arg5,
333 [in, optional] VARIANT arg6,
334 [in, optional] VARIANT arg7,
335 [in, optional] VARIANT arg8,
336 [in, optional] VARIANT arg9);
337 };
338
339 [
340 object,
341 dual,
297 uuid(BCDCB538-01C0-46d1-A6A7-52F4D021C272), 342 uuid(BCDCB538-01C0-46d1-A6A7-52F4D021C272),
298 helpstring("IAppVersion Interface"), 343 helpstring("IAppVersion Interface"),
299 pointer_default(unique) 344 pointer_default(unique)
300 ] 345 ]
301 interface IAppVersion : IDispatch { 346 interface IAppVersion : IDispatch {
302 [propget] HRESULT version([out, retval] BSTR*); 347 [propget] HRESULT version([out, retval] BSTR*);
303 348
304 // [propget] HRESULT installManifest([out, retval] BSTR*); 349 // [propget] HRESULT installManifest([out, retval] BSTR*);
305 350
306 // Returns the count of the Packages in the AppVersion. 351 // Returns the count of the Packages in the AppVersion.
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 HRESULT cancel(); 559 HRESULT cancel();
515 560
516 HRESULT downloadPackage([in] BSTR app_id, [in] BSTR package_name); 561 HRESULT downloadPackage([in] BSTR app_id, [in] BSTR package_name);
517 562
518 [propget] HRESULT currentState([out, retval] VARIANT* current_state); 563 [propget] HRESULT currentState([out, retval] VARIANT* current_state);
519 }; 564 };
520 565
521 [ 566 [
522 object, 567 object,
523 dual, 568 dual,
524 uuid(C6398F88-69CE-44ac-B6A7-1D3E2AA46679), 569 uuid(18D0F672-18B4-48e6-AD36-6E6BF01DBBC4),
525 helpstring("IAppWeb Interface"), 570 helpstring("IAppWeb Interface"),
526 pointer_default(unique), 571 pointer_default(unique),
527 ] 572 ]
528 interface IAppWeb : IDispatch { 573 interface IAppWeb : IDispatch {
529 [propget] HRESULT appId([out, retval] BSTR*); 574 [propget] HRESULT appId([out, retval] BSTR*);
530 575
531 // Returns an IAppVersionWeb IDispatch object. 576 // Returns an IAppVersionWeb IDispatch object.
532 [propget] HRESULT currentVersionWeb([out, retval] IDispatch** current); 577 [propget] HRESULT currentVersionWeb([out, retval] IDispatch** current);
533 [propget] HRESULT nextVersionWeb([out, retval] IDispatch** next); 578 [propget] HRESULT nextVersionWeb([out, retval] IDispatch** next);
534 579
580 // Returns an IAppCommandWeb IDispatch object, or NULL.
581 [propget] HRESULT command([in] BSTR command_id,
582 [out, retval] IDispatch** command);
583
535 HRESULT cancel(); 584 HRESULT cancel();
536 [propget] HRESULT currentState([out, retval] IDispatch** current_state); 585 [propget] HRESULT currentState([out, retval] IDispatch** current_state);
537 HRESULT launch(); 586 HRESULT launch();
538 HRESULT uninstall(); 587 HRESULT uninstall();
539 }; 588 };
540 589
541 [ 590 [
542 object, 591 object,
543 dual, 592 dual,
593 uuid(68D6C2BD-712E-4c96-93E8-49CB8A9AAEED),
594 helpstring("IAppCommandWeb Interface"),
595 pointer_default(unique)
596 ]
597 interface IAppCommandWeb : IDispatch {
598 // Use values from the AppCommandStatus enum.
599 [propget] HRESULT status([out, retval] UINT*);
600 [propget] HRESULT exitCode([out, retval] DWORD*);
601 HRESULT execute([in, optional] VARIANT arg1,
602 [in, optional] VARIANT arg2,
603 [in, optional] VARIANT arg3,
604 [in, optional] VARIANT arg4,
605 [in, optional] VARIANT arg5,
606 [in, optional] VARIANT arg6,
607 [in, optional] VARIANT arg7,
608 [in, optional] VARIANT arg8,
609 [in, optional] VARIANT arg9);
610 };
611
612 [
613 object,
614 dual,
544 uuid(0CD01D1E-4A1C-489d-93B9-9B6672877C57), 615 uuid(0CD01D1E-4A1C-489d-93B9-9B6672877C57),
545 helpstring("IAppVersionWeb Interface"), 616 helpstring("IAppVersionWeb Interface"),
546 pointer_default(unique) 617 pointer_default(unique)
547 ] 618 ]
548 interface IAppVersionWeb : IDispatch { 619 interface IAppVersionWeb : IDispatch {
549 [propget] HRESULT version([out, retval] BSTR*); 620 [propget] HRESULT version([out, retval] BSTR*);
550 621
551 // Returns the count of the Packages in the AppVersion. 622 // Returns the count of the Packages in the AppVersion.
552 [propget] HRESULT packageCount([out, retval] long* count); 623 [propget] HRESULT packageCount([out, retval] long* count);
553 624
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 interface IJobObserver : IUnknown { 781 interface IJobObserver : IUnknown {
711 HRESULT OnShow(); 782 HRESULT OnShow();
712 HRESULT OnCheckingForUpdate(); 783 HRESULT OnCheckingForUpdate();
713 HRESULT OnUpdateAvailable([in, string] const WCHAR* version_string); 784 HRESULT OnUpdateAvailable([in, string] const WCHAR* version_string);
714 HRESULT OnWaitingToDownload(); 785 HRESULT OnWaitingToDownload();
715 HRESULT OnDownloading([in] int time_remaining_ms, [in] int pos); 786 HRESULT OnDownloading([in] int time_remaining_ms, [in] int pos);
716 HRESULT OnWaitingToInstall(); 787 HRESULT OnWaitingToInstall();
717 HRESULT OnInstalling(); 788 HRESULT OnInstalling();
718 HRESULT OnPause(); 789 HRESULT OnPause();
719 HRESULT OnComplete([in] LegacyCompletionCodes code, 790 HRESULT OnComplete([in] LegacyCompletionCodes code,
720 [in, string] const WCHAR* reserved); 791 [in, string] const WCHAR* completion_text);
721 HRESULT SetEventSink([in] IProgressWndEvents* ui_sink); 792 HRESULT SetEventSink([in] IProgressWndEvents* ui_sink);
722 }; 793 };
723 794
724 [ 795 [
725 object, 796 object,
726 oleautomation, 797 oleautomation,
727 uuid(31AC3F11-E5EA-4a85-8A3D-8E095A39C27B), 798 uuid(31AC3F11-E5EA-4a85-8A3D-8E095A39C27B),
728 helpstring("IGoogleUpdate Interface"), 799 helpstring("IGoogleUpdate Interface"),
729 pointer_default(unique) 800 pointer_default(unique)
730 ] 801 ]
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
771 ] 842 ]
772 library GoogleUpdate3Lib { 843 library GoogleUpdate3Lib {
773 importlib("stdole2.tlb"); 844 importlib("stdole2.tlb");
774 845
775 // These Interfaces are forward declared to ensure that they are described in 846 // These Interfaces are forward declared to ensure that they are described in
776 // the generated TLB file. This is required for ATL to correctly implement the 847 // the generated TLB file. This is required for ATL to correctly implement the
777 // corresponding IDispatch interfaces. 848 // corresponding IDispatch interfaces.
778 interface IGoogleUpdate3; 849 interface IGoogleUpdate3;
779 interface IAppBundle; 850 interface IAppBundle;
780 interface IApp; 851 interface IApp;
852 interface IAppCommand;
781 interface IAppVersion; 853 interface IAppVersion;
782 interface IPackage; 854 interface IPackage;
783 interface ICurrentState; 855 interface ICurrentState;
784 856
785 interface IGoogleUpdate3Web; 857 interface IGoogleUpdate3Web;
786 interface IAppBundleWeb; 858 interface IAppBundleWeb;
787 interface IAppWeb; 859 interface IAppWeb;
860 interface IAppCommandWeb;
788 interface IAppVersionWeb; 861 interface IAppVersionWeb;
789 interface ICoCreateAsyncStatus; 862 interface ICoCreateAsyncStatus;
790 863
791 [ 864 [
792 uuid(022105BD-948A-40c9-AB42-A3300DDF097F), 865 uuid(022105BD-948A-40c9-AB42-A3300DDF097F),
793 helpstring("GoogleUpdate3 Class for per-user applications") 866 helpstring("GoogleUpdate3 Class for per-user applications")
794 ] 867 ]
795 coclass GoogleUpdate3UserClass { 868 coclass GoogleUpdate3UserClass {
796 [default] interface IDispatch; 869 [default] interface IDispatch;
797 } 870 }
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 uuid(9B2340A0-4068-43d6-B404-32E27217859D), 1020 uuid(9B2340A0-4068-43d6-B404-32E27217859D),
948 helpstring("GoogleUpdateCore Machine Class") 1021 helpstring("GoogleUpdateCore Machine Class")
949 ] 1022 ]
950 coclass GoogleUpdateCoreMachineClass 1023 coclass GoogleUpdateCoreMachineClass
951 { 1024 {
952 [default] interface IUnknown; 1025 [default] interface IUnknown;
953 } 1026 }
954 1027
955 // END Legacy google_update_idl coclasses. 1028 // END Legacy google_update_idl coclasses.
956 }; 1029 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698