| 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 // Declaration of ATL module object and DLL exports. | 5 // Declaration of ATL module object and DLL exports. |
| 6 | 6 |
| 7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
| 8 #include "base/atomic_ref_count.h" | 8 #include "base/atomic_ref_count.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 | 262 |
| 263 // Returns a class factory to create an object of the requested type | 263 // Returns a class factory to create an object of the requested type |
| 264 STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv) { | 264 STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv) { |
| 265 return module.DllGetClassObject(rclsid, riid, ppv); | 265 return module.DllGetClassObject(rclsid, riid, ppv); |
| 266 } | 266 } |
| 267 | 267 |
| 268 // DllRegisterServer - Adds entries to the system registry | 268 // DllRegisterServer - Adds entries to the system registry |
| 269 // | 269 // |
| 270 // This is not the actual entrypoint; see the define right below this | 270 // This is not the actual entrypoint; see the define right below this |
| 271 // function, which keeps us safe from ever forgetting to check for | 271 // function, which keeps us safe from ever forgetting to check for |
| 272 // the --enable-ceee flag. | 272 // the --ceee flag. |
| 273 STDAPI DllRegisterServerImpl(void) { | 273 STDAPI DllRegisterServerImpl(void) { |
| 274 // Registers objects. | 274 // Registers objects. |
| 275 HRESULT hr = module.DllRegisterServer(); | 275 HRESULT hr = module.DllRegisterServer(); |
| 276 return hr; | 276 return hr; |
| 277 } | 277 } |
| 278 | 278 |
| 279 CEEE_DEFINE_DLL_REGISTER_SERVER() | 279 CEEE_DEFINE_DLL_REGISTER_SERVER() |
| 280 | 280 |
| 281 // DllUnregisterServer - Removes entries from the system registry | 281 // DllUnregisterServer - Removes entries from the system registry |
| 282 STDAPI DllUnregisterServer(void) { | 282 STDAPI DllUnregisterServer(void) { |
| 283 // We always allow unregistration, even if no --enable-ceee install flag. | 283 // We always allow unregistration, even if no --ceee install flag. |
| 284 HRESULT hr = module.DllUnregisterServer(); | 284 HRESULT hr = module.DllUnregisterServer(); |
| 285 return hr; | 285 return hr; |
| 286 } | 286 } |
| OLD | NEW |