Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: ceee/ie/broker/broker_rpc_server.cc

Issue 4989002: Firing event to broker without worker thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ceee/ie/broker/broker_rpc_lib.idl ('k') | ceee/ie/broker/broker_rpc_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « ceee/ie/broker/broker_rpc_lib.idl ('k') | ceee/ie/broker/broker_rpc_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698