OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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. |
robertshield
2016/04/20 17:32:50
Can you add a comment here as well saying why thes
ananta
2016/04/20 20:15:36
Done.
| |
4 | 4 |
5 #ifndef CHROME_ELF_CHROME_ELF_UTIL_H_ | 5 #ifndef CHROME_INSTALL_STATIC_INSTALL_UTIL_H_ |
6 #define CHROME_ELF_CHROME_ELF_UTIL_H_ | 6 #define CHROME_INSTALL_STATIC_INSTALL_UTIL_H_ |
7 | 7 |
8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
9 | 9 |
10 enum class ProcessType { | 10 enum class ProcessType { |
11 UNINITIALIZED, | 11 UNINITIALIZED, |
12 NON_BROWSER_PROCESS, | 12 NON_BROWSER_PROCESS, |
13 BROWSER_PROCESS, | 13 BROWSER_PROCESS, |
14 }; | 14 }; |
15 | 15 |
16 // Returns true if |exe_path| points to a Chrome installed in an SxS | 16 // Returns true if |exe_path| points to a Chrome installed in an SxS |
(...skipping 17 matching lines...) Expand all Loading... | |
34 // is the main browser process. | 34 // is the main browser process. |
35 void InitializeProcessType(); | 35 void InitializeProcessType(); |
36 | 36 |
37 // Returns true if invoked in a Chrome process other than the main browser | 37 // Returns true if invoked in a Chrome process other than the main browser |
38 // process. False otherwise. | 38 // process. False otherwise. |
39 bool IsNonBrowserProcess(); | 39 bool IsNonBrowserProcess(); |
40 | 40 |
41 // Caches the |ProcessType| of the current process. | 41 // Caches the |ProcessType| of the current process. |
42 extern ProcessType g_process_type; | 42 extern ProcessType g_process_type; |
43 | 43 |
44 #endif // CHROME_ELF_CHROME_ELF_UTIL_H_ | 44 #endif // CHROME_INSTALL_STATIC_INSTALL_UTIL_H_ |
OLD | NEW |