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

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: . 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
« no previous file with comments | « mojo/edk/system/BUILD.gn ('k') | mojo/edk/system/broker_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..7f5212ad953fee4e4d2b2b0e42e45932277b5ff5 100644
--- a/mojo/edk/system/broker_host.h
+++ b/mojo/edk/system/broker_host.h
@@ -5,8 +5,12 @@
#ifndef MOJO_EDK_SYSTEM_BROKER_HOST_H_
#define MOJO_EDK_SYSTEM_BROKER_HOST_H_
+#include <stdint.h>
+
#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 +22,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 +30,8 @@ class BrokerHost : public Channel::Delegate,
private:
~BrokerHost() override;
+ void PrepareHandlesForClient(PlatformHandleVector* handles);
+
// Channel::Delegate:
void OnChannelMessage(const void* payload,
size_t payload_size,
@@ -35,7 +41,11 @@ class BrokerHost : public Channel::Delegate,
// base::MessageLoop::DestructionObserver:
void WillDestroyCurrentMessageLoop() override;
- void OnBufferRequest(size_t num_bytes);
+ void OnBufferRequest(uint32_t num_bytes);
+
+#if defined(OS_WIN)
+ base::ProcessHandle client_process_;
+#endif
scoped_refptr<Channel> channel_;
« no previous file with comments | « mojo/edk/system/BUILD.gn ('k') | mojo/edk/system/broker_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698