| 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 for EXE module. | 5 // Declaration of ATL module object for EXE module. |
| 6 | 6 |
| 7 #include <atlbase.h> | 7 #include <atlbase.h> |
| 8 #include <atlhost.h> | 8 #include <atlhost.h> |
| 9 | 9 |
| 10 #include "base/at_exit.h" | 10 #include "base/at_exit.h" |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 } | 190 } |
| 191 | 191 |
| 192 HRESULT CeeeBrokerModule::PostMessageLoop() { | 192 HRESULT CeeeBrokerModule::PostMessageLoop() { |
| 193 HRESULT hr = CAtlExeModuleT<CeeeBrokerModule>::PostMessageLoop(); | 193 HRESULT hr = CAtlExeModuleT<CeeeBrokerModule>::PostMessageLoop(); |
| 194 TearDown(); | 194 TearDown(); |
| 195 return hr; | 195 return hr; |
| 196 } | 196 } |
| 197 | 197 |
| 198 void CeeeBrokerModule::TearDown() { | 198 void CeeeBrokerModule::TearDown() { |
| 199 rpc_server_.Stop(); | 199 rpc_server_.Stop(); |
| 200 Singleton<ExecutorsManager, | 200 ExecutorsManager::GetInstance()->Terminate(); |
| 201 ExecutorsManager::SingletonTraits>()->Terminate(); | |
| 202 WindowEventsFunnel::Terminate(); | 201 WindowEventsFunnel::Terminate(); |
| 203 | 202 |
| 204 // Upload data if necessary. | 203 // Upload data if necessary. |
| 205 MetricsService::Stop(); | 204 MetricsService::Stop(); |
| 206 | 205 |
| 207 chrome_postman_.Term(); | 206 chrome_postman_.Term(); |
| 208 } | 207 } |
| 209 | 208 |
| 210 CeeeBrokerModule::~CeeeBrokerModule() { | 209 CeeeBrokerModule::~CeeeBrokerModule() { |
| 211 crash_reporter_.ShutdownCrashReporting(); | 210 crash_reporter_.ShutdownCrashReporting(); |
| 212 logging::CloseLogFile(); | 211 logging::CloseLogFile(); |
| 213 TRACE_EVENT_END("ceee.broker", this, ""); | 212 TRACE_EVENT_END("ceee.broker", this, ""); |
| 214 } | 213 } |
| 215 | 214 |
| 216 HRESULT WINAPI CeeeBrokerModule::UpdateRegistryAppId(BOOL reg) throw() { | 215 HRESULT WINAPI CeeeBrokerModule::UpdateRegistryAppId(BOOL reg) throw() { |
| 217 return com::ModuleRegistrationWithoutAppid(IDR_BROKER_MODULE, reg); | 216 return com::ModuleRegistrationWithoutAppid(IDR_BROKER_MODULE, reg); |
| 218 } | 217 } |
| 219 | 218 |
| 220 namespace ceee_module_util { | 219 namespace ceee_module_util { |
| 221 | 220 |
| 222 LONG LockModule() { | 221 LONG LockModule() { |
| 223 return module.LockModule(); | 222 return module.LockModule(); |
| 224 } | 223 } |
| 225 | 224 |
| 226 LONG UnlockModule() { | 225 LONG UnlockModule() { |
| 227 return module.UnlockModule(); | 226 return module.UnlockModule(); |
| 228 } | 227 } |
| 229 | 228 |
| 230 } // namespace | 229 } // namespace |
| OLD | NEW |