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

Unified Diff: sandbox/win/src/lpc_dispatcher.h

Issue 1296223005: Continuing changes for lpc proxy Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 | « sandbox/win/src/ipc_tags.h ('k') | sandbox/win/src/lpc_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/src/lpc_dispatcher.h
diff --git a/sandbox/win/src/lpc_dispatcher.h b/sandbox/win/src/lpc_dispatcher.h
new file mode 100644
index 0000000000000000000000000000000000000000..8e5e0b0d6c067ea3bf2997a644b168f00990c969
--- /dev/null
+++ b/sandbox/win/src/lpc_dispatcher.h
@@ -0,0 +1,36 @@
+// Copyright (c) 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SANDBOX_SRC_LPC_DISPATCHER_H_
+#define SANDBOX_SRC_LPC_DISPATCHER_H_
+
+#include "base/basictypes.h"
+#include "base/strings/string16.h"
+#include "sandbox/win/src/crosscall_server.h"
+#include "sandbox/win/src/sandbox_policy_base.h"
+
+namespace sandbox {
+
+// This class handles LPC related IPC calls.
+class LpcDispatcher : public Dispatcher {
+ public:
+ explicit LpcDispatcher(PolicyBase* policy_base);
+ ~LpcDispatcher() override {}
+
+ // Dispatcher interface.
+ bool SetupService(InterceptionManager* manager, int service) override;
+
+private:
+ // Processes IPC requests coming from calls to NtAlpcConnectPort in the
+ // target.
+ bool AlpcConnectPort(IPCInfo* ipc,
+ base::string16* name);
+
+ PolicyBase* policy_base_;
+ DISALLOW_COPY_AND_ASSIGN(LpcDispatcher);
+};
+
+} // namespace sandbox
+
+#endif // SANDBOX_SRC_LPC_DISPATCHER_H_
« no previous file with comments | « sandbox/win/src/ipc_tags.h ('k') | sandbox/win/src/lpc_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698