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

Side by Side Diff: mojo/edk/embedder/platform_handle.h

Issue 1893313003: [mojo] Use a pipe path to initialise Mojo in elevated utility processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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 | « mojo/edk/embedder/named_platform_channel_pair_win.cc ('k') | mojo/edk/system/channel_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef MOJO_EDK_EMBEDDER_PLATFORM_HANDLE_H_ 5 #ifndef MOJO_EDK_EMBEDDER_PLATFORM_HANDLE_H_
6 #define MOJO_EDK_EMBEDDER_PLATFORM_HANDLE_H_ 6 #define MOJO_EDK_EMBEDDER_PLATFORM_HANDLE_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "mojo/edk/system/system_impl_export.h" 9 #include "mojo/edk/system/system_impl_export.h"
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 void CloseIfNecessary(); 66 void CloseIfNecessary();
67 67
68 bool is_valid() const { return handle != INVALID_HANDLE_VALUE; } 68 bool is_valid() const { return handle != INVALID_HANDLE_VALUE; }
69 69
70 HANDLE handle; 70 HANDLE handle;
71 71
72 // A Windows HANDLE may be duplicated to another process but not yet sent to 72 // A Windows HANDLE may be duplicated to another process but not yet sent to
73 // that process. This tracks the handle's owning process. 73 // that process. This tracks the handle's owning process.
74 base::ProcessHandle owning_process; 74 base::ProcessHandle owning_process;
75
76 // A Windows HANDLE may be an unconnected named pipe. In this case, we need to
77 // wait for a connection before communicating on the pipe.
78 bool needs_connection = false;
75 }; 79 };
76 #else 80 #else
77 #error "Platform not yet supported." 81 #error "Platform not yet supported."
78 #endif 82 #endif
79 83
80 } // namespace edk 84 } // namespace edk
81 } // namespace mojo 85 } // namespace mojo
82 86
83 #endif // MOJO_EDK_EMBEDDER_PLATFORM_HANDLE_H_ 87 #endif // MOJO_EDK_EMBEDDER_PLATFORM_HANDLE_H_
OLDNEW
« no previous file with comments | « mojo/edk/embedder/named_platform_channel_pair_win.cc ('k') | mojo/edk/system/channel_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698