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

Side by Side Diff: remoting/host/ipc_consts.cc

Issue 11118005: Pass the client end handle of the network-to-daemon IPC channel via handle inheritance. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feedback. Created 8 years, 2 months 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 | « remoting/host/ipc_consts.h ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 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 "remoting/host/ipc_consts.h"
6
7 #include "base/compiler_specific.h"
8 #include "base/logging.h"
9 #include "base/path_service.h"
10
11 namespace remoting {
12
13 const char kDaemonPipeSwitchName[] = "daemon-pipe";
14
15 const FilePath::CharType kDaemonBinaryName[] =
16 FILE_PATH_LITERAL("remoting_daemon");
17
18 const FilePath::CharType kHostBinaryName[] = FILE_PATH_LITERAL("remoting_host");
19
20 bool GetInstalledBinaryPath(const FilePath::StringType& binary,
21 FilePath* full_path) {
22 FilePath dir_path;
23 if (!PathService::Get(base::DIR_EXE, &dir_path)) {
24 LOG(ERROR) << "Failed to get the executable file name.";
25 return false;
26 }
27
28 FilePath path = dir_path.Append(binary);
29
30 #if defined(OS_WIN)
31 path = path.ReplaceExtension(FILE_PATH_LITERAL("exe"));
32 #endif // defined(OS_WIN)
33
34 *full_path = path;
35 return true;
36 }
37
38 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/ipc_consts.h ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698