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

Unified Diff: sandbox/linux/syscall_broker/broker_host.h

Issue 723343002: Update from https://crrev.com/304121 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sandbox/linux/syscall_broker/broker_client.cc ('k') | sandbox/linux/syscall_broker/broker_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/linux/syscall_broker/broker_host.h
diff --git a/sandbox/linux/syscall_broker/broker_host.h b/sandbox/linux/syscall_broker/broker_host.h
index 04c20ed5a1b8615a7c90c9f0c7ae0837babbdb33..9866507d1c6f4312ff37a25a4b28811eba8975c0 100644
--- a/sandbox/linux/syscall_broker/broker_host.h
+++ b/sandbox/linux/syscall_broker/broker_host.h
@@ -6,6 +6,7 @@
#define SANDBOX_LINUX_SYSCALL_BROKER_BROKER_HOST_H_
#include "base/macros.h"
+#include "sandbox/linux/syscall_broker/broker_channel.h"
namespace sandbox {
@@ -18,14 +19,18 @@ class BrokerPolicy;
// |ipc_channel| according to |broker_policy|.
class BrokerHost {
public:
- BrokerHost(const BrokerPolicy& broker_policy, int ipc_channel);
+ enum class RequestStatus { LOST_CLIENT = 0, SUCCESS, FAILURE };
+
+ BrokerHost(const BrokerPolicy& broker_policy,
+ BrokerChannel::EndPoint ipc_channel);
~BrokerHost();
- bool HandleRequest() const;
+ RequestStatus HandleRequest() const;
private:
const BrokerPolicy& broker_policy_;
- const int ipc_channel_;
+ const BrokerChannel::EndPoint ipc_channel_;
+
DISALLOW_COPY_AND_ASSIGN(BrokerHost);
};
« no previous file with comments | « sandbox/linux/syscall_broker/broker_client.cc ('k') | sandbox/linux/syscall_broker/broker_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698