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

Unified Diff: mojo/edk/embedder/named_platform_channel_pair.h

Issue 2444793002: Allow custom security descriptors when creating named pipes on Windows. (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/service/service_process.cc ('k') | mojo/edk/embedder/named_platform_channel_pair_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/embedder/named_platform_channel_pair.h
diff --git a/mojo/edk/embedder/named_platform_channel_pair.h b/mojo/edk/embedder/named_platform_channel_pair.h
index e650cebff8654ce80fc028bebd0fc8f755888dea..ebc8eaa6999f9aa1005f48417b83adb26f4f8c3d 100644
--- a/mojo/edk/embedder/named_platform_channel_pair.h
+++ b/mojo/edk/embedder/named_platform_channel_pair.h
@@ -28,7 +28,16 @@ namespace edk {
// resolve it into a client handle.
class MOJO_SYSTEM_IMPL_EXPORT NamedPlatformChannelPair {
public:
- NamedPlatformChannelPair();
+ struct Options {
+#if defined(OS_WIN)
+ // If non-empty, a security descriptor to use when creating the pipe. If
+ // empty, a default security descriptor will be used. See
+ // kDefaultSecurityDescriptor in named_platform_handle_utils_win.cc.
+ base::string16 security_descriptor;
+#endif
+ };
+
+ NamedPlatformChannelPair(const Options& options = {});
~NamedPlatformChannelPair();
// Note: It is NOT acceptable to use this handle as a generic pipe channel. It
« no previous file with comments | « chrome/service/service_process.cc ('k') | mojo/edk/embedder/named_platform_channel_pair_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698