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

Side by Side Diff: google_update/google_update_idl.idl

Issue 11255: * Invoke Google Update to do the exe rename. (Closed)
Patch Set: code review feedback Created 12 years, 1 month 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
OLDNEW
1 // Copyright 2006 Google Inc. All Rights Reserved. 1 // Copyright 2006 Google Inc. All Rights Reserved.
2 // 2 //
3 // Author: Vivek Rao - vivekrao@google.com 3 // Author: Vivek Rao - vivekrao@google.com
4 //
5 // The proxy clsid #defined as PROXY_CLSID_IS in mk_common needs to be changed
6 // anytime any interface below changes, or if a new interface is added.
4 7
5 import "oaidl.idl"; 8 import "oaidl.idl";
6 import "ocidl.idl"; 9 import "ocidl.idl";
7 10
8 [ 11 [
9 object, 12 object,
10 uuid(5B25A8DC-1780-4178-A629-6BE8B8DEFAA2), 13 uuid(5B25A8DC-1780-4178-A629-6BE8B8DEFAA2),
11 oleautomation, 14 oleautomation,
12 nonextensible, 15 nonextensible,
13 pointer_default(unique) 16 pointer_default(unique)
(...skipping 19 matching lines...) Expand all
33 [in] BSTR request_headers, 36 [in] BSTR request_headers,
34 [in] VARIANT response_headers_needed, 37 [in] VARIANT response_headers_needed,
35 [out] VARIANT* response_headers, 38 [out] VARIANT* response_headers,
36 [out] DWORD* response_code, 39 [out] DWORD* response_code,
37 [out] BSTR* cache_filename); 40 [out] BSTR* cache_filename);
38 }; 41 };
39 42
40 [ 43 [
41 object, 44 object,
42 oleautomation, 45 oleautomation,
43 uuid(738B2CC4-F187-48e2-A7A7-C1F0A464C8BE), 46 uuid(128C2DA6-2BC0-44c0-B3F6-4EC22E647964),
44 helpstring("Google Update IBrowserLauncher Interface"), 47 helpstring("Google Update IProcessLauncher Interface"),
45 pointer_default(unique) 48 pointer_default(unique)
46 ] 49 ]
47 interface IBrowserLauncher : IUnknown { 50 interface IProcessLauncher : IUnknown {
51 // @param cmd_line The full command line to execute.
52 HRESULT LaunchCmdLine([in, string] const WCHAR* cmd_line);
53
48 // @param browser_type The browser to start. 54 // @param browser_type The browser to start.
49 // @param url The url to launch the browser with. 55 // @param url The url to launch the browser with.
50 HRESULT LaunchBrowser([in] DWORD browser_type, 56 HRESULT LaunchBrowser([in] DWORD browser_type,
51 [in, string] const WCHAR* url); 57 [in, string] const WCHAR* url);
58
59 // @param app_id Unique id to identify the calling client application
60 // @param event_id Unique id for the command
61 // @param caller_proc_id The process id of the calling process
62 // @param proc_handle The process handle valid in the caller's context
63 HRESULT LaunchCmdElevated([in, string] const WCHAR* app_guid,
64 [in, string] const WCHAR* cmd_id,
65 [in] DWORD caller_proc_id,
66 [out] ULONG_PTR* proc_handle);
52 }; 67 };
53 68
54 typedef enum { 69 typedef enum {
55 COMPLETION_CODE_SUCCESS = 1, 70 COMPLETION_CODE_SUCCESS = 1,
56 COMPLETION_CODE_SUCCESS_CLOSE_UI, 71 COMPLETION_CODE_SUCCESS_CLOSE_UI,
57 COMPLETION_CODE_ERROR, 72 COMPLETION_CODE_ERROR,
58 COMPLETION_CODE_RESTART_ALL_BROWSERS, 73 COMPLETION_CODE_RESTART_ALL_BROWSERS,
59 COMPLETION_CODE_REBOOT, 74 COMPLETION_CODE_REBOOT,
60 COMPLETION_CODE_RESTART_BROWSER, 75 COMPLETION_CODE_RESTART_BROWSER,
61 COMPLETION_CODE_RESTART_ALL_BROWSERS_NOTICE_ONLY, 76 COMPLETION_CODE_RESTART_ALL_BROWSERS_NOTICE_ONLY,
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 // @param observer The eventing interface. 145 // @param observer The eventing interface.
131 HRESULT CheckForUpdate([in, string] const WCHAR* guid, 146 HRESULT CheckForUpdate([in, string] const WCHAR* guid,
132 [in] IJobObserver* observer); 147 [in] IJobObserver* observer);
133 148
134 // @param guid The guid for the app to be updated. 149 // @param guid The guid for the app to be updated.
135 // @param observer The eventing interface. 150 // @param observer The eventing interface.
136 HRESULT Update([in, string] const WCHAR* guid, 151 HRESULT Update([in, string] const WCHAR* guid,
137 [in] IJobObserver* observer); 152 [in] IJobObserver* observer);
138 }; 153 };
139 154
155 // IGoogleUpdateCore is an internal Omaha interface.
156 [
157 object,
158 oleautomation,
159 uuid(909489C2-85A6-4322-AA56-D25278649D67),
160 helpstring("Google Update Core Interface"),
161 pointer_default(unique)
162 ]
163 interface IGoogleUpdateCore : IUnknown
164 {
165 // Runs a command elevated.
166 //
167 // @param app_id Unique id to identify the calling client application
168 // @param event_id Unique id for the command
169 // @param caller_proc_id The process id of the calling process
170 // @param proc_handle The process handle valid in the caller's context
171 HRESULT LaunchCmdElevated([in, string] const WCHAR* app_guid,
172 [in, string] const WCHAR* cmd_id,
173 [in] DWORD caller_proc_id,
174 [out] ULONG_PTR* proc_handle);
175 };
176
140 [ 177 [
141 uuid(7E6CD20B-8688-4960-96D9-B979471577B8), 178 uuid(7E6CD20B-8688-4960-96D9-B979471577B8),
142 version(1.0), 179 version(1.0),
143 helpstring("Google Update Browser Launcher 1.0 Type Library") 180 helpstring("Google Update Type Library")
144 ] 181 ]
145 library GoogleUpdateLib { 182 library GoogleUpdateLib {
146 importlib("stdole2.tlb"); 183 importlib("stdole2.tlb");
147 [ 184 [
148 uuid(D21E601A-3017-4d61-9315-F2880EBD196F), 185 uuid(ABC01078-F197-4b0b-ADBC-CFE684B39C82),
149 helpstring("BrowserLauncherClass Class") 186 helpstring("ProcessLauncherClass Class")
150 ] 187 ]
151 coclass BrowserLauncherClass { 188 coclass ProcessLauncherClass {
152 [default] interface IBrowserLauncher; 189 [default] interface IProcessLauncher;
153 } 190 }
154 191
155 // This coclass declaration exists only for the purpose of forcing 192 // This coclass declaration exists only for the purpose of forcing
156 // ::RegisterTypeLib() to register the interfaces within. This is 193 // ::RegisterTypeLib() to register the interfaces within. This is
157 // required so that we can marshal/unmarshal the interfaces using the TypeLib 194 // required so that we can marshal/unmarshal the interfaces using the TypeLib
158 // marshaler. 195 // marshaler.
159 [ 196 [
160 uuid(9564861C-3469-4c9a-956A-74D5690790E6), 197 uuid(9564861C-3469-4c9a-956A-74D5690790E6),
161 helpstring("InterfaceRegistrar Class") 198 helpstring("InterfaceRegistrar Class")
162 ] 199 ]
(...skipping 11 matching lines...) Expand all
174 [default] interface IGoogleUpdate; 211 [default] interface IGoogleUpdate;
175 } 212 }
176 213
177 [ 214 [
178 uuid(6F8BD55B-E83D-4a47-85BE-81FFA8057A69), 215 uuid(6F8BD55B-E83D-4a47-85BE-81FFA8057A69),
179 helpstring("OnDemand updates for per-machine applications.") 216 helpstring("OnDemand updates for per-machine applications.")
180 ] 217 ]
181 coclass OnDemandMachineAppsClass { 218 coclass OnDemandMachineAppsClass {
182 [default] interface IGoogleUpdate; 219 [default] interface IGoogleUpdate;
183 } 220 }
221
222 [
223 uuid(E225E692-4B47-4777-9BED-4FD7FE257F0E),
224 helpstring("GoogleUpdateCore Class")
225 ]
226 coclass GoogleUpdateCoreClass
227 {
228 [default] interface IGoogleUpdateCore;
229 }
230
184 }; 231 };
OLDNEW
« chrome/browser/first_run.cc ('K') | « chrome/installer/util/google_update_constants.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698