| OLD | NEW |
| (Empty) |
| 1 // Copyright 2011 Google Inc. | |
| 2 // | |
| 3 // Licensed under the Apache License, Version 2.0 (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 | |
| 6 // | |
| 7 // http://www.apache.org/licenses/LICENSE-2.0 | |
| 8 // | |
| 9 // Unless required by applicable law or agreed to in writing, software | |
| 10 // distributed under the License is distributed on an "AS IS" BASIS, | |
| 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 12 // See the License for the specific language governing permissions and | |
| 13 // limitations under the License. | |
| 14 // ======================================================================== | |
| 15 | |
| 16 #ifndef OMAHA_CLIENT_BUNDLE_CREATOR_H_ | |
| 17 #define OMAHA_CLIENT_BUNDLE_CREATOR_H_ | |
| 18 | |
| 19 #include <windows.h> | |
| 20 #include <atlsafe.h> | |
| 21 #include "omaha/base/debug.h" | |
| 22 #include "omaha/base/error.h" | |
| 23 #include "goopdate/omaha3_idl.h" | |
| 24 | |
| 25 namespace omaha { | |
| 26 | |
| 27 struct CommandLineExtraArgs; | |
| 28 | |
| 29 namespace bundle_creator { | |
| 30 | |
| 31 // Creates app bundle interface, initializes it with default properties and | |
| 32 // the given install source. | |
| 33 HRESULT Create(bool is_machine, | |
| 34 const CString& display_language, | |
| 35 const CString& install_source, | |
| 36 const CString& session_id, | |
| 37 bool is_interactive, | |
| 38 IAppBundle** app_bundle); | |
| 39 | |
| 40 // Creates app bundle interface that contains the apps specified in extra_args. | |
| 41 // The apps properties are intialized based on the extra_args and other | |
| 42 // arguments. | |
| 43 HRESULT CreateFromCommandLine(bool is_machine, | |
| 44 bool is_eula_accepted, | |
| 45 bool is_offline, | |
| 46 const CString& offline_directory, | |
| 47 const CommandLineExtraArgs& extra_args, | |
| 48 const CString& install_source, | |
| 49 const CString& session_id, | |
| 50 bool is_interactive, | |
| 51 IAppBundle** app_bundle); | |
| 52 | |
| 53 // Creates app bundle interface that contains the given app (app_id). | |
| 54 HRESULT CreateForOnDemand(bool is_machine, | |
| 55 const CString& app_id, | |
| 56 const CString& install_source, | |
| 57 const CString& session_id, | |
| 58 HANDLE impersonation_token, | |
| 59 HANDLE primary_token, | |
| 60 IAppBundle** app_bundle); | |
| 61 | |
| 62 } // namespace bundle_creator | |
| 63 | |
| 64 } // namespace omaha | |
| 65 | |
| 66 #endif // OMAHA_CLIENT_BUNDLE_CREATOR_H_ | |
| OLD | NEW |