OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/extensions/api/messaging/native_process_launcher.h" | 5 #include "chrome/browser/extensions/api/messaging/native_process_launcher.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/process_util.h" | 11 #include "base/process/kill.h" |
| 12 #include "base/process/launch.h" |
12 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
13 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
14 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
15 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
16 #include "base/win/registry.h" | 17 #include "base/win/registry.h" |
17 #include "base/win/scoped_handle.h" | 18 #include "base/win/scoped_handle.h" |
18 #include "chrome/browser/extensions/api/messaging/native_messaging_host_manifest
.h" | 19 #include "chrome/browser/extensions/api/messaging/native_messaging_host_manifest
.h" |
19 #include "crypto/random.h" | 20 #include "crypto/random.h" |
20 | 21 |
21 namespace extensions { | 22 namespace extensions { |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 | 170 |
170 base::CloseProcessHandle(cmd_handle); | 171 base::CloseProcessHandle(cmd_handle); |
171 | 172 |
172 *read_file = stdout_pipe.Take(); | 173 *read_file = stdout_pipe.Take(); |
173 *write_file = stdin_pipe.Take(); | 174 *write_file = stdin_pipe.Take(); |
174 | 175 |
175 return true; | 176 return true; |
176 } | 177 } |
177 | 178 |
178 } // namespace extensions | 179 } // namespace extensions |
OLD | NEW |