OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef BASE_WIN_ATL_MODULE_H_ |
| 6 #define BASE_WIN_ATL_MODULE_H_ |
| 7 #pragma once |
| 8 |
| 9 namespace base { |
| 10 namespace win { |
| 11 |
| 12 // Ensure that we have exactly one CComModule registered. It's safe to |
| 13 // call this more than once. ATL functions will crash if there's no |
| 14 // CComModule registered, or if you try to register two of them, so |
| 15 // dynamically registering one if needed makes it much easier for us |
| 16 // to support different build configurations like multi-dll without |
| 17 // worrying about which side of a module boundary each ATL module object |
| 18 // belongs on. Also note that CAppModule is a subclass of CComModule |
| 19 // that registers itself (among other things). |
| 20 void CreateATLModuleIfNeeded(); |
| 21 |
| 22 } // namespace win |
| 23 } // namespace base |
| 24 |
| 25 #endif // BASE_WIN_ATL_MODULE_H_ |
OLD | NEW |