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

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

Issue 5010001: COM replaced with RPC for firing events in broker.... (Closed) Base URL: svn://chrome-svn/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_utils.h ('k') | ceee/ie/broker/executors_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(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 // Utilities shared by both Broker RPC client and server.
6
7 #include "ceee/ie/broker/broker_rpc_utils.h"
8
9 #include "base/win_util.h"
10 #include "ceee/common/process_utils_win.h"
11
12 // Local interprocess communication only.
13 const wchar_t kRpcProtocol[] = L"ncalrpc";
14
15 std::wstring GetRpcEndPointAddress() {
16 std::wstring end_point;
17 bool running_as_admin = false;
18 // CEEE running as regular user and CEEE running as elevated user will start
19 // different broker processes. So make end points names different to connect
20 // to appropriate one.
21 process_utils_win::IsCurrentProcessUacElevated(&running_as_admin);
22 if (running_as_admin)
23 end_point += L"ADMIN-";
24 std::wstring sid;
25 win_util::GetUserSidString(&sid);
26 end_point += sid;
27 end_point += L"-B4630D08-4621-41A1-A8D0-F1E98DA460D6";
28 return end_point;
29 }
30
31 void __RPC_FAR * __RPC_USER midl_user_allocate(size_t len) {
32 return malloc(len);
33 }
34
35 void __RPC_USER midl_user_free(void __RPC_FAR * ptr) {
36 free(ptr);
37 }
OLDNEW
« no previous file with comments | « ceee/ie/broker/broker_rpc_utils.h ('k') | ceee/ie/broker/executors_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698