Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_ELF_CHROME_ELF_UTIL_H_ | 5 #ifndef CHROME_ELF_CHROME_ELF_UTIL_H_ |
| 6 #define CHROME_ELF_CHROME_ELF_UTIL_H_ | 6 #define CHROME_ELF_CHROME_ELF_UTIL_H_ |
| 7 | 7 |
| 8 #include <Windows.h> | |
|
Will Harris
2016/01/30 01:19:05
chromium convention is not to capitalize even thou
penny
2016/02/01 21:31:52
Done.
| |
| 9 #include <VersionHelpers.h> // windows.h must be before. | |
| 10 | |
| 8 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
| 9 | 12 |
| 10 enum class ProcessType { | 13 enum class ProcessType { |
| 11 UNINITIALIZED, | 14 UNINITIALIZED, |
| 12 NON_BROWSER_PROCESS, | 15 NON_BROWSER_PROCESS, |
| 13 BROWSER_PROCESS, | 16 BROWSER_PROCESS, |
| 14 }; | 17 }; |
| 15 | 18 |
| 16 // Returns true if |exe_path| points to a Chrome installed in an SxS | 19 // Returns true if |exe_path| points to a Chrome installed in an SxS |
| 17 // installation. | 20 // installation. |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 31 bool ReportingIsEnforcedByPolicy(bool* breakpad_enabled); | 34 bool ReportingIsEnforcedByPolicy(bool* breakpad_enabled); |
| 32 | 35 |
| 33 // Initializes |g_process_type| which stores whether or not the current process | 36 // Initializes |g_process_type| which stores whether or not the current process |
| 34 // is the main browser process. | 37 // is the main browser process. |
| 35 void InitializeProcessType(); | 38 void InitializeProcessType(); |
| 36 | 39 |
| 37 // Returns true if invoked in a Chrome process other than the main browser | 40 // Returns true if invoked in a Chrome process other than the main browser |
| 38 // process. False otherwise. | 41 // process. False otherwise. |
| 39 bool IsNonBrowserProcess(); | 42 bool IsNonBrowserProcess(); |
| 40 | 43 |
| 44 // Setup any early browser-process security. | |
| 45 void EarlyBrowserSecurity(); | |
| 46 | |
| 41 // Caches the |ProcessType| of the current process. | 47 // Caches the |ProcessType| of the current process. |
| 42 extern ProcessType g_process_type; | 48 extern ProcessType g_process_type; |
| 43 | 49 |
| 44 #endif // CHROME_ELF_CHROME_ELF_UTIL_H_ | 50 #endif // CHROME_ELF_CHROME_ELF_UTIL_H_ |
| OLD | NEW |