| 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 // Broker RPC Server implementation. | 5 // Broker RPC Server implementation. |
| 6 | 6 |
| 7 #include "ceee/ie/broker/broker_rpc_server.h" | 7 #include "ceee/ie/broker/broker_rpc_server.h" |
| 8 | 8 |
| 9 #include "base/atomic_sequence_num.h" | 9 #include "base/atomic_sequence_num.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 } | 115 } |
| 116 | 116 |
| 117 // Called when client process terminated without releasing context handle. | 117 // Called when client process terminated without releasing context handle. |
| 118 void __RPC_USER BrokerContextHandle_rundown(BrokerContextHandle context) { | 118 void __RPC_USER BrokerContextHandle_rundown(BrokerContextHandle context) { |
| 119 DCHECK(context != NULL); | 119 DCHECK(context != NULL); |
| 120 ceee_module_util::UnlockModule(); | 120 ceee_module_util::UnlockModule(); |
| 121 } | 121 } |
| 122 | 122 |
| 123 void BrokerRpcServer_FireEvent( | 123 void BrokerRpcServer_FireEvent( |
| 124 handle_t binding_handle, | 124 handle_t binding_handle, |
| 125 BSTR event_name, | 125 const char* event_name, |
| 126 BSTR event_args) { | 126 const char* event_args) { |
| 127 DCHECK(ChromePostman::GetInstance()); | 127 DCHECK(ChromePostman::GetInstance()); |
| 128 if (ChromePostman::GetInstance()) | 128 if (ChromePostman::GetInstance()) |
| 129 ChromePostman::GetInstance()->FireEvent(event_name, event_args); | 129 ChromePostman::GetInstance()->FireEvent(event_name, event_args); |
| 130 } | 130 } |
| OLD | NEW |