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

Unified Diff: mojo/edk/system/broker_host.h

Issue 2264543003: Adds sync brokering to Windows EDK (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge test interface Created 4 years, 3 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: mojo/edk/system/broker_host.h
diff --git a/mojo/edk/system/broker_host.h b/mojo/edk/system/broker_host.h
index b8f68c4ddeb36c45821dbcef98a76fa7fdfda06e..74fb917f2978f2b55dfb187dd351c40b6593438b 100644
--- a/mojo/edk/system/broker_host.h
+++ b/mojo/edk/system/broker_host.h
@@ -7,6 +7,8 @@
#include "base/macros.h"
#include "base/message_loop/message_loop.h"
+#include "base/process/process_handle.h"
+#include "mojo/edk/embedder/platform_handle_vector.h"
#include "mojo/edk/embedder/scoped_platform_handle.h"
#include "mojo/edk/system/channel.h"
@@ -18,7 +20,7 @@ namespace edk {
class BrokerHost : public Channel::Delegate,
public base::MessageLoop::DestructionObserver {
public:
- explicit BrokerHost(ScopedPlatformHandle platform_handle);
+ BrokerHost(base::ProcessHandle client_process, ScopedPlatformHandle handle);
// Send |handle| to the child, to be used to establish a NodeChannel to us.
void SendChannel(ScopedPlatformHandle handle);
@@ -26,6 +28,8 @@ class BrokerHost : public Channel::Delegate,
private:
~BrokerHost() override;
+ void PrepareHandlesForClient(PlatformHandleVector* handles);
+
// Channel::Delegate:
void OnChannelMessage(const void* payload,
size_t payload_size,
@@ -37,6 +41,10 @@ class BrokerHost : public Channel::Delegate,
void OnBufferRequest(size_t num_bytes);
+#if defined(OS_WIN)
+ base::ProcessHandle client_process_;
+#endif
+
scoped_refptr<Channel> channel_;
DISALLOW_COPY_AND_ASSIGN(BrokerHost);

Powered by Google App Engine
This is Rietveld 408576698