OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // Utilities related to installation of the CEEE. | 5 // Utilities related to installation of the CEEE. |
6 | 6 |
7 #ifndef CEEE_COMMON_INSTALL_UTILS_H_ | 7 #ifndef CEEE_COMMON_INSTALL_UTILS_H_ |
8 #define CEEE_COMMON_INSTALL_UTILS_H_ | 8 #define CEEE_COMMON_INSTALL_UTILS_H_ |
9 | 9 |
10 // This is the only way we define DllRegisterServer in CEEE. | 10 // This is the only way we define DllRegisterServer in CEEE. |
(...skipping 12 matching lines...) Expand all Loading... |
23 STDAPI DllRegisterServer(void) { \ | 23 STDAPI DllRegisterServer(void) { \ |
24 if (!ceee_install_utils::ShouldRegisterCeee()) { \ | 24 if (!ceee_install_utils::ShouldRegisterCeee()) { \ |
25 return S_OK; \ | 25 return S_OK; \ |
26 } else { \ | 26 } else { \ |
27 return DllRegisterServerImpl(); \ | 27 return DllRegisterServerImpl(); \ |
28 } \ | 28 } \ |
29 } | 29 } |
30 | 30 |
31 namespace ceee_install_utils { | 31 namespace ceee_install_utils { |
32 | 32 |
33 // Returns true if the --enable-ceee flag was passed to the process | 33 // Returns true if the --ceee flag was passed to the process |
34 // that loaded this DLL, or if the process loading the DLL is | 34 // that loaded this DLL, or if the process loading the DLL is |
35 // regsvr32 (i.e. it's a developer that explicitly wants to register). | 35 // regsvr32 (i.e. it's a developer that explicitly wants to register). |
36 bool ShouldRegisterCeee(); | 36 bool ShouldRegisterCeee(); |
37 | 37 |
38 // Returns true if the --enable-ff-ceee flag was passed to the process | 38 // Returns true if the --enable-ff-ceee flag was passed to the process |
39 // that loaded this DLL in addition to the --enable-ceee flag, or if | 39 // that loaded this DLL in addition to the --ceee flag, or if |
40 // the process loading the DLL is regsvr32 (i.e. it's a developer that | 40 // the process loading the DLL is regsvr32 (i.e. it's a developer that |
41 // explicitly wants to register). | 41 // explicitly wants to register). |
42 bool ShouldRegisterFfCeee(); | 42 bool ShouldRegisterFfCeee(); |
43 | 43 |
44 } // namespace ceee_install_utils | 44 } // namespace ceee_install_utils |
45 | 45 |
46 #endif // CEEE_COMMON_INSTALL_UTILS_H_ | 46 #endif // CEEE_COMMON_INSTALL_UTILS_H_ |
OLD | NEW |