OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_INSTALLER_UTIL_PRODUCT_H_ | 5 #ifndef CHROME_INSTALLER_UTIL_PRODUCT_H_ |
6 #define CHROME_INSTALLER_UTIL_PRODUCT_H_ | 6 #define CHROME_INSTALLER_UTIL_PRODUCT_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <set> | 10 #include <set> |
9 #include <string> | 11 #include <string> |
10 #include <vector> | 12 #include <vector> |
11 | 13 |
| 14 #include "base/macros.h" |
12 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
13 #include "chrome/installer/util/browser_distribution.h" | 16 #include "chrome/installer/util/browser_distribution.h" |
14 #include "chrome/installer/util/shell_util.h" | 17 #include "chrome/installer/util/shell_util.h" |
15 #include "chrome/installer/util/util_constants.h" | 18 #include "chrome/installer/util/util_constants.h" |
16 | 19 |
17 namespace base { | 20 namespace base { |
18 class CommandLine; | 21 class CommandLine; |
19 } | 22 } |
20 | 23 |
21 namespace installer { | 24 namespace installer { |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 bool LaunchChrome(const base::FilePath& application_path) const; | 84 bool LaunchChrome(const base::FilePath& application_path) const; |
82 | 85 |
83 // Launches Chrome with given command line, waits for Chrome indefinitely | 86 // Launches Chrome with given command line, waits for Chrome indefinitely |
84 // (until it terminates), and gets the process exit code if available. | 87 // (until it terminates), and gets the process exit code if available. |
85 // The function returns true as long as Chrome is successfully launched. | 88 // The function returns true as long as Chrome is successfully launched. |
86 // The status of Chrome at the return of the function is given by exit_code. | 89 // The status of Chrome at the return of the function is given by exit_code. |
87 // NOTE: The 'options' CommandLine object should only contain parameters. | 90 // NOTE: The 'options' CommandLine object should only contain parameters. |
88 // The program part will be ignored. | 91 // The program part will be ignored. |
89 bool LaunchChromeAndWait(const base::FilePath& application_path, | 92 bool LaunchChromeAndWait(const base::FilePath& application_path, |
90 const base::CommandLine& options, | 93 const base::CommandLine& options, |
91 int32* exit_code) const; | 94 int32_t* exit_code) const; |
92 | 95 |
93 // Sets the boolean MSI marker for this installation if set is true or clears | 96 // Sets the boolean MSI marker for this installation if set is true or clears |
94 // it otherwise. The MSI marker is stored in the registry under the | 97 // it otherwise. The MSI marker is stored in the registry under the |
95 // ClientState key. | 98 // ClientState key. |
96 bool SetMsiMarker(bool system_install, bool set) const; | 99 bool SetMsiMarker(bool system_install, bool set) const; |
97 | 100 |
98 // Returns true if setup should create an entry in the Add/Remove list | 101 // Returns true if setup should create an entry in the Add/Remove list |
99 // of installed applications. | 102 // of installed applications. |
100 bool ShouldCreateUninstallEntry() const; | 103 bool ShouldCreateUninstallEntry() const; |
101 | 104 |
(...skipping 30 matching lines...) Expand all Loading... |
132 scoped_ptr<ProductOperations> operations_; | 135 scoped_ptr<ProductOperations> operations_; |
133 std::set<std::wstring> options_; | 136 std::set<std::wstring> options_; |
134 | 137 |
135 private: | 138 private: |
136 DISALLOW_COPY_AND_ASSIGN(Product); | 139 DISALLOW_COPY_AND_ASSIGN(Product); |
137 }; | 140 }; |
138 | 141 |
139 } // namespace installer | 142 } // namespace installer |
140 | 143 |
141 #endif // CHROME_INSTALLER_UTIL_PRODUCT_H_ | 144 #endif // CHROME_INSTALLER_UTIL_PRODUCT_H_ |
OLD | NEW |