OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ceee/ie/broker/broker_rpc_utils.h" |
| 6 |
| 7 #include "base/win_util.h" |
| 8 #include "ceee/ie/common/ceee_module_util.h" |
| 9 |
| 10 const wchar_t kRpcProtocol[] = L"ncalrpc"; |
| 11 |
| 12 std::wstring GetRpcEndPointAddress() { |
| 13 std::wstring end_point = ceee_module_util::GetBrokerProfileNameForIe(); |
| 14 std::wstring sid; |
| 15 win_util::GetUserSidString(&sid); |
| 16 end_point += sid; |
| 17 end_point += L"B4630D08-4621-41A1-A8D0-F1E98DA460D6"; |
| 18 |
| 19 // TODO(vitalybuka@google.com): Find reference why endpoint size is limited. |
| 20 end_point.resize(std::min(52u, end_point.size())); |
| 21 return end_point; |
| 22 } |
| 23 |
| 24 void __RPC_FAR * __RPC_USER midl_user_allocate(size_t len) { |
| 25 return malloc(len); |
| 26 } |
| 27 |
| 28 void __RPC_USER midl_user_free(void __RPC_FAR * ptr) { |
| 29 free(ptr); |
| 30 } |
OLD | NEW |