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

Unified Diff: base/test/launcher/test_launcher.h

Issue 2950153002: Improve process launch handle sharing API. (Closed)
Patch Set: Fix Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: base/test/launcher/test_launcher.h
diff --git a/base/test/launcher/test_launcher.h b/base/test/launcher/test_launcher.h
index 52288b1d780a9663e6593e335900e3d81371c318..29d7e54749d3331f26662cd9abaf7368a65c04c9 100644
--- a/base/test/launcher/test_launcher.h
+++ b/base/test/launcher/test_launcher.h
@@ -89,13 +89,18 @@ class TestLauncher {
};
struct LaunchOptions {
+ LaunchOptions();
+ LaunchOptions(const LaunchOptions& other);
+ ~LaunchOptions();
+
int flags = 0;
-#if defined(OS_WIN)
// These mirror values in base::LaunchOptions, see it for details.
- HandlesToInheritVector* handles_to_inherit = nullptr;
- bool inherit_handles = false;
+#if defined(OS_WIN)
+ base::LaunchOptions::Inherit inherit_mode =
+ base::LaunchOptions::Inherit::kSpecific;
+ base::HandlesToInheritVector handles_to_inherit;
#elif defined(OS_POSIX)
- const FileHandleMappingVector* fds_to_remap = nullptr;
+ FileHandleMappingVector fds_to_remap;
#endif
};

Powered by Google App Engine
This is Rietveld 408576698