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

Side by Side Diff: remoting/host/win/launch_native_messaging_host_process.h

Issue 2152953002: Refactoring Native Messaging Host process launching code into its own file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing CR feedback. Created 4 years, 4 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
« no previous file with comments | « remoting/host/switches.cc ('k') | remoting/host/win/launch_native_messaging_host_process.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 2016 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 #ifndef REMOTING_HOST_WIN_LAUNCH_NATIVE_MESSAGING_HOST_PROCESS_H_
6 #define REMOTING_HOST_WIN_LAUNCH_NATIVE_MESSAGING_HOST_PROCESS_H_
7
8 #include <cstdint>
9
10 #include "base/win/scoped_handle.h"
11
12 namespace base {
13 class FilePath;
14 } // namespace base
15
16 namespace remoting {
17
18 enum ProcessLaunchResult {
19 PROCESS_LAUNCH_RESULT_SUCCESS,
20 PROCESS_LAUNCH_RESULT_CANCELLED,
21 PROCESS_LAUNCH_RESULT_FAILED,
22 };
23
24 // Launches the executable at |binary_path| using the parameters passed in.
25 // If the process is launched successfully, |read_handle| and |write_handle| are
26 // valid for I/O and the function returns PROCESS_LAUNCH_RESULT_SUCCESS.
27 ProcessLaunchResult LaunchNativeMessagingHostProcess(
28 const base::FilePath& binary_path,
29 intptr_t parent_window_handle,
30 bool elevate_process,
31 base::win::ScopedHandle* read_handle,
32 base::win::ScopedHandle* write_handle);
33
34 } // namespace remoting
35
36 #endif // REMOTING_HOST_WIN_LAUNCH_NATIVE_MESSAGING_HOST_PROCESS_H_
OLDNEW
« no previous file with comments | « remoting/host/switches.cc ('k') | remoting/host/win/launch_native_messaging_host_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698