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

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: bugfix and cleanup 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
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 // Launches the executable at |binary_path| using the parameters passed in.
19 // If the process is launched successfully, |read_handle| and |write_handle| are
20 // valid for I/O and the function returns 0. Otherwise a non-zero Windows error
21 // code is returned.
22 uint32_t LaunchNativeMessagingHostProcess(
Sergey Ulanov 2016/07/28 23:57:15 Return bool instead of uint32_t? The actual error
joedow 2016/07/29 03:32:56 I need at least three states (success, failure, ca
23 const base::FilePath& binary_path,
24 intptr_t parent_window_handle,
25 bool elevate_process,
26 base::win::ScopedHandle* read_handle,
27 base::win::ScopedHandle* write_handle);
28
29 } // namespace remoting
30
31 #endif // REMOTING_HOST_WIN_LAUNCH_NATIVE_MESSAGING_HOST_PROCESS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698